/* Modern UI Variables with color palette from first file */
:root {
    /* Verde claro a verde oscuro - tonos primarios (from first file) */
    --primary-lightest: #7fd1b6; /* Verde muy claro para hover y efectos */
    --primary-light: #58c4a5;    /* Verde claro para elementos secundarios */
    --primary: #37b698;          /* Verde principal - tono base */
    --primary-dark: #2a9a80;     /* Verde oscuro para hover */
    --primary-darkest: #198754;  /* Verde muy oscuro para contraste */
    
    /* Verdes complementarios - tonos secundarios (from first file) */
    --secondary-light: #569e8f;  /* Verde azulado claro */
    --secondary: #478576;        /* Verde azulado medio */
    --secondary-dark: #396c5f;   /* Verde azulado oscuro */
    
    /* Colores de estado (from first file) */
    --success: #37b698;          /* Éxito - mismo que primary */
    --success-light: #58c4a5;    /* Éxito claro para hover */
    --success-dark: #2a9a80;     /* Éxito oscuro para active */
    
    --danger: #e74c3c;           /* Error/peligro */
    --danger-light: #eb6b5e;     /* Error claro */
    --danger-dark: #c0392b;      /* Error oscuro */
    
    --warning: #f39c12;          /* Advertencia */
    --warning-light: #f5b041;    /* Advertencia clara */
    --warning-dark: #d35400;     /* Advertencia oscura */
    
    /* Tonos de fondo y texto (from first file) */
    --light: #f3f4f6;            /* Fondo claro */
    --light-hover: #e9ebee;      /* Fondo claro para hover */
    --dark: #1f2937;             /* Texto principal */
    --dark-light: #374151;       /* Texto secundario */
    
    /* Color acento para destacar (from first file) */
    --accent: #198754;           /* Verde oscuro para acentos */
    --accent-light: #26a96c;     /* Verde oscuro claro */

    /* Additional variables from second file */
    --info: #569e8f;             /* Using secondary-light from first file */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    --border-radius-sm: 0.2rem;
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Reset and base styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: #f5f7fa;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Modern Header & Footer */
.header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 1.25rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to right, rgba(55, 182, 152, 0.2), rgba(55, 182, 152, 0.2) 50%, transparent 50%, transparent);
    background-size: 20px 10px;
}

.header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.footer {
    background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
    color: white;
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(135deg, transparent, transparent 50%, var(--secondary) 50%, var(--secondary));
    background-size: 20px 10px;
    z-index: -1;
}

/* Modern Cards */
.card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.75rem;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(to right, rgba(242, 245, 255, 0.8), rgba(255, 255, 255, 0.95));
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header h2 i {
    color: var(--primary);
    font-size: 1.2em;
}

.card-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--gray-600);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    padding: 0.4rem 0.6rem;
    border-radius: var(--border-radius);
    background-color: rgba(88, 196, 165, 0.1);
}

.card-toggle:hover {
    color: var(--primary);
    background-color: rgba(88, 196, 165, 0.2);
}

.card-toggle i {
    transition: transform var(--transition-fast);
}

.card-toggle.active i {
    transform: rotate(180deg);
}

.card-body {
    padding: 0;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card-body.active {
    display: block;
    opacity: 1;
}

/* Modern Tables */
.table-responsive {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-400) var(--gray-200);
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: var(--gray-400);
    border-radius: 3px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
}

table th,
table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

table th {
    background-color: rgba(249, 250, 251, 0.8);
    font-weight: 600;
    color: var(--gray-700);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

table tr {
    transition: background-color var(--transition-fast);
}

table tr:hover {
    background-color: rgba(55, 182, 152, 0.05);
}

/* Status badges and tags */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: var(--border-radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--transition-normal);
}

.status-pending {
    background-color: rgba(243, 156, 18, 0.15);
    color: var(--warning-dark);
}

.status-assigned {
    background-color: rgba(55, 182, 152, 0.15);
    color: var(--success-dark);
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.tag-oral {
    background-color: rgba(55, 182, 152, 0.15);
    color: var(--primary-dark);
}

.tag-poster {
    background-color: rgba(243, 156, 18, 0.2);
    color: var(--warning-dark);
}

.tag-panel {
    background-color: rgba(86, 158, 143, 0.15);
    color: var(--secondary-dark);
}

/* Modern Evaluator badges */
.evaluator-badge {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-normal);
    margin: 0 auto;
    position: relative;
    box-shadow: 0 2px 5px rgba(55, 182, 152, 0.3);
    border: 2px solid transparent;
}

