
.competition-container,
.results-container,
.voting-container,
.registration-container,
.competition-detail-container {
    max-width: 1200px; /* Adjusted for better readability */
    margin: 0 auto;
    padding: 30px 20px;
}

.competition-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
}

.competition-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.competition-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.competition-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-text 3s linear infinite;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-text 3s linear infinite;
}

.featured-competitions {
    margin-bottom: 60px;
}

.featured-competitions h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.competition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.competition-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.competition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.competition-card-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.competition-card-header h3 {
    font-size: 1.3rem;
    margin: 0;
    color: #2c3e50;
    flex: 1;
}

.competition-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-upcoming {
    background: #fff3cd;
    color: #856404;
}

.status-ended {
    background: #f8d7da;
    color: #721c24;
}

.competition-card-body {
    padding: 20px;
}

.competition-card-body p {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.competition-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    font-size: 0.9rem;
}

.detail-item i {
    color: #6c757d;
}

.competition-card-footer {
    padding: 0 20px 20px;
}

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

.section-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0;
}

.filter-controls {
    display: flex;
    gap: 15px;
}

.filter-select {
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
}

.competition-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.competition-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.competition-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.competition-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
}

.competition-info {
    flex: 1;
}

.competition-info h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.competition-info p {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.6;
}

.competition-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #495057;
    font-size: 0.9rem;
}

.meta-item i {
    color: #6c757d;
}

.competition-actions {
    margin-left: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #495057;
}

