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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-bg: #1e293b;
    --dark-card: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: #475569;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: var(--gradient-1);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
    margin-bottom: 5px;
}

.subtitle-small {
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 300;
    font-style: italic;
    margin-top: 5px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    padding: 15px 30px;
    background: var(--dark-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.tab-btn::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;
}

.tab-btn:hover::before {
    width: 300px;
    height: 300px;
}

.tab-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.tab-btn:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

.tab-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    animation: glow 2s ease-in-out infinite;
}

.tab-btn.active::before {
    width: 300px;
    height: 300px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.8), 0 0 30px rgba(99, 102, 241, 0.6);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Cards */
.card {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 25px;
    font-weight: 300;
}

/* Training Grid */
.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.training-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out backwards;
}

.training-card:nth-child(1) {
    animation-delay: 0.1s;
}

.training-card:nth-child(2) {
    animation-delay: 0.2s;
}

.training-card:nth-child(3) {
    animation-delay: 0.3s;
}

.training-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.training-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.training-card:hover::before {
    left: 100%;
}

.training-card:hover::after {
    width: 200%;
    height: 200%;
}

.training-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.4);
}

.training-card:active {
    transform: translateY(-5px) scale(0.98);
    transition: all 0.1s ease;
}

.training-card.highlight {
    border: 2px solid var(--warning-color);
    background: linear-gradient(135deg, #3b2f1e 0%, #4a3a25 100%);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.card-icon.advanced {
    background: var(--gradient-2);
}

.card-icon.both {
    background: var(--gradient-3);
}

.training-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.training-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    animation: glow 2s ease-in-out infinite;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.btn-primary:active::before {
    width: 0;
    height: 0;
}

.btn-submit {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px auto 0;
    width: 100%;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-submit:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    animation: glow 2s ease-in-out infinite;
}

.btn-submit:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.btn-submit:active::before {
    width: 0;
    height: 0;
}

/* Form Styles */
.prediction-form {
    margin-top: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: var(--danger-color);
    animation: shake 0.5s ease;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: var(--success-color);
}

/* Prediction Options */
.prediction-options {
    margin: 30px 0;
    padding: 25px;
    background: var(--dark-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.prediction-options h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-content {
    background: var(--dark-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.radio-card input[type="radio"]:checked+.radio-content {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

.radio-content i {
    font-size: 2rem;
    color: var(--primary-color);
}

.model-select {
    margin-top: 20px;
    padding: 15px;
    background: var(--dark-card);
    border-radius: 10px;
}

.model-select label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.model-select select {
    width: 100%;
    padding: 12px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
}

/* Metrics Display */
.metrics-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.metrics-btn {
    padding: 10px 20px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.metrics-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.metrics-content {
    margin-top: 20px;
}

.metrics-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.metrics-table th,
.metrics-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.metrics-table th {
    background: var(--dark-bg);
    font-weight: 600;
    color: var(--primary-color);
}

.metrics-table tr {
    transition: all 0.3s ease;
}

.metrics-table tr:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.metrics-table tbody tr {
    animation: fadeInUp 0.5s ease-out backwards;
}

.metrics-table tbody tr:nth-child(1) {
    animation-delay: 0.1s;
}

.metrics-table tbody tr:nth-child(2) {
    animation-delay: 0.2s;
}

.metrics-table tbody tr:nth-child(3) {
    animation-delay: 0.3s;
}

.metrics-table tbody tr:nth-child(4) {
    animation-delay: 0.4s;
}

.metrics-table tbody tr:nth-child(5) {
    animation-delay: 0.5s;
}

.metrics-table tbody tr:nth-child(n+6) {
    animation-delay: 0.6s;
}

/* Results */
.results-container {
    margin-top: 30px;
    padding: 25px;
    background: var(--dark-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    display: none;
}

.results-container.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.result-card {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

.result-card.fake {
    border-left-color: var(--danger-color);
}

.result-card.real {
    border-left-color: var(--success-color);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.result-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-fake {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.badge-real {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.result-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.metric-item {
    text-align: center;
    padding: 15px;
    background: var(--dark-bg);
    border-radius: 10px;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Status Messages */
.status-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: block;
}

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

.status-message.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: bounce 0.6s ease;
    display: block;
}

.status-message.show::before {
    left: 100%;
}

.status-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.status-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

.status-info {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    position: relative;
}

.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading::after {
    content: 'Loading';
    display: block;
    margin-top: 50px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--dark-bg);
    font-weight: 600;
    color: var(--primary-color);
}

.comparison-table tr:nth-child(even) {
    background: rgba(99, 102, 241, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .tabs {
        flex-direction: column;
    }

    .training-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Dataset Section Styles */
.dataset-section {
    margin-bottom: 40px;
    padding: 25px;
    background: var(--dark-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.dataset-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dataset-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: var(--dark-bg);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.6s ease-out backwards;
    position: relative;
    overflow: hidden;
}

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

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.stat-card.fake {
    border-color: var(--danger-color);
}

.stat-card.fake:hover {
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.3);
}

.stat-card.real {
    border-color: var(--success-color);
}

.stat-card.real:hover {
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.3);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-card.fake .stat-value {
    color: var(--danger-color);
}

.stat-card.real .stat-value {
    color: var(--success-color);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.features-list {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    background: var(--dark-bg);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideInLeft 0.5s ease-out backwards;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feature-item:hover::before {
    transform: scaleY(1);
}

.feature-item:hover {
    transform: translateX(8px) scale(1.02);
    border-left-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.feature-item:nth-child(odd) {
    animation-name: slideInRight;
}

.feature-name {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-name code {
    background: rgba(99, 102, 241, 0.2);
    padding: 5px 10px;
    border-radius: 6px;
    color: var(--primary-color);
    font-size: 1rem;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.categorical-stat {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--dark-bg);
    border-radius: 10px;
}

.stat-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.stat-bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bar-label {
    min-width: 120px;
    color: var(--text-primary);
    font-weight: 500;
}

.bar {
    flex: 1;
    height: 25px;
    background: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    transition: width 0.8s ease;
}

.bar-value {
    min-width: 100px;
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-stats-table {
    margin-top: 20px;
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--dark-bg);
    border-radius: 10px;
    overflow: hidden;
}

.stats-table th,
.stats-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.stats-table th {
    background: var(--dark-card);
    font-weight: 600;
    color: var(--primary-color);
    position: sticky;
    top: 0;
}

.stats-table tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

.stats-table code {
    background: rgba(99, 102, 241, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Chart Containers */
.chart-container {
    position: relative;
    height: 400px;
    margin: 30px 0;
    padding: 20px;
    background: var(--dark-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    }
}

.animate-card {
    animation: slideInUp 0.6s ease-out;
}

.animate-card:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-card:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-card:nth-child(3) {
    animation-delay: 0.3s;
}

.animate-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-item {
    animation: slideInLeft 0.5s ease-out;
}

.feature-item:nth-child(odd) {
    animation: slideInRight 0.5s ease-out;
}

.dataset-section {
    animation: scaleIn 0.5s ease-out;
}

/* Enhanced Hover Effects */
.stat-card:hover {
    animation: pulseGlow 2s ease-in-out infinite;
}

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

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg,
            var(--dark-bg) 0%,
            var(--dark-card) 50%,
            var(--dark-bg) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Progress Bar Animation */
@keyframes progressBar {
    from {
        width: 0%;
    }
}

.bar-fill {
    animation: progressBar 1.5s ease-out;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Gradient Text Animation */
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.gradient-text {
    background: linear-gradient(90deg,
            var(--primary-color),
            var(--secondary-color),
            var(--primary-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

/* Result Card Animations */
.result-card {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

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

.result-card:hover::before {
    left: 100%;
}

.result-card:hover {
    transform: translateX(5px) scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.result-card.fake {
    border-left-color: var(--danger-color);
}

.result-card.fake:hover {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.result-card.real {
    border-left-color: var(--success-color);
}

.result-card.real:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Metrics Table Row Animation */
.metrics-table tbody tr {
    animation: slideInLeft 0.4s ease-out;
}

.metrics-table tbody tr:nth-child(even) {
    animation: slideInRight 0.4s ease-out;
}

/* Button Ripple Effect */
.btn-primary,
.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after,
.btn-submit:hover::after {
    width: 300px;
    height: 300px;
}

/* Tab Switch Animation */
.tab-content.active {
    animation: fadeIn 0.5s ease;
}

/* Number Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-value {
    animation: countUp 1.5s ease-out;
}

/* Enhanced Button Ripple Effect - Additional active state animation */
.btn-primary span,
.btn-submit span {
    position: relative;
    z-index: 1;
}

.btn-primary::after,
.btn-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.btn-primary:active::after,
.btn-submit:active::after {
    width: 300px;
    height: 300px;
    animation: ripple 0.6s ease-out;
}

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

/* Enhanced Header Animation */
.header {
    animation: fadeInDown 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header h1 {
    animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s backwards;
}

/* Success Animation */
@keyframes successPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.status-success.show {
    animation: successPulse 0.6s ease;
}

/* Error Animation */
@keyframes errorShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.status-error.show {
    animation: errorShake 0.5s ease;
}

/* Loading Spinner Enhancement */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Smooth Transitions for All Interactive Elements */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Form Input Animations */
.form-group {
    animation: fadeInUp 0.5s ease-out backwards;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.form-group:nth-child(4) {
    animation-delay: 0.4s;
}

.form-group:nth-child(5) {
    animation-delay: 0.5s;
}

.form-group:nth-child(6) {
    animation-delay: 0.6s;
}

.form-group:nth-child(7) {
    animation-delay: 0.7s;
}

.form-group:nth-child(8) {
    animation-delay: 0.8s;
}

/* Radio Card Enhanced Animations */
.radio-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.5s ease-out backwards;
}

.radio-card:nth-child(1) {
    animation-delay: 0.1s;
}

.radio-card:nth-child(2) {
    animation-delay: 0.2s;
}

.radio-card:nth-child(3) {
    animation-delay: 0.3s;
}

.radio-card:nth-child(4) {
    animation-delay: 0.4s;
}

.radio-card:hover {
    transform: translateY(-5px) scale(1.03);
}

.radio-card input[type="radio"]:checked+.radio-content {
    animation: scaleIn 0.3s ease;
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Badge Animations */
.badge-fake,
.badge-real {
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Metric Item Animations */
.metric-item {
    animation: fadeInLeft 0.5s ease-out backwards;
}

.metric-item:nth-child(odd) {
    animation-name: fadeInRight;
}

/* Progress Bar Animation */
.bar-fill {
    animation: progressBar 1.5s ease-out;
}

/* Table Row Stagger Animation */
.comparison-table tbody tr {
    animation: slideInLeft 0.5s ease-out backwards;
}

.comparison-table tbody tr:nth-child(even) {
    animation-name: slideInRight;
}

.comparison-table tbody tr:nth-child(1) {
    animation-delay: 0.1s;
}

.comparison-table tbody tr:nth-child(2) {
    animation-delay: 0.2s;
}

.comparison-table tbody tr:nth-child(3) {
    animation-delay: 0.3s;
}

.comparison-table tbody tr:nth-child(4) {
    animation-delay: 0.4s;
}

.comparison-table tbody tr:nth-child(5) {
    animation-delay: 0.5s;
}

.comparison-table tbody tr:nth-child(n+6) {
    animation-delay: 0.6s;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}