.evaluator-badge:not(.assigned) {
    background: linear-gradient(135deg, var(--gray-300), var(--gray-400));
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.evaluator-badge:not(.assigned):hover {
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.evaluator-badge.assigned {
    background: linear-gradient(135deg, var(--success), var(--success-light));
}

.evaluator-badge.assigned::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: white;
    color: var(--success);
    width: 18px;
    height: 18px;
    font-size: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.evaluator-initials {
    font-size: 0.85rem;
    font-weight: bold;
}

.evaluator-avatar {
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Modern Progress bar */
#assignment-progress .card-body {
    padding: 1.5rem;
}

.progress-container {
    height: 10px;
    background-color: var(--gray-200);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    margin-top: 1.5rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-value {
    height: 100%;
    background: linear-gradient(to right, var(--primary-light), var(--primary));
    border-radius: var(--border-radius-xl);
    transition: width var(--transition-slow) cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 1px 3px rgba(55, 182, 152, 0.3);
}

.stats-box {
    display: flex;
    justify-content: space-around;
    margin: 1rem 0 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    min-width: 120px;
    transition: transform var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.pending-value {
    color: var(--danger);
}

.assigned-value {
    color: var(--success);
}

.total-value {
    color: var(--primary);
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Area cards */
.area-card {
    border-left: 5px solid transparent;
    transition: border-color var(--transition-normal);
    position: relative;
}

.area-card:hover {
    border-left-color: var(--primary);
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.area-card:hover::before {
    opacity: 1;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Action buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 2px solid transparent;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:active::after {
    animation: ripple 1s ease-out;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darkest));
    box-shadow: 0 4px 10px rgba(55, 182, 152, 0.3);
    transform: translateY(-2px);
}

.btn-danger {
    color: white;
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    border-color: var(--danger);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--danger-dark), #a82315);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

.btn i {
    font-size: 1.1em;
}

/* Advanced animations */
@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(55, 182, 152, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(55, 182, 152, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(55, 182, 152, 0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Evaluator selector styles */
.evaluator-selector {
    position: absolute;
    z-index: 1000;
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 320px;
    overflow: hidden;
    animation: fadeInUp 0.3s ease-out;
    border: 1px solid var(--gray-200);
}

.selector-title {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selector-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.selector-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.selector-options {
    max-height: 350px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-400) var(--gray-200);
}

.selector-options::-webkit-scrollbar {
    width: 6px;
}

.selector-options::-webkit-scrollbar-track {
    background: var(--gray-200);
}

.selector-options::-webkit-scrollbar-thumb {
    background-color: var(--gray-400);
    border-radius: 3px;
}

.selector-option {
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--gray-200);
}

.selector-option:hover {
    background-color: rgba(55, 182, 152, 0.05);
}

.selector-option:last-child {
    border-bottom: none;
}

.evaluator-info {
    flex-grow: 1;
}

.evaluator-name {
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.evaluator-workload {
    font-size: 0.8rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 30px;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.badge-primary {
    color: white;
    background-color: var(--primary);
}

.badge-secondary {
    color: var(--gray-700);
    background-color: var(--gray-200);
}

.badge-success {
    color: white;
    background-color: var(--success);
}

/* Tooltip styles */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast) ease;
    z-index: 999;
}

[data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: 125%;
    left: 50%;
    margin-bottom: 5px;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(55, 65, 81, 0.9) transparent transparent transparent;
    transform: rotate(180deg);
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    background-color: rgba(55, 65, 81, 0.9);
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    border-radius: var(--border-radius);
    font-weight: normal;
    font-size: 0.75rem;
    min-width: 70px;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    visibility: visible;
    opacity: 1;
}

/* Workload chart in evaluator distribution */
.workload-container {
    padding: 1.5rem;
}

.workload-chart {
    display: flex;
    align-items: flex-end;
    height: 250px;
    gap: 3px;
    margin: 2rem 0;
    padding: 0 0.5rem;
}

.workload-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.workload-value {
    width: 100%;
    background: linear-gradient(to top, var(--primary-light), var(--primary));
    border-radius: 4px 4px 0 0;
    transition: height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    min-height: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.workload-value::before {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: var(--border-radius);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.workload-value:hover::before {
    opacity: 1;
}

.workload-label {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--gray-600);
    text-align: center;
    word-break: break-word;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.workload-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-bottom: 0.25rem;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Paper row hover effect */
.paper-row {
    transition: all var(--transition-normal);
    position: relative;
}

.paper-row:hover {
    background-color: rgba(55, 182, 152, 0.05);
    transform: translateX(5px);
}

.paper-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.paper-row:hover::before {
    opacity: 1;
}

/* Assignment simulation effects */
@keyframes assignmentPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(55, 182, 152, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(55, 182, 152, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(55, 182, 152, 0);
    }
}

.assignment-pulse {
    animation: assignmentPulse 1.5s ease-out;
}

/* Connection lines between evaluators and papers (visual effect for assigning) */
.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--success));
    z-index: 5;
    opacity: 0;
    transform-origin: left center;
    pointer-events: none;
}

.connection-line.animated {
    animation: drawLine 1s ease-out forwards;
}

@keyframes drawLine {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Confetti effect for successful assignment */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

/* Responsive design improvements */
/* Continuation of the updated CSS with the first file's color palette */

@media (max-width: 1024px) {
    .stats-box {
        flex-wrap: wrap;
    }
    
    .stat-item {
        min-width: calc(33.333% - 1rem);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }
    
    .header h1 {
        font-size: 1.4rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .card-toggle {
        align-self: flex-end;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .stat-item {
        min-width: calc(50% - 1rem);
    }
    
    .evaluator-selector {
        width: 90%;
        max-width: 320px;
        left: 50% !important;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    .table-responsive {
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }
    
    .stat-item {
        min-width: 100%;
    }
    
    .evaluator-badge {
        width: 30px;
        height: 30px;
    }
}

/* CSS for dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-light: #58c4a5;
        --primary: #37b698;
        --primary-dark: #2a9a80;
    }
    
    body {
        background-color: #121212;
        color: #e5e5e5;
    }
    
    .card {
        background-color: #1e1e1e;
        border-color: #333;
    }
    
    .card-header {
        background: linear-gradient(to right, rgba(30, 30, 30, 0.8), rgba(40, 40, 40, 0.95));
        border-bottom-color: #333;
    }
    
    .card-header h2 {
        color: #e5e5e5;
    }
    
    .card-toggle {
        background-color: rgba(55, 182, 152, 0.2);
        color: #a0aec0;
    }
    
    .card-toggle:hover {
        background-color: rgba(55, 182, 152, 0.3);
        color: #e5e5e5;
    }
    
    table th,
    table td {
        border-bottom-color: #333;
    }
    
    table th {
        background-color: rgba(40, 40, 40, 0.8);
        color: #e5e5e5;
    }
    
    table tr:hover {
        background-color: rgba(55, 182, 152, 0.1);
    }
    
    .status-pending {
        background-color: rgba(243, 156, 18, 0.2);
    }
    
    .status-assigned {
        background-color: rgba(55, 182, 152, 0.2);
    }
    
    .tag-oral {
        background-color: rgba(55, 182, 152, 0.2);
    }
    
    .tag-poster {
        background-color: rgba(243, 156, 18, 0.2);
    }
    
    .tag-panel {
        background-color: rgba(71, 133, 118, 0.2);
    }
    
    .evaluator-selector {
        background-color: #1e1e1e;
        border-color: #333;
    }
    
    .selector-option {
        border-bottom-color: #333;
    }
    
    .selector-option:hover {
        background-color: rgba(55, 182, 152, 0.1);
    }
    
    .evaluator-name {
        color: #e5e5e5;
    }
    
    .badge-secondary {
        background-color: #4a5568;
        color: #e5e5e5;
    }
    
    .progress-container {
        background-color: #333;
    }
    
    .stat-item {
        background-color: #1e1e1e;
        border-color: #333;
    }
}

/* Assignment Simulation Animation Effects */
.assignment-animation {
    position: relative;
}

.connection-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
}

.connection-dot.animated {
    animation: moveDot 1.5s cubic-bezier(0.42, 0, 0.58, 1) forwards;
}

@keyframes moveDot {
    0% {
        opacity: 1;
        transform: scale(0.5);
    }
    80% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Success checkmark animation */
.checkmark-container {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    z-index: 10;
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

.checkmark-container.animated {
    animation: showCheckmark 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes showCheckmark {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading dots animation */
.loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background-color: currentColor;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.7;
}

.loading-dots span:nth-child(1) {
    animation: loadingDot 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(2) {
    animation: loadingDot 1.4s infinite ease-in-out;
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation: loadingDot 1.4s infinite ease-in-out;
    animation-delay: 0.4s;
}

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

/* Confetti animation styles */
.confetti-piece {
    position: absolute;
    width: 10px;
    height: 30px;
    background: #f3f4f6;
    top: 0;
    opacity: 0;
}

.confetti-piece.c1 {
    background: var(--primary);
}
.confetti-piece.c2 {
    background: var(--success);
}
.confetti-piece.c3 {
    background: var(--warning);
}
.confetti-piece.c4 {
    background: var(--info);
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        top: 0;
        transform: translateX(0) rotateZ(0deg);
    }
    100% {
        opacity: 0;
        top: 100vh;
        transform: translateX(20vw) rotateZ(360deg);
    }
}

/* Workload Distribution Chart Styles */
.workload-distribution {
    padding: 2rem;
}

.workload-chart-container {
    height: 300px;
    margin: 2rem 0;
    position: relative;
}

.chart-axis {
    position: absolute;
    background-color: var(--gray-400);
}

.y-axis {
    left: 40px;
    top: 20px;
    height: calc(100% - 40px);
    width: 2px;
}

.x-axis {
    left: 40px;
    bottom: 20px;
    height: 2px;
    width: calc(100% - 60px);
}

.axis-label {
    position: absolute;
    font-size: 0.75rem;
    color: var(--gray-600);
}

.y-label {
    transform: rotate(-90deg);
    transform-origin: left center;
    left: 10px;
    top: 50%;
    white-space: nowrap;
}

.x-label {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.chart-bars {
    position: absolute;
    left: 60px;
    bottom: 40px;
    height: calc(100% - 60px);
    width: calc(100% - 80px);
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

/* Paper assignment visualization */
.visualization-container {
    padding: 1.5rem;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.paper-node, .evaluator-node {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.paper-node {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.evaluator-node {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--success), var(--success-light));
}

.visualization-link {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--success));
    transform-origin: left center;
    z-index: -1;
}

.visualization-link.animated {
    animation: linkAnimation 1.5s ease-out forwards;
}

@keyframes linkAnimation {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    100% {
        opacity: 0.7;
        transform: scaleX(1);
    }
}

/* Notification styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.notification-close {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
}

/* Tooltip with extended information */
.info-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    width: 16px;
    height: 16px;
    background-color: var(--gray-400);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
}

.info-tooltip::after {
    content: attr(data-info);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background-color: var(--gray-800);
    color: white;
    padding: 10px;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
    box-shadow: var(--shadow);
    text-align: left;
}

.info-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Statistics cards for evaluator info */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--gray-200);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-content {
    flex: 1;
}

.stat-title {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
}

/* Final assignment success animation */
.success-checkmark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 120px;
    height: 120px;
    background-color: white;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    font-size: 3rem;
    z-index: 1001;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-checkmark.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.success-checkmark.hide {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

/* Assignment algorithm animation */
.algorithm-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s;
}

.algorithm-animation.active {
    opacity: 1;
    visibility: visible;
}

.algorithm-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.algorithm-visualization {
    width: 80%;
    max-width: 800px;
    height: 400px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.algorithm-status {
    margin-top: 1.5rem;
    color: white;
    font-size: 1rem;
    text-align: center;
}

.algorithm-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.algorithm-close:hover {
    opacity: 1;
}

/* Animation for algorithm steps */
.algorithm-step {
    position: absolute;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: white;
    font-size: 0.85rem;
    max-width: 250px;
    opacity: 0;
    transition: opacity 0.5s;
}

.algorithm-step.active {
    opacity: 1;
}

/* Progress indicator for algorithm animation */
.algorithm-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
}

.algorithm-progress-value {
    height: 100%;
    background-color: var(--primary);
    width: 0;
    transition: width 0.3s ease-out;
}

/* Estilos adicionales para botones 3D */
.button-3d {
    position: relative;
    overflow: hidden;
    border: none;
    transform-style: preserve-3d;
    perspective: 800px;
    transition: transform 0.3s, box-shadow 0.3s !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1), 0 3px 0 rgba(0, 0, 0, 0.1) !important;
}

.button-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0));
    pointer-events: none;
}

.button-3d:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 6px 0 rgba(0, 0, 0, 0.1) !important;
}

.button-3d:active {
    transform: translateY(2px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(0, 0, 0, 0.1) !important;
}

.button-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.button-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 1px;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Animación para efecto al cargar la página */
@keyframes buttonPulse {
    0% { transform: scale(1); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1), 0 3px 0 rgba(0, 0, 0, 0.1); }
    50% { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 6px 0 rgba(0, 0, 0, 0.1); }
    100% { transform: scale(1); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1), 0 3px 0 rgba(0, 0, 0, 0.1); }
}

/* ======================================================
   ESTILOS PARA ANIMACIÓN DE ASIGNACIÓN (PARTE 1)
   ====================================================== */

/* Contenedor principal de la animación */
.algorithm-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.algorithm-animation.active {
    opacity: 1;
    visibility: visible;
}

.algorithm-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s forwards 0.3s;
}

.algorithm-visualization {
    width: 90%;
    max-width: 800px;
    height: 400px;
    background-color: rgba(30, 30, 30, 0.6);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.8s forwards 0.5s;
}

.algorithm-status {
    margin-top: 2rem;
    color: white;
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    line-height: 1.5;
    opacity: 0;
    animation: fadeIn 0.8s forwards 0.7s;
}

.algorithm-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.8s forwards 1s;
}

.algorithm-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.algorithm-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
}

.algorithm-progress-value {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--success));
    width: 0;
    transition: width 0.5s ease;
}

