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

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

:root {
    --color-white: #fff;
    --color-gray: #f0f0f0;
    --color-black: #312f2d;
    --color-dark: #343738;
    --color-yellow: #fbb900;
    --color-red: #c70008;
    --color-primary: #435957;
    --color-secondary: #fbb900;
    --color-tertiary: #7a9894;
    --color-header: #3e6b67;
    --font-family: 'Noto Sans', sans-serif;
    --font-size: 20px;
    --line-height: 36px;
    --font-weight: 300;
    --transition-speed: .25s;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size);
    font-weight: var(--font-weight);
    line-height: var(--line-height);
    background: linear-gradient(135deg, #e0e7ed 0%, #f7f9fb 50%, #e8eef3 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--color-black);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -200px;
    left: -200px;
    width: 800px;
    height: 800px;
    background: var(--color-primary);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.12;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -300px;
    right: -300px;
    width: 1000px;
    height: 1000px;
    background: var(--color-tertiary);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    opacity: 0.08;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease-out;
}

.logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo {
    height: 100px;
    width: auto;
}

/* Fixed Sidebar Toggle (left on desktop, right on mobile) */
.menu-toggle-fixed {
    position: fixed;
    left: 20px;
    top: 20px;
    background: var(--color-white);
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(67, 89, 87, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    will-change: transform;
}

.menu-toggle-fixed:hover {
    background: var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(67, 89, 87, 0.3);
}

.menu-toggle-fixed:hover svg {
    color: var(--color-white);
}

.menu-toggle-fixed svg {
    color: var(--color-primary);
    transition: color var(--transition-speed);
}

/* Incognito Button (fixed top-right, inline with sidebar) */
.btn-incognito-inline {
    background: transparent;
    color: var(--color-tertiary);
    border: 2px solid var(--color-tertiary);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1000;
}

.btn-incognito-inline:hover {
    background: var(--color-tertiary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-incognito-inline.active {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-black);
    box-shadow: 0 4px 15px rgba(251, 185, 0, 0.4);
}

.btn-incognito-inline.active::after {
    content: 'Actief';
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-secondary);
    color: var(--color-black);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Eye Animation for Incognito */
.eye-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-icon {
    position: relative;
}

.eye-pupil {
    transition: transform 0.3s ease;
}

.btn-incognito-inline.animating .eye-pupil {
    animation: eyeLook 1.5s ease-in-out;
}

@keyframes eyeLook {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 30% {
        transform: translateX(-4px);
    }
    40%, 60% {
        transform: translateX(0);
    }
    70%, 80% {
        transform: translateX(4px);
    }
    90% {
        transform: translateX(0);
    }
}

/* Fixed Nieuwe Analyse Button */
.btn-primary-fixed {
    position: fixed;
    right: 20px;
    top: 20px;
    background: var(--color-secondary);
    color: var(--color-black);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    z-index: 1500;
    box-shadow: 0 4px 15px rgba(251, 185, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary-fixed:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(251, 185, 0, 0.4);
    background: #ffc61a;
}

/* Refresh Button for Testing */
.btn-refresh-fixed {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 12px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    z-index: 1500;
    box-shadow: 0 4px 15px rgba(67, 89, 87, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-refresh-fixed:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(67, 89, 87, 0.4);
}

.btn-refresh-fixed:active {
    transform: scale(0.95);
}

.btn-refresh-fixed:hover .fa-redo {
    animation: refreshSpin 0.6s ease-in-out;
}

@keyframes refreshSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.btn-primary {
    background: var(--color-secondary);
    color: var(--color-black);
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(251, 185, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 185, 0, 0.4);
    background: #ffc61a;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Upload Section */
.upload-section {
    animation: fadeIn 0.8s ease-out;
}

.upload-container {
    background: var(--color-white);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(67, 89, 87, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.upload-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 350px;
    height: 350px;
    background-image: url('image/hero_graphic_edited.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    transform: rotate(-181deg);
}


.upload-icon {
    color: var(--color-primary);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.upload-container h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--color-primary);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.upload-description {
    color: var(--color-dark);
    font-size: 1rem;
    margin-bottom: 30px;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.btn-upload {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-black);
    padding: 14px 36px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(251, 185, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(251, 185, 0, 0.4);
    background: #ffc61a;
}

.file-info {
    margin-top: 20px;
    color: var(--color-tertiary);
    font-size: 0.85rem;
    font-weight: 300;
    position: relative;
    z-index: 1;
}


/* Progress Bar - Inline */
.progress-bar-container {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--color-gray);
    animation: fadeInUp 0.4s ease-out;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--color-gray);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
    animation: shimmer 1.5s infinite;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 1.5s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    text-align: center;
    margin-top: 12px;
    color: var(--color-dark);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Error Message */
.error-message {
    margin-top: 20px;
    padding: 15px;
    background: #fee;
    border: 2px solid var(--color-red);
    border-radius: 10px;
    color: var(--color-red);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes shimmer {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

/* Loading Section */
.loading-section {
    animation: fadeIn 0.5s ease-out;
}

.loader-container {
    background: var(--color-white);
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(67, 89, 87, 0.15);
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid var(--color-gray);
    border-top: 5px solid var(--color-secondary);
    border-right: 5px solid var(--color-primary);
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.loading-subtext {
    color: var(--color-dark);
    font-size: 1rem;
    font-weight: 300;
}

/* Results Section */
.results-section {
    animation: fadeIn 0.8s ease-out;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out;
}

.results-title {
    color: var(--color-primary);
    font-size: 2rem;
    font-weight: 700;
}

.btn-export {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-export:hover {
    background: var(--color-header);
    transform: translateY(-2px);
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.result-card {
    background: var(--color-white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(67, 89, 87, 0.12);
    transition: all var(--transition-speed) ease;
    animation: slideUp 0.6s ease-out backwards;
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--color-tertiary);
    min-height: 200px;
    will-change: transform;
}

.result-card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.result-card:hover .result-card-actions {
    opacity: 1;
}

.card-action-btn {
    background: var(--color-gray);
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-action-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

.card-action-btn.favorited {
    background: var(--color-secondary);
    color: var(--color-black);
}

.result-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--color-primary);
    border-radius: 50% 40% 60% 50%;
    opacity: 0.05;
    transition: all 0.4s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(67, 89, 87, 0.18);
    border-left-color: var(--color-secondary);
}

.result-card:hover::before {
    transform: scale(1.2) rotate(20deg);
    opacity: 0.08;
}

.result-card h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.result-card p {
    color: var(--color-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* Performance Optimizations */
.result-card,
.history-item,
.upload-container,
.menu-toggle-fixed,
.btn-primary-fixed,
.btn-refresh-fixed {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Text Reveal Animation */
.text-reveal-container {
    position: relative;
    display: inline-block;
}

.text-reveal {
    opacity: 0;
    animation: textRevealFade 0.01s forwards;
}

@keyframes textRevealFade {
    to {
        opacity: 1;
    }
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.text-reveal span.revealed {
    animation: revealText 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes revealText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sweep Effect Animation */
.sweep-text span {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.sweep-text span::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: white;
    animation: sweepAfter 1.2s cubic-bezier(.77,0,.18,1) forwards;
    transform: translateX(-101%);
}

.sweep-text span::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    animation: sweepBefore 1.2s cubic-bezier(.77,0,.18,1) forwards;
    transform: translateX(0);
}

@keyframes sweepAfter {
    0% { transform: translateX(-100%) }
    100% { transform: translateX(101%) }
}

@keyframes sweepBefore {
    0% { transform: translateX(0) }
    100% { transform: translateX(200%) }
}

/* Clip Animation */
.clip-text-container {
    position: relative;
    display: block;
    overflow: hidden;
}

.clip-text {
    position: relative;
    display: inline-block;
}

.clip-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    animation: clipSlide 1.5s cubic-bezier(.77,0,.18,1) forwards;
}

@keyframes clipSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Typing indicator (before text appears) */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-tertiary);
    animation: typingDotBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingDotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: -320px;
    top: 0;
    width: 320px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--color-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.sidebar-header h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-tertiary);
    cursor: pointer;
    transition: color var(--transition-speed);
    position: absolute;
    right: 15px;
}

.close-btn:hover {
    color: var(--color-primary);
}

.sidebar-search {
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-gray);
}

.search-btn {
    width: 100%;
    background: var(--color-gray);
    border: none;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--color-dark);
    font-size: 0.95rem;
    transition: all var(--transition-speed);
}

.search-btn:hover {
    background: var(--color-tertiary);
    color: var(--color-white);
}

.search-input-container {
    margin-top: 10px;
    animation: fadeIn 0.3s ease-out;
}

.search-input-container input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--color-gray);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: border-color var(--transition-speed);
}

.search-input-container input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.history-item {
    padding: 15px;
    padding-right: 75px;
    margin-bottom: 10px;
    background: var(--color-gray);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-speed);
    border-left: 3px solid transparent;
    position: relative;
}

.history-item.favorited {
    border-left-color: var(--color-secondary);
}

.history-item:hover {
    background: var(--color-white);
    border-left-color: var(--color-secondary);
    box-shadow: 0 2px 8px rgba(67, 89, 87, 0.1);
    transform: translateX(5px);
}

.history-item-content {
    flex: 1;
}

.history-item-title {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.history-item-date {
    font-size: 0.8rem;
    color: var(--color-tertiary);
}

.history-item-actions {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.history-item:hover .history-item-actions {
    opacity: 1;
}

.history-action-btn,
.history-favorite-btn,
.history-delete-btn {
    background: transparent;
    border: none;
    color: var(--color-tertiary);
    cursor: pointer;
    padding: 5px;
    transition: all var(--transition-speed);
    font-size: 0.95rem;
}

.history-action-btn:hover,
.history-favorite-btn:hover,
.history-delete-btn:hover {
    transform: scale(1.2);
}

.history-action-btn.favorite-btn.favorited,
.history-favorite-btn.favorited {
    color: var(--color-secondary);
}

.history-action-btn.delete-btn:hover,
.history-delete-btn:hover {
    color: var(--color-red);
}

.history-item.deleting {
    animation: slideOutAndFade 0.4s ease-out forwards;
}

@keyframes slideOutAndFade {
    0% {
        opacity: 1;
        transform: translateX(0);
        max-height: 100px;
        margin-bottom: 10px;
    }
    50% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 0;
        transform: translateX(-30px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--color-gray);
}

.settings-btn {
    width: 100%;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-speed);
    justify-content: center;
}

.settings-btn:hover {
    background: var(--color-header);
    transform: translateY(-2px);
}

.settings-btn:hover .fa-cog {
    animation: rotateCog 2s linear infinite;
}

@keyframes rotateCog {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--color-white);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--color-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-body {
    padding: 25px;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: var(--color-dark);
}

.animation-select {
    padding: 8px 12px;
    border: 2px solid var(--color-gray);
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-dark);
    font-family: var(--font-family);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color var(--transition-speed);
}

.animation-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-gray);
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: var(--color-secondary);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(30px);
}

.btn-danger {
    background: var(--color-red);
    color: var(--color-white);
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    width: 100%;
}

.btn-danger:hover {
    background: #a00006;
    transform: translateY(-2px);
}

/* Dark Mode */
body.dark-mode {
    background: var(--color-dark);
    color: var(--color-white);
}

body.dark-mode .upload-container,
body.dark-mode .loader-container,
body.dark-mode .result-card,
body.dark-mode .modal-content {
    background: #2d2d2d;
    color: var(--color-white);
}

body.dark-mode .upload-container h2,
body.dark-mode .loading-text,
body.dark-mode .results-title,
body.dark-mode .result-card h3,
body.dark-mode .modal-header h2 {
    color: var(--color-secondary);
}

body.dark-mode .upload-description,
body.dark-mode .loading-subtext,
body.dark-mode .result-card p {
    color: #ccc;
}

body.dark-mode .menu-toggle-fixed {
    background: #2d2d2d;
}

body.dark-mode .menu-toggle-fixed svg {
    color: var(--color-secondary);
}

body.dark-mode .menu-toggle-fixed:hover {
    background: var(--color-primary);
}

body.dark-mode .menu-toggle-fixed:hover svg {
    color: var(--color-white);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        gap: 10px;
        margin-top: 50px;
        padding-bottom: none;
    }

    .logo {
        height: 70px;
    }

    .menu-toggle-fixed {
        right: auto;
        left: 10px;
        top: 10px;
        padding: 10px;
    }

    .btn-primary-fixed {
        right: 10px;
        top: 60px;
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .btn-incognito-inline {
        right: 10px;
        left: auto;
        top: 10px;
        padding: 8px 16px;
        font-size: 0.75rem;
        gap: 6px;
    }

    .eye-icon {
        width: 16px;
        height: 16px;
    }

    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .results-title {
        font-size: 1.5rem;
    }

    .btn-refresh-fixed {
        right: 10px;
        bottom: 10px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .upload-container {
        padding: 40px 20px;
    }

    .results-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .result-card {
        padding: 20px;
        min-height: auto;
    }

    .result-card h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .result-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .sidebar {
        width: 280px;
        left: -280px;
    }
}

/* Stagger animation for result cards */
.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.2s; }
.result-card:nth-child(3) { animation-delay: 0.3s; }
.result-card:nth-child(4) { animation-delay: 0.4s; }
.result-card:nth-child(5) { animation-delay: 0.5s; }
