:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f0f0f0;
    --accent-color: #ffc107;
    --background-color: #121212;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.light-mode {
    --primary-color: #ffffff;
    --secondary-color: #333333;
    --accent-color: #007bff;
    --background-color: #f0f0f0;
}

body {
    background-color: var(--background-color);
    color: var(--secondary-color);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1rem 0;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    text-align: center;
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s;
    max-width: 600px;
    width: 90%;
}

h1, h2 {
    color: var(--accent-color);
}

p {
    margin-bottom: 1.5rem;
}

#theme-toggle-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

#theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.light-mode #theme-toggle-btn {
    color: var(--primary-color);
}

body.light-mode #theme-toggle-btn:hover {
    background-color: #0056b3;
}

#upload-container {
    margin: 1.5rem 0;
}

input[type="file"] {
    display: none;
}

.custom-file-upload {
    border: 1px solid var(--accent-color);
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 5px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.custom-file-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.light-mode .custom-file-upload {
     color: var(--primary-color);
}

body.light-mode .custom-file-upload:hover {
    background-color: #0056b3;
}


#image-preview-container {
    margin: 2rem auto;
    width: 300px;
    height: 300px;
    border: 2px dashed var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#image-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#label-container {
    margin-top: 1.5rem;
}

.result-message {
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

.dog-result {
    color: #ff9800; /* Orange for dog */
}

.cat-result {

    color: #2196f3; /* Blue for cat */

}



.result-description {

    margin-top: 2rem;

    padding-top: 1.5rem;

    border-top: 1px solid var(--secondary-color);

    text-align: left;

    font-size: 1rem;

    font-weight: normal;

}



.result-description h3 {

    margin-top: 0;

    font-size: 1.2rem;

    color: var(--accent-color);

}



.result-description p {

    margin-bottom: 0;

    line-height: 1.6;

}