/* Nodos de evaluadores y papers */
.evaluator-node {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), var(--success-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(55, 182, 152, 0.5);
    z-index: 10;
    opacity: 0;
    transform: scale(0);
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.evaluator-node:nth-child(1) {
    animation-delay: 0.8s;
}

.evaluator-node:nth-child(2) {
    animation-delay: 0.9s;
}

.evaluator-node:nth-child(3) {
    animation-delay: 1s;
}

.paper-node {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(55, 182, 152, 0.5);
    z-index: 5;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Líneas de conexión */
.visualization-link {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--success));
    transform-origin: left center;
    z-index: 1;
    opacity: 0;
    transform: scaleX(0);
}

.visualization-link.animated {
    animation: linkGrow 1s ease-out forwards;
}

/* Puntos que viajan por las líneas */
.connection-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--primary-light);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px rgba(88, 196, 165, 0.8);
    opacity: 0;
}

.connection-dot.animated {
    animation: moveDot 1.5s cubic-bezier(0.42, 0, 0.58, 1) forwards;
}

/* Confetti */
.confetti-piece {
    position: absolute;
    width: 10px;
    height: 25px;
    background: #f3f4f6;
    top: 0;
    opacity: 0;
    transform-origin: center;
}

.confetti-piece.c1 {
    background: var(--primary);
}
.confetti-piece.c2 {
    background: var(--success);
}
.confetti-piece.c3 {
    background: var(--warning);
}
.confetti-piece.c4 {
    background: var(--danger);
}

