:root {
    --bg-color: #F3F4F6;
    --container-bg: #ffffff;
    --text-color: #1F2937;
    --heading-color: #1F2937;
    --set-label-color: #4B5563;
    --shadow-color: rgba(0, 0, 0, 0.15);
    --item-shadow: rgba(0, 0, 0, 0.05);
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(to right, #8B5CF6 0%, #EC4899 100%);
}

[data-theme="dark"] {
    --bg-color: #111827;
    --container-bg: #1F2937;
    --text-color: #F9FAFB;
    --heading-color: #F9FAFB;
    --set-label-color: #D1D5DB;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --item-shadow: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    gap: 40px;
    padding: 40px 20px;
    margin: 0;
}

.container {
    text-align: center;
    background-color: var(--container-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px var(--shadow-color);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 600px;
}

h1 {
    color: var(--heading-color);
    margin-bottom: 20px;
    font-size: 36px;
    font-weight: 800;
}

.subtitle {
    color: var(--set-label-color);
    margin-bottom: 30px;
    font-size: 18px;
}

/* Animal Test Styles */
.upload-box {
    margin: 20px auto;
    border: 3px dashed #8B5CF6;
    border-radius: 20px;
    padding: 40px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-box:hover {
    border-color: #EC4899;
    transform: scale(1.02);
}

.upload-icon { font-size: 60px; margin-bottom: 10px; }
.upload-text { font-size: 18px; font-weight: 600; color: #8B5CF6; }

#face-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 16px;
    box-shadow: 0 10px 20px var(--item-shadow);
}

/* Spinner */
.spinner {
    margin: 40px auto;
    width: 70px;
    text-align: center;
}

.spinner > div {
    width: 18px;
    height: 18px;
    background-color: #8B5CF6;
    border-radius: 100%;
    display: inline-block;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 { animation-delay: -0.32s; }
.spinner .bounce2 { animation-delay: -0.16s; }

@keyframes sk-bouncedelay {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

#result-message {
    font-size: 28px;
    margin: 20px 0;
    font-weight: 700;
}

.bar-container {
    height: 35px;
    width: 100%;
    background-color: var(--bg-color);
    border-radius: 18px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px var(--item-shadow);
}

.bar {
    height: 100%;
    transition: width 1.5s cubic-bezier(0.1, 0, 0.2, 1);
}

.bar-label, .percent-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.bar-label { left: 15px; }
.percent-label { right: 15px; }

.secondary-btn {
    background-color: var(--set-label-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

/* Form Styles */
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #ccc;
    background-color: var(--bg-color);
    color: var(--text-color);
    box-sizing: border-box;
}

#submit-contact {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 16px;
    width: 100%;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Lotto Styles */
button#generate {
    background: var(--accent-gradient);
    border: none;
    color: white;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.lotto-set {
    padding: 20px;
    border-radius: 15px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 10px var(--item-shadow);
}

.lotto-ball {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 700;
}

#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--container-bg);
    border: 1px solid #ccc;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 12px var(--shadow-color);
    z-index: 1000;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: var(--container-bg);
    box-shadow: 0 2px 5px var(--item-shadow);
    transition: all 0.3s;
}

.nav-link:hover {
    color: #8B5CF6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.upload-box.dragover {
    background-color: var(--item-shadow);
    border-color: #EC4899;
    transform: scale(1.05);
}

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