/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --background-color: #F3F4F6;
    --surface-color: #ffffff;
    --text-color: #1F2937;
    --border-color: #E5E7EB;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --logo-color: #667eea;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    transition: opacity 0.2s ease-in-out;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 8px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Styles */
header {
    background: var(--gradient-primary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 60px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1F2937;
    background: rgba(0, 0, 0, 0.05);
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}

.header-logo:hover {
    background: rgba(0, 0, 0, 0.1);
}

.header-logo img {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
}

.header-logo:hover {
    opacity: 0.9;
}

.brand-card {
        text-align: center;
        margin-top: 16px;
        }

        .brand-image {
        width: 160px;
        max-width: 80%;
        border-radius: 12px;
        }

        .brand-title {
        margin-top: 12px;
        font-size: 18px;
        font-weight: 600;
        }

        .brand-subtitle {
        margin-top: 6px;
        font-size: 14px;
        letter-spacing: 1px;
        text-transform: uppercase;
        }


header h1 {
    color: #1F2937;
    font-size: 1.5rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#start-button {
    display: none;
}


.home-button {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

/* Upload Section Styles */
.upload-section {
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 8px var(--shadow-color);
    margin-bottom: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-section.hidden {
    display: none;
}

.upload-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.upload-section p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.file-input-container {
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px;
    background: var(--background-color);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    border-color: var(--primary-color);
    background: var(--surface-color);
    transform: translateY(-2px);
}

.file-label svg {
    color: var(--primary-color);
}

#file-name {
    font-size: 1.1rem;
    color: var(--text-color);
}

#file-input {
    display: none;
}

#upload-button {
    width: 100%;
    max-width: 500px;
    padding: 17px 34px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0;
}

#upload-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

#upload-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* Status and Results Styles */
#upload-status {
    margin: 16px 0;
    display: none;
}

.error {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 1.1rem;
    text-align: center;
}

.file-selected {
    color: #27ae60;
    padding: 12px;
    background: #e8f5e9;
    border-radius: 8px;
    margin: 8px 0;
}

#results {
    display: none;
    width: 90%;
    max-width: 600px;
    margin: 2px auto;
    padding: 0;
    border-radius: 12px;
    border: none;
    background: none;
}

#results.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.result-item {
    text-align: center;
    padding: 0;
    margin: 0;
    border: 2px solid #666;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2),
                0 4px 8px rgba(0, 0, 0, 0.1);
}

#start-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 18px;
            height: 40px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
        }

.result-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    text-transform: capitalize;
    font-weight: 600;
}

.result-item h3.genuine {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.result-item h3.not-genuine {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
    padding: 30px;
    border-radius: 16px;
    margin: 20px 0;
    font-size: 1rem;
    text-align: center;
    border: 2px solid rgba(220, 53, 69, 0.2);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
}

.error-icon {
    margin-bottom: 20px;
    color: #dc3545;
}

.error-icon svg {
    width: 48px;
    height: 48px;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #dc3545;
}

.error-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.error-suggestions {
    text-align: left;
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.error-suggestions p {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.error-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-suggestions li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.error-suggestions li:before {
    content: "•";
    color: #dc3545;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.result-details {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.result-details p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.result-details strong {
    color: var(--primary-color);
    font-weight: 600;
    min-width: 70px;
    display: inline-block;
}

.scan-again-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
    min-width: 170px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.scan-again-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.scan-again-button svg {
    width: 20px;
    height: 20px;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Home Page Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    animation: float 3s ease-in-out infinite;
}

.logo-container img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--logo-color);
    text-shadow: 2px 2px 4px var(--shadow-color);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Camera Container Styles */
.camera-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-top: 0;
    height: calc(100vh - 160px);
    width: 100%;
    max-width: 450px;
    margin-bottom: 0;
}

#video {
    width: 70%;
    height: 45vh;
    border: 2px solid #666;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2),
                0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    background-color: #e0f3fa;
    border-radius: 12px;
    align-self: center;
    margin-bottom: 5px;
    transition: box-shadow 0.3s ease;
}

#video:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25),
                0 6px 12px rgba(0, 0, 0, 0.15);
}

.controls {
    margin-top: 1px; /* Reduced from 2px to 1px (another 50% reduction) */
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0 8px;
}

.control-group {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 16px;
    width: 70%;
    margin: 0 auto;
    min-height: 60px;
}

.control-row {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
}

select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 0.9rem;
    flex: 1;
    max-width: calc(50% - 4px);
    margin: 0;
}