/* ======================================================
   ESTILOS PARA ANIMACIÓN DE ASIGNACIÓN (PARTE 2)
   ====================================================== */

/* Animaciones para la animación de asignación */
@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

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

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    70% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes linkGrow {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    100% {
        opacity: 0.8;
        transform: scaleX(1);
    }
}

@keyframes moveDot {
    0% {
        opacity: 1;
        transform: translateX(0) scale(0.5);
    }
    90% {
        opacity: 1;
        transform: translateX(calc(100% - 12px)) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(calc(100% - 12px)) scale(1.5);
    }
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        top: -10%;
        transform: translateX(0) rotateZ(0deg);
    }
    100% {
        opacity: 0;
        top: 100%;
        transform: translateX(calc(20vw * (0.5 - var(--random, 0.5)))) rotateZ(calc(360deg * var(--random, 1)));
    }
}

/* Estilos 3D para botones */
.button-3d {
    position: relative;
    overflow: hidden;
    border: none;
    transform-style: preserve-3d;
    perspective: 800px;
    transition: transform 0.3s, box-shadow 0.3s !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1), 0 3px 0 rgba(0, 0, 0, 0.1) !important;
}

.button-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0));
    pointer-events: none;
}

.button-3d:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 6px 0 rgba(0, 0, 0, 0.1) !important;
}

