/* ================================================
   V.I.D. Music Competition - CSS Stylesheet
   ================================================ */

/* Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --dark-light: #334155;
    --light: #f8fafc;
    --gray: #94a3b8;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --gradient: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary[disabled] {
    background: var(--gray-light);
    color: var(--gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary.active {
    background: var(--gradient);
}

.btn-secondary {
    background: var(--dark);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--dark-light);
}

.btn-success {
    background: var(--secondary);
    color: var(--white);
}

.btn-success:hover {
    background: var(--secondary-dark);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

/* ================================================
   HOME PAGE
   ================================================ */

.hero-section {
    background: var(--gradient);
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 200px;
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.logo-badge {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
}

.logo-badge i {
    font-size: 36px;
    color: var(--white);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Rules Section */
.rules-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 40px;
    margin: -60px auto 40px;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--primary);
}

.rules-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.rule-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.rule-card.full-width {
    grid-column: 1 / -1;
}

.rule-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.rule-icon i {
    font-size: 22px;
    color: var(--white);
}

.rule-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.rule-card ul {
    list-style: none;
    padding: 0;
}

.rule-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--dark-light);
    font-size: 14px;
}

.rule-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Agreement Checkbox */
.agreement-section {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.checkbox-container {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    margin-right: 12px;
    position: relative;
    transition: var(--transition);
}

.checkbox-container input:checked + .checkmark {
    background: var(--primary);
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 14px;
}

.checkbox-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
}

.action-section {
    text-align: center;
}

.continue-btn {
    min-width: 280px;
}

/* ================================================
   REGISTRATION PAGE
   ================================================ */

.navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    color: var(--primary);
}

.round-badge {
    background: var(--gradient);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.register-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 40px;
    margin: 30px auto;
}

/* Form Styles */
.registration-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 5px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--primary);
    margin-right: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
    color: var(--gray);
}

.error-message {
    display: block;
    font-size: 12px;
    color: var(--danger);
    margin-top: 5px;
    min-height: 18px;
}

/* File Upload */
.file-upload-group {
    margin-top: 10px;
}

.file-upload-area {
    position: relative;
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    transition: var(--transition);
    background: var(--light);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.file-upload-content p {
    margin-bottom: 10px;
    color: var(--dark-light);
}

.file-upload-content span {
    color: var(--primary);
    font-weight: 600;
}

.file-info {
    font-size: 12px;
    color: var(--gray);
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius);
}

.file-preview i {
    font-size: 32px;
    color: var(--primary);
}

#fileName {
    font-weight: 600;
    color: var(--dark);
    flex: 1;
}

#fileSize {
    font-size: 12px;
    color: var(--gray);
}

.btn-remove {
    background: var(--danger);
    color: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Upload Progress */
.upload-progress {
    margin: 20px 0;
    padding: 20px;
    background: var(--light);
    border-radius: var(--radius);
}

.progress-bar {
    height: 10px;
    background: var(--gray-light);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: var(--dark-light);
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

/* ================================================
   SUCCESS PAGE
   ================================================ */

.success-page {
    background: var(--gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.success-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.success-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 50px;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.success-icon i {
    font-size: 50px;
    color: var(--white);
}

.success-card h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.success-message {
    color: var(--dark-light);
    margin-bottom: 25px;
}

.success-details {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item i {
    color: var(--primary);
    font-size: 18px;
}

.detail-item span {
    font-size: 14px;
    color: var(--dark-light);
}

/* ================================================
   ERROR PAGE
   ================================================ */

.error-page {
    background: var(--light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-container {
    padding: 20px;
}

.error-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 50px;
    text-align: center;
    max-width: 400px;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.error-icon i {
    font-size: 40px;
    color: var(--white);
}

.error-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.error-message {
    color: var(--dark-light);
    margin-bottom: 25px;
}

/* ================================================
   AUTH PAGES (Admin & Judge Login)
   ================================================ */

.auth-page {
    background: var(--gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.auth-logo i {
    font-size: 30px;
    color: var(--white);
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.auth-header p {
    color: var(--gray);
    font-size: 14px;
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    padding: 12px;
    border-radius: var(--radius);
    font-size: 14px;
    text-align: center;
    margin-top: 15px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ================================================
   ADMIN & JUDGE PANELS
   ================================================ */

.admin-page,
.judge-page {
    background: var(--light);
    min-height: 100vh;
}

.admin-navbar {
    background: var(--dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-navbar .navbar-brand {
    color: var(--white);
}

.admin-navbar .navbar-brand i {
    color: var(--primary-light);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.logout {
    color: var(--danger);
}

.nav-link.logout:hover {
    background: rgba(239, 68, 68, 0.2);
}

.judge-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-content {
    padding: 30px 0;
    min-height: calc(100vh - 130px);
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i {
    color: var(--primary);
}

.page-header p {
    color: var(--gray);
    margin-top: 5px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 24px;
    color: var(--white);
}

.bg-primary {
    background: var(--gradient);
}

.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-details h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-details p {
    color: var(--gray);
    font-size: 14px;
}

/* Section Card */
.section-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 25px;
}

.section-header {
    margin-bottom: 20px;
    text-align: left;
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}

.section-header h2 i {
    color: var(--primary);
}

/* Round Stats */
.round-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.round-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--light);
    border-radius: var(--radius);
    flex: 1;
    min-width: 150px;
}

.round-name {
    font-weight: 500;
    color: var(--dark);
}

.round-count {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

/* Quick Actions */
.quick-actions {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
}

.quick-actions h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-actions h3 i {
    color: var(--warning);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.data-table th {
    background: var(--light);
    font-weight: 600;
    color: var(--dark);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr:hover {
    background: rgba(99, 102, 241, 0.02);
}

.text-center {
    text-align: center;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Audio Player */
.audio-player-mini {
    height: 35px;
    max-width: 200px;
}

/* Form Messages */
.form-message {
    padding: 15px;
    border-radius: var(--radius);
    margin-top: 15px;
    font-size: 14px;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-dark);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Add Form */
.add-form .form-row {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.add-form .form-group {
    flex: 1;
    min-width: 180px;
}

/* Filter Section */
.filter-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 25px;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-form .form-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.filter-info {
    margin-left: auto;
}

.total-count {
    font-size: 14px;
    color: var(--dark-light);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
}

.page-info {
    font-size: 14px;
    color: var(--gray);
}

/* Generate Form */
.generate-form .form-row {
    align-items: flex-end;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
}

.modal-content.modal-lg {
    max-width: 900px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-light);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-header h3 i {
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    background: var(--white);
    padding: 5px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--dark);
    background: var(--light);
}

.tab-btn.active {
    background: var(--gradient);
    color: var(--white);
}

/* Score Input */
.score-input {
    width: 100px;
    padding: 10px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    text-align: center;
}

.score-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Rounds Grid (Judge) */
.rounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.round-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    transition: var(--transition);
}

.round-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.round-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.round-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.round-total {
    font-size: 14px;
    color: var(--gray);
}

.round-progress {
    margin-bottom: 20px;
}

.progress-bar-container {
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.round-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.stat.pending {
    color: var(--warning);
}

.stat.completed {
    color: var(--secondary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty-state i {
    font-size: 60px;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--gray);
}

/* Footer */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

.admin-footer {
    background: var(--white);
    color: var(--gray);
    padding: 20px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid var(--gray-light);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .rules-section {
        padding: 25px;
        margin: -40px 15px 30px;
    }
    
    .register-section {
        padding: 25px;
        margin: 20px 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .navbar-menu {
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .add-form .form-row {
        flex-direction: column;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-info {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .tabs {
        flex-direction: column;
    }
}