button {
    padding: 16px 32px;
    border-radius: 10px;
    border: none;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    min-width: 200px;
    text-align: center;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

#start-button {
    width: 100%;
    padding: 17px 34px;
    font-size: 1.15rem;
    font-weight: 600;
    min-width: 212px;
    margin: 0;
    background: var(--gradient-primary);
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#stop-button {
    width: 49%;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    min-width: 120px;
    margin: 0;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

#stop-button:hover {
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.5);
}

#flashlight-button {
    width: 49%;
    padding: 12px 24px;
    min-width: 120px;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15),
                0 2px 4px rgba(0, 0, 0, 0.1);
    height: 38px; /* Reduced from 48px to 38px (20% reduction) */
    text-align: center;
    white-space: nowrap;
}

#capture-button {
    width: 49%;
    padding: 12px 24px;
    min-width: 120px;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15),
                0 2px 4px rgba(0, 0, 0, 0.1);
    height: 38px; /* Reduced from 48px to 38px (20% reduction) */
    text-align: center;
    white-space: nowrap;
}

#flashlight-button svg {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

/* Results Display */
.result-item {
    padding: 12px;
    text-align: center;
}

.result-item h3 {
    margin: 8px 0;
    font-size: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.genuine {
    color: #27ae60;
    font-weight: 600;
}

.genuine::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327ae60' stroke-width='2'%3E%3Cpath d='M20 6L9 17l-5-5'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.not-genuine {
    color: #e74c3c;
    font-weight: 600;
}

.not-genuine::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e74c3c' stroke-width='2'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.not-secqr {
    color: #e67e22;
    font-size: 1.5rem;
    text-align: center;
    padding: 15px;
    background-color: rgba(230, 126, 34, 0.1);
    border-radius: 8px;
    text-transform: capitalize;
    font-weight: 600;
}

.no-qr {
    color: #c0392b;
    font-size: 1.5rem;
    text-align: center;
    padding: 15px;
    background-color: rgba(192, 57, 43, 0.1);
    border-radius: 8px;
    text-transform: capitalize;
    font-weight: 600;
}

.slow-internet {
    color: #e67e22;
    font-size: 1.5rem;
    text-align: center;
    padding: 15px;
    background-color: rgba(230, 126, 34, 0.1);
    border-radius: 8px;
    text-transform: capitalize;
    font-weight: 600;
}

/* Remove any other loading animations */
.processing {
    display: none;
}

/* Home Page Styles */
.home-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: 0; /* Remove top margin since we're using padding */
    position: relative; /* Ensure proper stacking context */
    z-index: 1; /* Keep it above other elements */
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 500px;
}

.option-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: var(--text-color);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 2px solid transparent;
}

.option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
    border-color: var(--primary-color);
}

.option-card h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
    font-weight: 700;
}

.option-card p {
    color: #6B7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Upload Page Styles */
.upload-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 450px;
    margin-top: 0;
}

.file-upload {
    width: 100%;
    padding: 24px;
    background: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 4px 8px var(--shadow-color);
    text-align: center;
}

.file-upload h2 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.file-info {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 8px 0;
}