@media (max-width: 768px) {
    .competition-hero {
        padding: 40px 20px;
    }
    
    .competition-hero h1 {
        font-size: 2rem;
    }
    
    .competition-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .competition-grid {
        grid-template-columns: 1fr;
    }
    
    .competition-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .competition-actions {
        margin-left: 0;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- ENHANCED RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
    .competition-container {
        padding: 15px;
    }
    
    .competition-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .competition-container {
        padding: 10px;
    }
    
    .competition-header {
        padding: 30px 20px;
    }
    
    .competition-header h1 {
        font-size: 2rem;
    }
    
    .competition-header p {
        font-size: 1rem;
    }
    
    .competition-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .competition-card {
        padding: 20px;
    }
    
    .competition-card h3 {
        font-size: 1.2rem;
    }
    
    .competition-card p {
        font-size: 0.9rem;
    }
    
    .competition-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .competition-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
    
    .status-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .empty-content {
        padding: 40px 20px;
    }
    
    .empty-content i {
        font-size: 3rem;
    }
    
    .empty-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .competition-header {
        padding: 20px 15px;
    }
    
    .competition-header h1 {
        font-size: 1.8rem;
    }
    
    .competition-header p {
        font-size: 0.9rem;
    }
    
    .competition-card {
        padding: 15px;
    }
    
    .competition-card h3 {
        font-size: 1.1rem;
    }
    
    .competition-card p {
        font-size: 0.8rem;
    }
    
    .competition-meta {
        gap: 8px;
    }
    
    .meta-item {
        font-size: 0.8rem;
    }
    
    .meta-item i {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    .status-badge {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .empty-content {
        padding: 30px 15px;
    }
    
    .empty-content i {
        font-size: 2.5rem;
    }
    
    .empty-content h3 {
        font-size: 1.1rem;
    }
    
    .empty-content p {
        font-size: 0.9rem;
    }
}

.registration-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
}

.registration-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.registration-header h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.registration-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.competition-info {
    margin-bottom: 40px;
}

.info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.info-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.info-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.competition-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    font-size: 0.9rem;
}

.meta-item i {
    color: #6c757d;
}

.artwork-selection h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

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

.artwork-option {
    position: relative;
}

.artwork-radio {
    display: none;
}

.artwork-label {
    display: block;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.artwork-label:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.artwork-radio:checked + .artwork-label {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.artwork-preview-register {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.artwork-preview-register img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artwork-info h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.artwork-category {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.artwork-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.artwork-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.selection-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.artwork-radio:checked + .artwork-label .selection-indicator {
    opacity: 1;
}

.registration-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.no-artworks {
    text-align: center;
    padding: 60px 20px;
}

.no-artworks-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-artworks-content i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.no-artworks-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.no-artworks-content p {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.registration-terms {
    margin-top: 40px;
}

.terms-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #667eea;
}

.terms-card h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.terms-content ul {
    margin: 0;
    padding-left: 20px;
}

.terms-content li {
    color: #495057;
    margin-bottom: 8px;
    line-height: 1.5;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

@media (max-width: 768px) {
    .registration-header h1 {
        font-size: 2rem;
    }
    
    .artwork-grid {
        grid-template-columns: 1fr;
    }
    
    .registration-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .competition-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- ENHANCED RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
    .registration-container {
        padding: 15px;
    }
    
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .registration-container {
        padding: 10px;
    }
    
    .registration-header {
        padding: 30px 20px;
    }
    
    .registration-header h1 {
        font-size: 2rem;
    }
    
    .registration-header p {
        font-size: 1rem;
    }
    
    .registration-form {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .form-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .form-input, .form-textarea {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .registration-header {
        padding: 20px 15px;
    }
    
    .registration-header h1 {
        font-size: 1.8rem;
    }
    
    .registration-header p {
        font-size: 0.9rem;
    }
    
    .registration-form {
        padding: 15px;
    }
    
    .form-section {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .form-section h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .form-input, .form-textarea {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .form-label {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .form-help {
        font-size: 0.7rem;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

#results.php
.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.results-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
}

.results-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.results-header h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.results-header p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.results-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-text 3s linear infinite;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-text 3s linear infinite;
}

.winners-section {
    margin-bottom: 50px;
}

.winners-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.podium-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    min-width: 250px;
}

.podium-item:hover {
    transform: translateY(-10px);
}

.podium-item.position-1 {
    order: 2;
    border: 3px solid #ffd700;
}

.podium-item.position-2 {
    order: 1;
    border: 3px solid #c0c0c0;
}

.podium-item.position-3 {
    order: 3;
    border: 3px solid #cd7f32;
}

.podium-rank {
    margin-bottom: 20px;
}

.podium-rank i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.podium-rank i.gold {
    color: #ffd700;
}

.podium-rank i.silver {
    color: #c0c0c0;
}

.podium-rank i.bronze {
    color: #cd7f32;
}

.rank-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.winner-artwork {
    margin-bottom: 20px;
}

.winner-artwork img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.winner-info h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.artist-name {
    color: #6c757d;
    margin-bottom: 15px;
}

.score-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.average-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.vote-count {
    color: #6c757d;
    font-size: 0.9rem;
}

.rankings-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
}

.ranking-controls {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.rankings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.rank-position {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 80px;
}

.rank-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.medal i {
    font-size: 1.5rem;
}

.artwork-preview {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.artwork-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artwork-details {
    flex: 1;
}

.artwork-details h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.artwork-details .artist-name {
    color: #6c757d;
    margin: 0;
}

.score-details {
    min-width: 200px;
}

.score-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.score-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.score-value {
    font-weight: 700;
    color: #2c3e50;
}

.ranking-actions {
    min-width: 120px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.competition-summary {
    margin-top: 50px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.summary-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.summary-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.summary-value {
    color: #6c757d;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .results-header h1 {
        font-size: 2rem;
    }
    
    .results-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .podium {
        flex-direction: column;
        align-items: center;
    }
    
    .podium-item {
        order: unset !important;
        width: 100%;
        max-width: 300px;
    }
    
    .ranking-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .rank-position {
        justify-content: center;
    }
    
    .score-breakdown {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .ranking-actions {
        width: 100%;
    }
    
    .btn-sm {
        width: 100%;
    }
}

/* --- ENHANCED RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
    .results-container {
        padding: 15px;
    }
    
    .leaderboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .results-container {
        padding: 10px;
    }
    
    .results-header {
        padding: 30px 20px;
    }
    
    .results-header h1 {
        font-size: 2rem;
    }
    
    .results-header h2 {
        font-size: 1.5rem;
    }
    
    .results-header p {
        font-size: 1rem;
    }
    
    .results-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
        background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
        background-size: 200% 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: rainbow-text 3s linear infinite;
    }
    
    .stat-label {
        font-size: 0.9rem;
        background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
        background-size: 200% 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: rainbow-text 3s linear infinite;
    }
    
    .leaderboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .leaderboard-card {
        padding: 20px;
    }
    
    .leaderboard-card h3 {
        font-size: 1.2rem;
    }
    
    .leaderboard-card p {
        font-size: 0.9rem;
    }
    
    .leaderboard-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .meta-item {
        font-size: 0.9rem;
    }
    
    .results-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
    
    .empty-content {
        padding: 40px 20px;
    }
    
    .empty-content i {
        font-size: 3rem;
    }
    
    .empty-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .results-header {
        padding: 20px 15px;
    }
    
    .results-header h1 {
        font-size: 1.8rem;
    }
    
    .results-header h2 {
        font-size: 1.3rem;
    }
    
    .results-header p {
        font-size: 0.9rem;
    }
    
    .results-stats {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
        background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
        background-size: 200% 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: rainbow-text 3s linear infinite;
    }
    
    .stat-label {
        font-size: 0.8rem;
        background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
        background-size: 200% 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: rainbow-text 3s linear infinite;
    }
    
    .leaderboard-card {
        padding: 15px;
    }
    
    .leaderboard-card h3 {
        font-size: 1.1rem;
    }
    
    .leaderboard-card p {
        font-size: 0.8rem;
    }
    
    .leaderboard-meta {
        gap: 8px;
    }
    
    .meta-item {
        font-size: 0.8rem;
    }
    
    .meta-item i {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    .empty-content {
        padding: 30px 15px;
    }
    
    .empty-content i {
        font-size: 2.5rem;
    }
    
    .empty-content h3 {
        font-size: 1.1rem;
    }
    
    .empty-content p {
        font-size: 0.9rem;
    }
}


.voting-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
}

.voting-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.voting-header p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.blind-voting-notice {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.voting-instructions {
    margin-bottom: 40px;
}

.instruction-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.instruction-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.instruction-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.step-content p {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.voting-gallery {
    margin-bottom: 40px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
}

.voting-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-text {
    font-weight: 600;
    color: #495057;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.artwork-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artwork-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.artwork-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.artwork-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artwork-info {
    padding: 20px 20px 0;
}

.artwork-info h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.artist-name {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.voting-controls {
    padding: 20px;
}

.rating-section {
    margin-bottom: 20px;
}

.rating-section label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 15px;
}

.score-slider {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.score-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
}

.score-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 60px;
}

.score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.score-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.vote-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vote-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.vote-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vote-status {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.vote-status.success {
    color: #28a745;
}

.vote-status.error {
    color: #dc3545;
}

.vote-status.own-artwork {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vote-status.already-voted {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.voting-summary {
    margin-top: 40px;
}

.summary-card {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
}

.summary-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.summary-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.summary-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: #28a745;
}

@media (max-width: 768px) {
    .voting-header h1 {
        font-size: 2rem;
    }
    
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .artwork-grid {
        grid-template-columns: 1fr;
    }
    
    .rating-input {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .score-slider {
        width: 100%;
    }
    
    .summary-actions {
        flex-direction: column;
    }
    
    .btn-outline, .btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* --- ENHANCED RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
    .voting-container {
        padding: 15px;
    }
    
    .artwork-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .voting-container {
        padding: 10px;
    }
    
    .voting-header {
        padding: 30px 20px;
    }
    
    .voting-header h1 {
        font-size: 2rem;
    }
    
    .voting-header p {
        font-size: 1rem;
    }
    
    .artwork-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .artwork-card {
        padding: 20px;
    }
    
    .artwork-card h3 {
        font-size: 1.2rem;
    }
    
    .artwork-card p {
        font-size: 0.9rem;
    }
    
    .artwork-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .meta-item {
        font-size: 0.9rem;
    }
    
    .voting-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
    
    .vote-form {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-input, .form-textarea {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .voting-header {
        padding: 20px 15px;
    }
    
    .voting-header h1 {
        font-size: 1.8rem;
    }
    
    .voting-header p {
        font-size: 0.9rem;
    }
    
    .artwork-card {
        padding: 15px;
    }
    
    .artwork-card h3 {
        font-size: 1.1rem;
    }
    
    .artwork-card p {
        font-size: 0.8rem;
    }
    
    .artwork-meta {
        gap: 8px;
    }
    
    .meta-item {
        font-size: 0.8rem;
    }
    
    .meta-item i {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    .vote-form {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-label {
        font-size: 0.8rem;
    }
    
    .form-input, .form-textarea {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}



.competition-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.competition-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.competition-title-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.competition-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.blind-voting {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.public-voting {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.competition-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
}

.btn-success {
    background: #28a745;
    color: white;
    border: none;
    cursor: default;
}

.competition-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.info-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.info-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.rules-section, .criteria-section {
    margin-top: 25px;
}

.rules-section h4, .criteria-section h4 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.rules-content, .criteria-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    color: #495057;
    line-height: 1.6;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 25px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #e9ecef;
}

.timeline-marker.start {
    background: #28a745;
}

.timeline-marker.deadline {
    background: #ffc107;
}

.timeline-marker.end {
    background: #dc3545;
}

.timeline-content h4 {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 5px;
}

.timeline-content p {
    color: #6c757d;
    margin: 0;
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-text 3s linear infinite;
}

.stat-label {
    font-size: 0.9rem;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-text 3s linear infinite;
}

.prize-content {
    color: #495057;
    line-height: 1.6;
}

.participants-section {
    margin-top: 40px;
}

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

.section-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
}

.view-controls {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.participant-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.participant-card:hover {
    transform: translateY(-5px);
}

.participant-artwork {
    aspect-ratio: 1;
    overflow: hidden;
}

.participant-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.participant-info {
    padding: 20px;
}

.participant-info h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.participant-name {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.registration-date {
    color: #adb5bd;
    font-size: 0.8rem;
    margin: 0;
}

@media (max-width: 768px) {
    .competition-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .competition-title-section h1 {
        font-size: 2rem;
    }
    
    .competition-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .competition-actions {
        width: 100%;
    }
    
    .btn-large {
        flex: 1;
        text-align: center;
    }
    
    .participants-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

/* --- ENHANCED RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
    .competition-container {
        padding: 15px;
    }
    
    .competition-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .competition-container {
        padding: 10px;
    }
    
    .competition-header {
        padding: 30px 20px;
    }
    
    .competition-header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .competition-title-section h1 {
        font-size: 2rem;
    }
    
    .competition-info {
        padding: 20px;
    }
    
    .competition-info h3 {
        font-size: 1.2rem;
    }
    
    .competition-info p {
        font-size: 0.9rem;
    }
    
    .competition-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .meta-item {
        font-size: 0.9rem;
    }
    
    .competition-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
    
    .status-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .participants-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .competition-header {
        padding: 20px 15px;
    }
    
    .competition-title-section h1 {
        font-size: 1.8rem;
    }
    
    .competition-info {
        padding: 15px;
    }
    
    .competition-info h3 {
        font-size: 1.1rem;
    }
    
    .competition-info p {
        font-size: 0.8rem;
    }
    
    .competition-meta {
        gap: 8px;
    }
    
    .meta-item {
        font-size: 0.8rem;
    }
    
    .meta-item i {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    .status-badge {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .participants-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ==============================
   VIEW DETAILS BUTTON — UNIQUE
   ============================== */
.btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #7c5be3;
    color: #7c5be3;
    background-color: #fff;
}

/* Hover Effect */
.btn-view:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

/* Focus or Active */
.btn-view:focus,
.btn-view:active {
    outline: none;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.3);
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .btn-view {
        width: 100%;
        padding: 12px 0;
        font-size: 1rem;
    }
}

/* ===========================
   CUSTOM STUDENT ALERT DESIGN
   =========================== */
.custom-alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.custom-alert-box {
    background: #2b2b2b;
    border: 2px solid #a68a64;
    border-radius: 14px;
    color: #fff;
    width: 420px;
    max-width: 90%;
    padding: 25px 30px;
    text-align: center;
    box-shadow: 0 0 15px rgba(166, 138, 100, 0.3);
    animation: fadeInUp 0.4s ease-out;
}

.alert-icon {
    font-size: 45px;
    color: #d9b878;
    margin-bottom: 15px;
}

.alert-content h3 {
    color: #f8f4ec;
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.alert-content p {
    font-size: 0.95rem;
    color: #e4dbc5;
    margin-bottom: 20px;
    line-height: 1.5;
}

.alert-btn {
    background: #a68a64;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.alert-btn:hover {
    background: #c2a572;
    transform: translateY(-2px);
}

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


/* =============================
   JUDGING PANEL — CLEAN DESIGN
   ============================= */
.judging-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.judging-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.judging-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.judging-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.judging-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.judging-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.judging-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.judging-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.judging-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.judging-content {
    padding: 20px;
}

.judging-content h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.judging-content p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.criteria-section {
    margin-bottom: 20px;
}

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

.criterion-label {
    font-weight: 600;
    color: #495057;
    flex: 0 0 100px;
}

.criteria-slider {
    flex: 1;
    margin: 0 10px;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
}

.criteria-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
}

.criteria-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.criteria-value {
    width: 25px;
    text-align: right;
    font-weight: bold;
    color: #2c3e50;
}

.comment-box {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #495057;
    resize: none;
    margin-bottom: 20px;
}

.comment-box:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.submit-score-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.submit-score-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .judging-grid {
        grid-template-columns: 1fr;
    }
}

/* === Leaderboard Modal === */
.glassy-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 14px;
}

.btn-gold {
    background: linear-gradient(135deg, #e4b64b, #c79a32);
    color: #fff;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 10px;
    border: none;
    transition: 0.3s ease;
    box-shadow: 0 3px 10px rgba(231, 191, 77, 0.4);
}
.btn-gold:hover {
    background: linear-gradient(135deg, #f1cc63, #b88521);
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(231, 191, 77, 0.6);
}

/* Modal Design */
.leaderboard-modal {
    border-radius: 20px;
    background: linear-gradient(145deg, #101820, #182b3a);
    color: #fff;
    border: none;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.4);
}
.leaderboard-modal .modal-header {
    background: linear-gradient(90deg, #0078d7, #00b4db);
    border: none;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.leaderboard-modal .modal-body {
    padding: 1.5rem;
}
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}
.leaderboard-table th {
    background: rgba(255,255,255,0.15);
    color: #f1f1f1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 10px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}
.leaderboard-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.artwork-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.artwork-cell img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(255,255,255,0.15);
}
.top-rank {
    background: rgba(255, 215, 0, 0.1);
}
.top-rank:nth-child(1) td {
    background: rgba(255, 215, 0, 0.18);
    color: #ffef9f;
}
.top-rank:nth-child(2) td {
    background: rgba(192, 192, 192, 0.15);
    color: #e0e0e0;
}
.top-rank:nth-child(3) td {
    background: rgba(205, 127, 50, 0.15);
    color: #ffce8d;
}
.leaderboard-table tr:hover td {
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease;
}

/* === Dual Leaderboard Style === */
.leaderboard-tabs {
  border-bottom: none;
  justify-content: center;
  margin-bottom: 15px;
}
.leaderboard-tabs .nav-link {
  color: #fff;
  background: rgba(255,255,255,0.1);
  margin: 0 6px;
  border-radius: 8px;
  transition: 0.3s;
  font-weight: 600;
}
.leaderboard-tabs .nav-link.active {
  background: linear-gradient(135deg, #e4b64b, #c79a32);
  color: #fff;
  box-shadow: 0 0 10px rgba(231,191,77,0.5);
}
.top-highlight {
  text-align: center;
  margin-bottom: 20px;
}
.top1-card {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 15px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 10px rgba(255,255,255,0.15);
}
.top1-card img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(255,215,0,0.4);
}
.top1-card .score {
  background: #e4b64b;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 700;
  color: #000;
  margin-left: 5px;
}

/* ==============================
   RAINBOW TEXT ANIMATION
   ============================== */
@keyframes rainbow-text {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}
