/* 
 * Bot Evaluation System - Szain's Basement Contest
 * Main Stylesheet
 */

/* Color Variables */
:root {
    --primary: #7e22ce;
    --primary-dark: #6b21a8;
    --secondary: #5b21b6;
    --accent: #a855f7;
    --accent-light: #c4b5fd;
    --dark: #1e1b4b;
    --light: #f5f3ff;
    --gray: #6b7280;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gold: #fbbf24;
    --silver: #94a3b8;
    --bronze: #d97706;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #0f0c29;
    background: linear-gradient(135deg, #24243e, #302b63, #0f0c29);
    color: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

/* Header */
header {
    text-align: center;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(139, 92, 246, 0.1));
    z-index: -1;
    transform: skewY(-2deg);
    transform-origin: top left;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: white;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.7),
                 0 0 20px rgba(139, 92, 246, 0.5);
}

h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--accent-light);
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: rgba(30, 27, 75, 0.8);
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    margin: 0 10px;
}

/* Login Form */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 12, 41, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background: rgba(30, 27, 75, 0.9);
    border: 2px solid var(--accent);
    border-radius: 15px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.2), transparent);
    z-index: -1;
}

.login-container h2 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 30px;
    color: white;
    text-align: center;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.login-container p {
    margin-bottom: 25px;
    text-align: center;
    color: var(--accent-light);
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-light);
    font-weight: 500;
}

.login-field input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--accent-light);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.login-btn {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(110, 34, 206, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
}

.error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--danger);
    color: #fca5a5;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

/* User Info */
.user-info {
    background: rgba(30, 27, 75, 0.8);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.user-info-content {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-right: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.admin-avatar {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.user-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.user-details p {
    font-size: 0.9rem;
    color: var(--accent-light);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

/* Contest Info */
.contest-info {
    background: rgba(30, 27, 75, 0.8);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.contest-info-item {
    padding: 10px;
    text-align: center;
}

.contest-info-item h3 {
    font-size: 0.9rem;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.contest-info-item p {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
}

.contest-info-item p.countdown {
    color: var(--accent);
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 25px;
    background: rgba(91, 33, 182, 0.3);
    border: 1px solid var(--accent);
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

.tab.active {
    background: var(--primary);
    color: white;
}

.tab:not(.active):hover {
    background: rgba(91, 33, 182, 0.5);
}

.tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.tab:hover::before, .tab.active::before {
    transform: translateX(0);
}

/* Content Area */
.content {
    background: rgba(30, 27, 75, 0.8);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.content h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: white;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    padding-bottom: 10px;
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 34, 206, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: all 0.5s ease;
}

.btn-primary:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-secondary:hover {
    background: rgba(168, 85, 247, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(168, 85, 247, 0.2);
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.2);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Cards */
.card {
    background: rgba(91, 33, 182, 0.2);
    border: 1px solid var(--accent-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(91, 33, 182, 0.3);
}

.card-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.card-body {
    margin-bottom: 15px;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
}

/* Grids */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 350px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background: linear-gradient(135deg, #059669, #10b981);
}

.toast-error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.toast-info {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.toast-content {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.toast-close:hover {
    opacity: 1;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-light);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--accent-light);
    background: rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 40px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-group .hint {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 5px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
}

th {
    background: rgba(91, 33, 182, 0.4);
    color: var(--accent-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

tr {
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

tr:hover {
    background: rgba(91, 33, 182, 0.2);
}

.table-actions {
    display: flex;
    gap: 10px;
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-pending {
    background: var(--warning);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.status-complete {
    background: var(--success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-in-progress {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.status-locked {
    background: var(--gray);
    box-shadow: 0 0 10px rgba(107, 114, 128, 0.5);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

/* Contestant Cards */
.contestant-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.contestant-card {
    background: rgba(91, 33, 182, 0.2);
    border: 1px solid var(--accent-light);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contestant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(91, 33, 182, 0.3);
}

.contestant-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.contestant-card p {
    margin-bottom: 15px;
    flex-grow: 1;
}

.contestant-card .btn {
    margin-top: auto;
}

/* Evaluation Form */
.evaluation-form {
    background: rgba(30, 27, 75, 0.8);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.evaluation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
}

.evaluation-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.back-btn {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--accent-light);
}

.back-btn:hover {
    color: var(--accent);
}

.score-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.score-category h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--accent-light);
    display: flex;
    align-items: center;
}

.score-category h4 .max-score {
    font-size: 0.8rem;
    color: var(--gray);
    margin-left: 5px;
}

.score-input {
    position: relative;
}

.score-input input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--accent-light);
    background: rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    -moz-appearance: textfield;
}

.score-input input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.score-input input::-webkit-outer-spin-button,
.score-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.notes-section {
    margin-top: 30px;
}

.notes-section h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--accent-light);
}

.notes-section textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--accent-light);
    background: rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s ease;
}

.notes-section textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.total-score-display {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    background: rgba(91, 33, 182, 0.4);
    padding: 15px;
    border-radius: 8px;
    align-items: center;
}

.total-score-display h3 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.total-score {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-flex;
    margin-left: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background: var(--dark);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 12, 41, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: rgba(30, 27, 75, 0.9);
    border: 2px solid var(--accent);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--accent);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

/* Dashboard Stats */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(91, 33, 182, 0.2);
    border: 1px solid var(--accent-light);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(91, 33, 182, 0.3);
}

.stat-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--accent-light);
    border-bottom: none;
    padding-bottom: 0;
}

.stat-card p {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0;
}

/* Loading Indicator */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(168, 85, 247, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--accent);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1rem;
    }
    
    .contest-info {
        flex-direction: column;
    }
    
    .score-categories {
        grid-template-columns: 1fr;
    }
    
    .contestant-list {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        width: 100%;
        margin-right: 0;
        border-radius: 6px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stat-cards {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        width: 95%;
        padding: 20px;
    }
}