/* The Integrity Report - Dark Theme High Contrast */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Dark background with more contrast */
body {
    background: #020617;
    min-height: 100vh;
    color: #f1f5f9;
}

/* Glass morphism effect for cards - High Contrast */
.glass-card {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(100, 116, 139, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(129, 140, 248, 0.4);
    border-color: rgba(129, 140, 248, 0.7);
}

/* Modern button styles */
.modern-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-button:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modern-button:hover:before {
    width: 300px;
    height: 300px;
}

/* Gradient text - High Contrast */
.gradient-text {
    background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Flash message animations */
.flash-message {
    animation: slideInDown 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 12px;
}

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

/* File upload zone - High contrast */
.file-upload-zone {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    border: 2px dashed #64748b;
}

.file-upload-zone:hover {
    border-color: #a5b4fc;
    background: linear-gradient(135deg, rgba(165, 180, 252, 0.15) 0%, rgba(196, 181, 253, 0.15) 100%);
    transform: scale(1.01);
}

/* Loading spinner - dark theme */
.spinner {
    border: 3px solid rgba(129, 140, 248, 0.2);
    border-top: 3px solid #818cf8;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: modernSpin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes modernSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results card animations */
.result-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
}

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

/* Tab modern styling - dark */
.tab-button {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.tab-button:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #818cf8 0%, #a78bfa 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}

.tab-button.active:after {
    width: 100%;
}

/* Modern input fields - High Contrast */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    transition: all 0.3s ease;
    border-radius: 12px;
    background: #0f172a;
    border: 2px solid #475569;
    color: #f1f5f9;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(165, 180, 252, 0.4);
    background: #1e293b;
    border-color: #a5b4fc;
}

/* Feature cards - High Contrast */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid rgba(100, 116, 139, 0.5);
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a5b4fc 0%, #c4b5fd 100%);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.feature-card:hover:before {
    transform: translateX(0);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(165, 180, 252, 0.4);
    border-color: rgba(165, 180, 252, 0.7);
}

/* Navigation bar - High Contrast */
nav {
    backdrop-filter: blur(10px);
    background: rgba(2, 6, 23, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    border-bottom: 2px solid rgba(100, 116, 139, 0.5);
}

/* Score progress bar */
.score-progress {
    height: 8px;
    border-radius: 10px;
    background: #1e293b;
    overflow: hidden;
    position: relative;
}

.score-progress-bar {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #818cf8 0%, #a78bfa 100%);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.score-progress-bar:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

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

/* Pulse animation for important elements */
.pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
    .flash-message {
        margin: 0.5rem;
        border-radius: 8px;
    }

    .glass-card {
        border-radius: 12px;
    }
}