.button-3d:active {
    transform: translateY(2px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(0, 0, 0, 0.1) !important;
}

.button-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.button-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 1px;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Animación para botones al hacer clic */
@keyframes buttonClick {
    0% {
        opacity: 0.7;
        width: 1px;
        height: 1px;
    }
    100% {
        opacity: 0;
        width: 250px;
        height: 250px;
    }
}

/* Loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

/* Pulse animation for evaluator badges */
@keyframes pulseBadge {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(55, 182, 152, 0.4);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(55, 182, 152, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(55, 182, 152, 0);
    }
}

.assign-animation {
    animation: pulseBadge 1s ease-in-out;
}

/* Make sure we only apply on the first badge to prevent cascading effects */
.evaluator-badge:first-child.assign-animation {
    animation-delay: 0ms;
}

.evaluator-badge:nth-child(2).assign-animation {
    animation-delay: 200ms;
}

.evaluator-badge:nth-child(3).assign-animation {
    animation-delay: 400ms;
}

/* Status badge transition animation */
.status-badge {
    transition: background-color 0.5s ease, color 0.5s ease;
}

.status-badge.status-assigned {
    animation: fadeScale 0.5s ease-in-out;
}

@keyframes fadeScale {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Success particles animation */
.particle {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: particleFall 1s ease-out forwards;
    z-index: 9999;
}

@keyframes particleFall {
    0% {
        opacity: 1;
        transform: translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx, 0), var(--ty, 100px));
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .algorithm-visualization {
        height: 350px;
    }
    
    .algorithm-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .algorithm-status {
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }
    
    .evaluator-node {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }
    
    .paper-node {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .workload-chart {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .algorithm-visualization {
        height: 280px;
    }
    
    .algorithm-title {
        font-size: 1.2rem;
    }
    
    .evaluator-node {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .paper-node {
        width: 35px;
        height: 35px;
        font-size: 0.7rem;
    }
    
    .workload-chart {
        height: 180px;
    }
    
    .notification {
        max-width: 90%;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(100px);
    }
    
    .notification.show {
        transform: translateX(-50%) translateY(0);
    }
}


/* Estilos para la nueva animación de asignación */
.assignment-animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
    backdrop-filter: blur(5px);
}

.assignment-animation-overlay.active {
    opacity: 1;
    visibility: visible;
}

.animation-content {
    width: 90%;
    max-width: 900px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 30px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    border: 1px solid rgba(55, 182, 152, 0.1);
}

.assignment-animation-overlay.active .animation-content {
    transform: translateY(0);
}

.animation-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 25px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(55, 182, 152, 0.1);
}

.animation-canvas {
    position: relative;
    height: 300px;
    background: linear-gradient(to bottom, #f8f9ff 0%, #ffffff 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(55, 182, 152, 0.1);
    box-shadow: inset 0 0 30px rgba(55, 182, 152, 0.05);
}

.evaluators-container {
    position: absolute;
    right: 50px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    z-index: 10;
}

.evaluator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.evaluator.receiving {
    transform: scale(1.1);
}

.evaluator-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(55, 182, 152, 0.3);
    margin-bottom: 10px;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.evaluator.receiving .evaluator-icon {
    box-shadow: 0 0 0 8px rgba(55, 182, 152, 0.2);
}

.evaluator-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.evaluator-counter {
    position: absolute;
    top: 0;
    right: -5px;
    background: var(--success);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(55, 182, 152, 0.3);
    opacity: 0;
    transform: scale(0);
    animation: counterAppear 0.3s forwards;
}

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

.papers-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.paper {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffffff, #f0f0ff);
    border: 2px solid var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    box-shadow: 0 5px 15px rgba(55, 182, 152, 0.2);
    z-index: 5;
}

.paper span {
    opacity: 0.8;
}

.animation-progress {
    margin-top: 20px;
}

.progress-bar {
    height: 10px;
    background: rgba(55, 182, 152, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-value {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    width: 0;
    transition: width 0.3s ease-out;
    border-radius: 5px;
}

.progress-label {
    font-size: 0.95rem;
    color: var(--gray-600);
}

/* Confetti animation */
.confetti-piece {
    position: absolute;
    width: 10px;
    height: 30px;
    background: var(--primary);
    top: -100px;
    opacity: 0;
    z-index: 20;
    animation: confettiFall 3s ease-in-out forwards;
    transform-origin: center;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        top: -100px;
        transform: translateX(0) rotateZ(0deg);
    }
    100% {
        opacity: 0;
        top: 1000px;
        transform: translateX(100px) rotateZ(360deg);
    }
}

/* Notification styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    max-width: 350px;
    border-left: 5px solid var(--primary);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
    font-size: 1rem;
}

.notification-message {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.notification-close {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 5px;
    margin: -5px;
    transition: color 0.2s;
}

.notification-close:hover {
    color: var(--gray-700);
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .animation-canvas {
        height: 400px;
    }
    
    .evaluators-container {
        right: 20px;
    }
    
    .evaluator-icon {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .animation-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .evaluator-icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .evaluator-label {
        font-size: 0.75rem;
    }
    
    .evaluator-counter {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .paper {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .animation-title {
        font-size: 1.3rem;
    }
    
    .notification {
        max-width: 90%;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(100px);
    }
    
    .notification.show {
        transform: translateX(-50%) translateY(0);
    }
}

/* Efecto para las líneas de conexión */
svg line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 0.5s ease-out;
}

svg line.animated {
    stroke-dashoffset: 0;
}
/* Estilos para las transiciones suaves en los evaluadores */
.evaluator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.evaluator.receiving::after {
    opacity: 1;
    animation: receivingPulse 1s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes receivingPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(55, 182, 152, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(55, 182, 152, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(55, 182, 152, 0);
    }
}

/* Efecto de brillo para los papers al ser asignados */
.paper.assigned {
    animation: paperAssigned 0.8s forwards;
}

@keyframes paperAssigned {
    0% {
        box-shadow: 0 5px 15px rgba(55, 182, 152, 0.2);
    }
    
    50% {
        box-shadow: 0 0 30px rgba(55, 182, 152, 0.8);
    }
    
    100% {
        box-shadow: 0 5px 15px rgba(55, 182, 152, 0.3);
    }
}

/* Estilos mejorados para el contenedor de animación */
.animation-content {
    position: relative;
    overflow: hidden;
}

.animation-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(55, 182, 152, 0.03) 0%,
        rgba(55, 182, 152, 0) 40%,
        rgba(55, 182, 152, 0) 60%,
        rgba(55, 182, 152, 0.03) 100%
    );
    transform: rotate(30deg);
    z-index: -1;
}

/* Mejoras para la barra de progreso */
.progress-bar {
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-value {
    position: relative;
    overflow: hidden;
}

.progress-value::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    animation: progressShine 2s infinite;
}

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

/* Estilos para partículas adicionales */
.particle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(55, 182, 152, 0.7);
    opacity: 0;
    z-index: 15;
}

.particle.visible {
    animation: particleFade 1s ease-out forwards;
}

@keyframes particleFade {
    0% {
        opacity: 0.8;
        transform: scale(0);
    }
    
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Mejoras para los botones 3D */
.button-3d {
    position: relative;
    border: none;
    transform-style: preserve-3d;
    perspective: 800px;
    transition: transform 0.3s, box-shadow 0.3s !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1), 0 3px 0 rgba(0, 0, 0, 0.1) !important;
}

.button-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0));
    pointer-events: none;
    border-radius: inherit;
}

