:root {
    --primary-color: #da2b26;
    --secondary-color: #e88122;
    --dark-color: #da2b26;
    --light-red: white;
    --accent-red: white;
    --container-bg: white;
}

body {
    font-family: 'Poppins', sans-serif;
    background: white;
    font-size: 14px;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 3rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    overflow: visible;
    height: auto;
    min-height: 100vh;
}

.upload-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(218, 44, 39, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    border: none;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.upload-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(218, 44, 39, 0.12);
}

.upload-section.processing {
    opacity: 0.7;
    pointer-events: none;
}

.results-container {
    background: linear-gradient(145deg, white, rgba(232, 129, 34, 0.02));
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(218, 44, 39, 0.06),
                0 4px 8px rgba(218, 44, 39, 0.03);
    padding: 1.8rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(218, 44, 39, 0.08);
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: visible;
    height: auto !important;
    min-height: fit-content;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.results-container:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 25px 45px rgba(218, 44, 39, 0.1),
                0 12px 20px rgba(218, 44, 39, 0.08);
}

.section-heading {
    color: #da2b26;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    padding-bottom: 12px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #da2b26;
    border-radius: 2px;
}

.graph-container {
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 6px 16px rgba(218, 44, 39, 0.04);
    transition: all 0.3s ease;
    width: 100%;
    overflow: hidden;
}

.graph-container:hover {
    box-shadow: 0 8px 20px rgba(218, 44, 39, 0.08);
}

.graph-container img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
}

.video-container {
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 6px 16px rgba(218, 44, 39, 0.04);
    transition: all 0.3s ease;
    width: 100%;
    overflow: hidden;
}

.video-container:hover {
    box-shadow: 0 8px 20px rgba(218, 44, 39, 0.08);
}

#analyzedVideo, #analyzedVideo1 {
    width: 100%;
    max-height: 550px;
    object-fit: contain;
    border-radius: 8px;
    background: #000;
}

.emotion-badge {
    background: white;
    color: #da2b26;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    display: inline-block;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(232, 129, 34, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #e88122;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(0);
}

.emotion-badge:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 25px rgba(232, 129, 34, 0.3);
    background: white;
    color: #da2b26;
    border-color: #da2b26;
}

.overall-metrics {
    background: #da2b26;
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: none;
    box-shadow: 0 8px 20px rgba(218, 44, 39, 0.15),
                0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.overall-metrics:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(218, 44, 39, 0.2),
                0 6px 8px rgba(0, 0, 0, 0.12);
}

.overall-metrics h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.overall-metrics p {
    font-size: 0.95rem;
    color: white;
    margin: 0.4rem 0;
    opacity: 0.9;
}

/* Enhanced Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: #da2b26;
    color: white;
    box-shadow: 0 4px 15px rgba(218, 44, 39, 0.2);
    border: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #c4241f !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 44, 39, 0.3);
    color: white;
}

.btn-secondary {
    background: #e88122;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(232, 129, 34, 0.2);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #d67115 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 129, 34, 0.3);
    color: white !important;
}

.btn-primary:disabled,
.btn-primary[disabled] {
    background: linear-gradient(135deg, #da2b26 0%, #e88122 100%);
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.btn-info {
    background: white;
    color: #da2b26;
    border: 2px solid #da2b26;
    box-shadow: 0 4px 15px rgba(218, 44, 39, 0.1);
    margin-top: 1rem;
}

.btn-info:hover,
.btn-info:focus {
    background: rgba(218, 44, 39, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 44, 39, 0.2);
    color: #da2b26;
    border-color: #e88122;
}

.btn-secondary {
    background: #6c757d;
    border: none;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.2);
    transition: all 0.3s ease;
    color: white;
    cursor: pointer;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
    background: #5a6268 !important;
    color: white !important;
    border: none !important;
    outline: none !important;
}

/* Button group layout */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.button-group .btn {
    flex: 1;
    max-width: 200px;
}

