@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #ff5722;
    --secondary-color: #ff9800;
    --background-color: #f0f0f0;
    --text-color: #333;
    --white-color: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-start: #d16ba5;
    --gradient-end: #5ffbf1;
}

body.dark-mode {
    --background-color: #121212;
    --text-color: #e0e0e0;
    --white-color: #1e1e1e;
    --shadow-color: rgba(0, 0, 0, 0.7);
    --gradient-start: #0f2027;
    --gradient-end: #2c5364;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 0;
    background-image: linear-gradient(to right top, var(--gradient-start), #c777b9, #ba83ca, #aa8fd8, #9a9ae1, #8aa7ec, #79b3f4, #69bff8, #52cffe, #41dfff, #46eefa, var(--gradient-end));
    transition: background-color 0.3s, color 0.3s;
}

.container {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: center;
    width: 90%;
    max-width: 500px;
    margin-bottom: 2rem;
}

.inquiry-container h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.disqus-container {
    text-align: left;
    padding: 1.5rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    background-color: var(--white-color);
    color: var(--text-color);
    font-family: inherit;
    transition: border-color 0.3s;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    border-color: #444;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

#submit-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 1rem 2rem;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#submit-btn:hover {
    background-color: var(--secondary-color);
}

.subtitle {
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.8;
}

.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: 1rem;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1.5rem;
}

.upload-area:hover {
    background-color: rgba(255, 87, 34, 0.1);
}

#image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 0.5rem;
}

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

.label-wrapper {
    margin-bottom: 0.8rem;
}

.label-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: block;
}

.progress-bar {
    height: 1.2rem;
    background-color: #e0e0e0;
    border-radius: 1rem;
    overflow: hidden;
}

body.dark-mode .progress-bar {
    background-color: #444;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.5s ease-out;
}

#loading-spinner {
    margin: 1rem 0;
    font-weight: 600;
}

#animal-result {
    margin-top: 1rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: -webkit-linear-gradient(var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.numbers-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.number {
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.number:hover {
    transform: scale(1.1);
}

#generate-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px var(--shadow-color);
}

#generate-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background-color: var(--white-color);
    color: var(--text-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--shadow-color);
    font-weight: 600;
    transition: all 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.05);
}