.button-3d:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 6px 0 rgba(0, 0, 0, 0.1) !important;
}

.button-3d:active {
    transform: translateY(2px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(0, 0, 0, 0.1) !important;
}

.button-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.button-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 1px;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    border: none;
}

/* Estilos para mejorar la visibilidad de la animación */
.assignment-animation-overlay {
    background: rgba(255, 255, 255, 0.95);
}

.animation-canvas {
    background: linear-gradient(to right, #f8f9ff, #fafaff);
}

/* Añadir pequeño indicador de conexión en los evaluadores */
.connection-indicator {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translate(-50%, -4px);
    opacity: 0;
    transition: opacity 0.3s;
}

.evaluator.receiving .connection-indicator {
    opacity: 1;
    animation: indicatorPulse 0.6s ease-out;
}

@keyframes indicatorPulse {
    0% {
        transform: translate(-50%, -4px) scale(0);
    }
    
    70% {
        transform: translate(-50%, -4px) scale(1.5);
    }
    
    100% {
        transform: translate(-50%, -4px) scale(1);
    }
}

/* Mejoras para texto en general dentro de la animación */
.animation-content {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

.animation-title {
    letter-spacing: -0.5px;
}

.progress-label {
    font-weight: 500;
}

/* Conexiones entre papers y evaluadores */
.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--success));
    transform-origin: left center;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
}