/* Modern module selection modal */
.module-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.5rem;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: white;
    border: 1px solid rgba(218, 44, 39, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.module-item:hover {
    transform: translateX(5px);
    background: rgba(218, 44, 39, 0.02);
    border-color: #da2b26;
}

.module-item.selected {
    background: rgba(218, 44, 39, 0.05);
    border-color: #da2b26;
    box-shadow: 0 4px 15px rgba(218, 44, 39, 0.1);
}

.module-item .material-icons {
    color: #da2b26;
    font-size: 1.5rem;
}

.module-info {
    flex: 1;
}

.module-info h6 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.module-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.modal-dialog {
    margin: 1rem;
    max-width: calc(100% - 2rem);
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
}

.visitor-counter {
    background: #da2b26;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

.upload-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    text-align: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, #da2b26 0%, #e88122 100%);
    border-radius: 8px;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(218, 44, 39, 0.15);
    transform: translateY(0);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    max-width: 90px;
    line-height: 1.1;
}

.upload-counter span {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.upload-counter:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(218, 44, 39, 0.25);
}

@media (max-width: 768px) {
    .upload-counter {
        position: fixed;
        top: auto;
        bottom: 20px;
        right: 20px;
        padding: 0.6rem 1rem;
        font-size: 0.7rem;
        max-width: 80px;
    }

    .upload-counter span {
        font-size: 1.2rem;
    }
    
    .graph-container img {
        max-height: 400px;
    }
    
    #analyzedVideo, #analyzedVideo1 {
        max-height: 450px;
    }
    
    .graph-container, .video-container {
        padding: 0.8rem;
        margin: 1rem -0.5rem;
        width: calc(100% + 1rem);
    }
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

#hr-section, #hrv-section, #audio-section, #deepfake-section, #video-v1-section, #video-v2-section, #speech-section, #eye-section {
    display: none;
}

.content-heading {
    color: #da2b26;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: left;
    padding-bottom: 0.5rem;
    opacity: 0.9;
    border-bottom: none;
}
.graph-heading {

    color: #da2b26;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-align: center;
    padding-bottom: 0.4rem;
    opacity: 0.85;
}

.logo-section {
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
}

.logo-section img {
    max-height: 60px;
    margin-bottom: 1rem;
}

/* Progress Bar Container */
.progress-container {
    margin-top: 1.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    clear: both;
}

/* Progress Bar Styles */
.progress {
    position: relative;
    width: 100%;
    height: 12px;
    background-color: rgba(218, 44, 39, 0.1);
    border-radius: 100px;
    overflow: hidden;
    margin: 0;
}

.progress-bar {
    background: linear-gradient(90deg, #da2b26, #e88122);
    height: 100%;
    border-radius: 100px;
    transition: width 0.3s ease-in-out;
    position: relative;
}

.progress-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
    z-index: 1;
}

/* Circular Progress Bar */
.progress.circular {
    width: 60px;
    height: 60px;
    margin: 20px auto;
    background: none;
    padding: 0;
}

.progress-bar.spinner {
    width: 60px !important;
    height: 60px !important;
    border: 3px solid rgba(218, 44, 39, 0.1);
    border-top: 3px solid #da2b26;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    background: none;
    position: absolute;
    top: 0;
    left: 0;
}

#status {
    color: #333;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .progress {
        height: 10px;
    }
    
    .progress-text {
        font-size: 0.7rem;
    }
    
    .progress.circular {
        width: 40px;
        height: 40px;
    }
    
    .progress-bar.spinner {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 800px;
        margin: 0 auto;
        padding: 2rem;
        transition: none;
    }
}

@media (max-width: 991px) {
    .side-nav {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
    }
    
    .nav-toggle.active {
        left: 20px;
    }
}

html, body {
    overflow-x: hidden;
}

.video-container, 
.graph-container {
    width: 100%;
    height: auto !important;
    overflow: visible;
    margin: 1rem 0;
}

#analyzedVideo, 
#analyzedVideo1 {
    max-height: none;
    height: auto;
}