/* Decoding Error Theme */
.unable-to-decode {
    color: #f39c12;
    font-size: 1.5rem;
    text-align: center;
    padding: 15px;
    background-color: rgba(243, 156, 18, 0.1);
    border-radius: 8px;
    text-transform: capitalize;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.unable-to-decode::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f39c12' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Home Page Title */
.home-title {
    text-align: center;
    margin: 0 0 40px 0;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.home-title .qr-text {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.results-container {
    margin-top: 20px;
    padding: 0;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.result-message {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-message.genuine {
    color: #28a745;
}

.result-message.fake {
    color: #dc3545;
}

.result-message svg {
    width: 24px;
    height: 24px;
}

.result-details {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

/* Responsive adjustments */
@media (max-height: 700px) {
    .container {
        padding: 60px 8px 20px;
    }

    .page-title {
        margin: 10px 0;
        font-size: 1.3rem;
    }

    .camera-container {
        height: calc(100vh - 140px);
    }

    #video {
        height: 40vh;
    }

    .controls {
        margin-top: 4px;
    }

    #results {
        padding: 8px;
    }

    select {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .header {
        padding: 8px 12px;
    }

    .header h1 {
        font-size: 1.2rem;
    }

    button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .file-upload {
        padding: 20px;
    }
}

.footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--surface-color);
    margin-top: 2rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 0.4rem;
}

.footer h6 {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: var(--surface-color);
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.header-logo:hover {
    background-color: var(--background-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.06);
}

.header-logo img {
    height: 32px;
    width: auto;
}

.header-logo .logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1F2937;
}

.menu-button {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    transition: all 0.2s;
}

.menu-button:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: none;
}

.menu-button svg {
    width: 24px;
    height: 24px;
    color: #1F2937;
    stroke-width: 2;
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 16px;
    background: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    display: none;
    min-width: 200px;
    z-index: 1000;
}

.menu-dropdown.show {
    display: block;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: var(--background-color);
}

.menu-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.page-title .qr-text {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Help Page Styles */
.help-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

.help-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 30px;
}

.help-message {
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.help-message p {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.help-form {
    background-color: var(--surface-color);
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
}

.form-group input:disabled {
    background-color: var(--background-color);
    color: var(--text-color);
    opacity: 0.8;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.send-email-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-email-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-info {
    text-align: center;
    margin-top: 30px;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* --- Stats Dropdown Styles --- */
.stats-dropdown-container {
    margin-top: 18px;
    text-align: left;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.stats-dropdown-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stats-dropdown-btn:hover {
    background: var(--secondary-color);
}
.stats-dropdown-content {
    background: var(--surface-color);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
    padding: 18px 24px 12px 24px;
    margin-top: 0;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 0.2s;
}
.stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.stats-list li {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 8px;
    padding-left: 0;
}
.stats-list li strong {
    color: var(--primary-color);
    min-width: 120px;
    display: inline-block;
}

/* --- Location Dropdown Styles --- */
.location-dropdown-container {
    margin-top: 18px;
    text-align: left;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.location-dropdown-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.location-dropdown-btn:hover {
    background: var(--secondary-color);
}
.location-dropdown-content {
    background: var(--surface-color);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
    padding: 18px 24px 12px 24px;
    margin-top: 0;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 0.2s;
}
.map-preview {
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
}
.map-preview img {
    width: 100%;
    height: auto;
    display: block;
}
/* --- Mode Toggle Styles --- */
.mode-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 6px 0; /* Increased from 3px to 6px (doubled) */
    width: 100%;
}

.mode-toggle {
    display: flex;
    background: white; /* Changed from #f0f0f0 to white */
    border-radius: 8px;
    width: 49%; /* 30% reduction from 70% */
    max-width: 280px; /* 30% reduction from 400px */
    min-width: 210px; /* 30% reduction from 300px */
    height: 50px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Center align */
    border: 2px solid #ccc; /* Grey border added */
}

.mode-option {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 0; /* Allow flex shrinking */
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Show ellipsis for overflow */
    padding: 0 8px; /* Add some padding */
}

.mode-option.active {
    background: var(--primary-color);
    color: white;
}

.mode-option:not(.active) {
    background: transparent;
    color: #666;
}

.mode-option:hover:not(.active) {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
}

.mode-option span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .mode-toggle {
        width: 59.5%; /* 30% reduction from 85% */
        min-width: 196px; /* 30% reduction from 280px */
        max-width: 245px; /* 30% reduction from 350px */
        height: 46px;
    }

    .mode-option {
        padding: 0 6px; /* Reduce padding on smaller screens */
    }

    .mode-option span {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .mode-toggle {
        width: 63%; /* 30% reduction from 90% */
        min-width: 182px; /* 30% reduction from 260px */
        max-width: 224px; /* 30% reduction from 320px */
        height: 44px;
    }

    .mode-option {
        padding: 0 4px; /* Further reduce padding on mobile */
    }

    .mode-option span {
        font-size: 0.8rem;
    }
}

/* --- Centered Button Styles --- */
.centered-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
}

/* --- Save Dropdown Styles --- */
.save-dropdown-container {
    margin-bottom: 10px;
}

.save-dropdown-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.save-dropdown-btn:hover {
    background: var(--secondary-color);
}

.save-dropdown-content {
    background: var(--surface-color);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
    padding: 18px 24px 12px 24px;
    margin-top: 0;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 0.2s;
}

.lighting-section {
    margin-bottom: 16px;
}

.lighting-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.radio-option:hover {
    background: rgba(26, 115, 232, 0.05);
    border-color: var(--primary-color);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-text {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.ground-truth-section {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.save-action-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.save-action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.save-real-btn {
    background: #28a745;
    color: white;
}

.save-real-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.save-fake-btn {
    background: #dc3545;
    color: white;
}

.save-fake-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.discard-btn {
    width: 100%;
    padding: 10px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.discard-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments for save dropdown */
@media (max-width: 480px) {
    .lighting-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .save-action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .save-dropdown-content {
        padding: 16px;
    }
}

/* --- End Stats Dropdown Styles --- */