.connection-line.animated {
    animation: drawLine 0.8s ease-out forwards;
}

@keyframes drawLine {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    100% {
        opacity: 0.6;
        transform: scaleX(1);
    }
}

/* Efectos de partículas que se mueven a lo largo de la línea */
.moving-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(55, 182, 152, 0.6);
    z-index: 6;
    pointer-events: none;
    opacity: 0;
}

.moving-particle.animated {
    animation: moveParticle 1s cubic-bezier(0.42, 0, 0.58, 1) forwards;
}

/* Continuación de los estilos adaptados con la paleta de colores del primer archivo */

@keyframes moveParticle {
    0% {
        opacity: 0.8;
        transform: scale(0.7) translateX(0);
    }
    90% {
        opacity: 0.8;
        transform: scale(1) translateX(calc(100% - 10px));
    }
    100% {
        opacity: 0;
        transform: scale(1.5) translateX(calc(100% - 10px));
    }
}

/* Efecto de recepción cuando un evaluador recibe un paper */
.reception-effect {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55, 182, 152, 0.5) 0%, rgba(55, 182, 152, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: 4;
    pointer-events: none;
    opacity: 0;
}

.reception-effect.animated {
    animation: expandEffect 0.8s ease-out forwards;
}

@keyframes expandEffect {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(0.3);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* Mejoras para el canvas de animación */
.animation-canvas {
    position: relative;
}

.animation-canvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(55, 182, 152, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(55, 182, 152, 0.03) 0%, transparent 50%);
    z-index: 1;
}