.side-nav {
    position: fixed;
    left: -250px;
    top: 0;
    height: 100vh;
    width: 250px;
    background: white;
    box-shadow: 4px 0 15px rgba(218, 44, 39, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1005;
    padding: 2rem 1rem;
    border-right: 1px solid rgba(218, 44, 39, 0.1);
    overflow-y: auto;
}

.side-nav.active {
    left: 0;
}

.nav-header {
    color: #da2b26;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(218, 44, 39, 0.1);
    margin-top: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    color: #333;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.75;
    background: transparent;
    border: 1px solid transparent;
}

.nav-link:hover {
    opacity: 1;
    background: rgba(218, 44, 39, 0.04);
    transform: translateX(4px);
    color: #da2b26;
}

.nav-link.active {
    background: rgba(218, 44, 39, 0.08);
    color: #da2b26;
    opacity: 1;
    font-weight: 600;
    border: 1px solid rgba(218, 44, 39, 0.1);
    box-shadow: 0 4px 12px rgba(218, 44, 39, 0.06);
}

.nav-link .material-icons {
    margin-right: 8px;
    font-size: 1.2rem;
    opacity: 0.8;
}

.nav-toggle {
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 1010;
    background: white;
    color: #da2b26;
    border: 1px solid rgba(218, 44, 39, 0.15);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(218, 44, 39, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
    background: #da2b26;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 44, 39, 0.2);
}

.nav-toggle:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(218, 44, 39, 0.15);
}

.nav-toggle.active {
    background: #da2b26;
    color: white;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(218, 44, 39, 0.1);
    backdrop-filter: blur(4px);
    z-index: 1004;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Add these new styles before the media queries */
.analysis-grid > div {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    order: 999; /* Default order for hidden sections */
}

.analysis-grid > div[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}

.analysis-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-enter {
    animation: sectionEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.analysis-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    perspective: 2000px;
    transform-style: preserve-3d;
    padding-top: 20px;
}

.analysis-grid > div {
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateY(40px) scale(0.95) rotateX(-5deg);
    backface-visibility: hidden;
    transform-origin: center top;
    will-change: transform, opacity;
    filter: blur(5px);
}

.analysis-grid > div[style*="display: block"] {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
    filter: blur(0);
}

.section-enter {
    animation: sectionSlideDown 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.section-slide-down {
    animation: sectionPush 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes sectionSlideDown {
    0% {
        transform: translateY(-80px) scale(0.95) rotateX(10deg);
        opacity: 0;
        filter: blur(15px);
    }
    40% {
        transform: translateY(15px) scale(0.98) rotateX(-5deg);
        opacity: 0.8;
        filter: blur(8px);
    }
    70% {
        transform: translateY(-8px) scale(0.99) rotateX(2deg);
        opacity: 0.9;
        filter: blur(4px);
    }
    100% {
        transform: translateY(0) scale(1) rotateX(0);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes sectionPush {
    0% {
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
    30% {
        transform: translateY(40px) scale(0.97);
        filter: blur(4px);
    }
    60% {
        transform: translateY(-15px) scale(0.98);
        filter: blur(2px);
    }
    100% {
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.accuracy-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(218, 44, 39, 0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.accuracy-container.show {
    transform: translateY(0);
    opacity: 1;
}

.accuracy-content h3 {
    color: #da2b26;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.accuracy-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e88122;
    margin: 1rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.accuracy-bar {
    height: 6px;
    background: rgba(218, 44, 39, 0.1);
    border-radius: 100px;
    margin: 1rem auto;
    max-width: 300px;
    overflow: hidden;
}

.accuracy-bar #accuracy-progress {
    height: 100%;
    background: linear-gradient(90deg, #da2b26, #e88122);
    width: 0;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 100px;
    box-shadow: 0 2px 4px rgba(218, 44, 39, 0.2);
}

.trust-score-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(218, 44, 39, 0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trust-score-container.show {
    transform: translateY(0);
    opacity: 1;
}

.trust-content h3 {
    color: #da2b26;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.trust-stars {
    font-size: 2rem;
    color: #e0e0e0;
    margin: 1rem 0;
}

.star {
    margin: 0 2px;
    cursor: default;
    position: relative;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #e0e0e0;
}

.star.full {
    color: #e88122;
    text-shadow: 0 0 5px rgba(232, 129, 34, 0.5);
    transform: scale(1.2);
}

.star.partial {
    position: relative;
    color: #e0e0e0;
}

.star.partial::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: var(--fill-percent);
    color: #e88122;
    overflow: hidden;
    text-shadow: 0 0 5px rgba(232, 129, 34, 0.5);
}

.trust-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e88122;
    margin: 1rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* .trust-weights {
    margin-top: 15px;
    font-size: 0.85rem;
    text-align: left;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.weight-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.weight-item:last-child {
    border-bottom: none;
}

.weight-item span {
    font-weight: 500;
    color: #4CAF50;
} */

.accuracy-circle {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.accuracy-circle svg {
    transform: rotate(-90deg);
    overflow: visible;
}

.accuracy-circle-bg {
    fill: none;
    stroke: rgba(218, 44, 39, 0.1);
    stroke-width: 8;
}

.accuracy-circle-progress {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 472;
    stroke-dashoffset: 472;
    transition: stroke-dashoffset 1s ease;
}

.accuracy-score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: #e88122;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Add gradient definition to the first SVG */
.accuracy-circle svg:first-child {
    filter: drop-shadow(0 0 4px rgba(232, 129, 34, 0.3));
}

.accuracy-circle svg:first-child circle.accuracy-circle-progress {
    stroke: #e88122;
    background: linear-gradient(90deg, #da2b26, #e88122);
}

/* Add gradient definition to the first SVG */
.accuracy-circle svg:first-child {
    filter: drop-shadow(0 0 4px rgba(232, 129, 34, 0.3));
}

.accuracy-circle svg:first-child circle.accuracy-circle-progress {
    stroke: #e88122;
    background: linear-gradient(90deg, #da2b26, #e88122);
}

.btn-secondary {
    background: #6c757d;
    border: none;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.2);
    transition: all 0.3s ease;
    color: white;
    cursor: pointer;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
    background: #5a6268 !important;
    color: white !important;
    border: none !important;
    outline: none !important;
}

.deepfake-report-btn {
    background: linear-gradient(90deg, #da2b26 0%, #e88122 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 24px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 0.7rem 2rem !important;
    box-shadow: 0 4px 16px rgba(218,44,39,0.13) !important;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    outline: none !important;
    text-decoration: none !important;
}

.deepfake-report-btn:hover, .deepfake-report-btn:focus {
    background: linear-gradient(90deg, #e88122 0%, #da2b26 100%) !important;
    color: #fff !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(218,44,39,0.18) !important;
    text-decoration: none !important;
}

.pdf-report-link {
    text-align: center;
    margin-top: 16px;
}

.report-btn {
    margin-top: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(218,44,39,0.15);
    background: linear-gradient(135deg, #da2b26 0%, #e88122 100%);
    border: none;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.report-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.report-btn:hover::before {
    left: 100%;
}

.report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(218,44,39,0.25);
    background: linear-gradient(135deg, #e88122 0%, #da2b26 100%);
    color: white;
    text-decoration: none;
}

.report-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(218,44,39,0.2);
}

.report-btn .material-icons {
    font-size: 1.2rem;
    margin-right: 0.3rem;
}

@media (max-width: 768px) {
    .report-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.3s ease-out;
}

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

.alert-error .material-icons {
    color: #dc3545;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-dismissible {
    padding-right: 4rem;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1.25rem 1rem;
}

.user-info-block {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(90deg, #da2b26 60%, #e88122 100%);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(218,44,39,0.07);
    color: #fff;
    position: relative;
    min-height: 56px;
    min-width: 0;
}

.user-avatar {
    font-size: 2.2rem !important;
    color: #fff !important;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    padding: 2px;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

.user-label {
    font-size: 0.7rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
    font-weight: 400;
    color: #fff;
}

.user-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
    display: block;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

/* Remove previous hover/focus expansion logic */
.user-name:hover,
.user-name:focus {
    /* Reset all expansion styles */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: none;
    color: #fff;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    position: relative;
    left: auto;
    top: auto;
    margin-top: 0;
    min-width: 0;
    word-break: normal;
}

/* Tooltip for full username on hover/focus (desktop only) */
.user-name[data-full]::after {
    content: attr(data-full);
    display: none;
    position: absolute;
    left: 0;
    top: 120%;
    background: rgba(0,0,0,0.92);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    white-space: pre-line;
    font-size: 1rem;
    font-weight: 500;
    min-width: 120px;
    max-width: 350px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    word-break: break-all;
}

.user-name[data-full]:hover::after,
.user-name[data-full]:focus::after {
    display: block;
    opacity: 1;
}

/* On small screens, do not show tooltip, just wrap text */
@media (max-width: 991px) {
    .user-name {
        font-size: 0.95rem;
        max-width: 100%;
        word-break: break-all;
        white-space: normal;
        position: static;
        background: none;
        color: #fff;
        box-shadow: none;
        padding: 0;
    }
    .user-name[data-full]::after {
        display: none !important;
    }
}

/* Hide nav toggle when sidebar is open */
.side-nav.active ~ .nav-toggle,
.side-nav.active + .nav-toggle,
.nav-toggle.hide {
    display: none !important;
}