/* Mejoras para los evaluadores */
.evaluator-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    z-index: -1;
    opacity: 0.3;
    filter: blur(4px);
    transition: opacity 0.3s;
}

.evaluator.receiving .evaluator-icon::before {
    opacity: 0.6;
}

/* Contador flotante de asignaciones totales */
.assignment-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    z-index: 20;
    font-weight: 600;
    color: var(--primary-dark);
}

.counter-icon {
    margin-right: 8px;
    color: var(--primary);
}

.counter-number {
    margin-left: 5px;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Efecto de brillo en la barra de progreso */
.progress-value::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%
    );
    transform: translateX(-100%);
    animation: progressGlow 2s infinite linear;
}

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

/* Efectos para el final de la animación */
.animation-complete {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    opacity: 0;
    box-shadow: 0 10px 30px rgba(55, 182, 152, 0.3);
}

.animation-complete.visible {
    animation: completeAppear 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animation-complete i {
    font-size: 3rem;
    color: var(--success);
}

@keyframes completeAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Estilos para el efecto de desvanecimiento de la animación */
.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Fondo de confeti mejorado */
.confetti-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Variaciones en el confeti para mayor realismo */
.confetti-piece.c1 {
    background: var(--primary);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.confetti-piece.c2 {
    background: var(--success);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.confetti-piece.c3 {
    background: var(--warning);
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.confetti-piece.c4 {
    background: var(--info);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* Mejoras en el spinner de carga */
.spinner {
    border-width: 3px;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Mensajes de estadísticas finales */
.final-stats {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.1rem;
    color: var(--primary-dark);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.final-stats.visible {
    opacity: 1;
    transform: translateY(0);
}

.final-stats strong {
    color: var(--primary);
    font-weight: 700;
}

/* Elementos decorativos adicionales para el canvas */
.canvas-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(55, 182, 152, 0.03), rgba(55, 182, 152, 0));
    z-index: 0;
    opacity: 0.5;
}

.decoration-1 {
    top: -100px;
    left: -100px;
}

.decoration-2 {
    bottom: -100px;
    right: -100px;
    background: linear-gradient(135deg, rgba(55, 182, 152, 0.03), rgba(55, 182, 152, 0));
}