/* Global Styles */

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


/* Import Google Fonts */

@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Asimovian&family=Caesar+Dressing&family=Caudex:ital,wght@0,400;0,700;1,400;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* Define global font variables */

:root {
    --font-heading: 'Fredoka One', cursive;
    --font-decorative: 'Caesar Dressing', cursive;
    --font-body: 'Inter', sans-serif;
    --font-alt: 'Work Sans', sans-serif;
    --font-classic: 'Caudex', serif;
    --font-futuristic: 'Asimovian', sans-serif;
}


/* Apply globally */

body {
    font-family: var(--font-body);
}

body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="32" width="32"><text y="24" font-size="24">✏️</text></svg>') 16 0, auto;
}

/* Example usage */

h1,
h2,
h3 {
    font-family: var(--font-heading);
}

.navbar-brand {
    font-family: var(--font-decorative);
}

p,
li,
a {
    font-family: var(--font-body);
}

blockquote {
    font-family: var(--font-classic);
}

.hero-content,
.ad-space {
    background: rgba(253, 249, 249, 0.208);
    /* transparent white */
    backdrop-filter: blur(2px);
    /* glass blur effect */
    -webkit-backdrop-filter: blur(12px);
    /* Safari support */
    border-radius: 16px;
    margin-top: 125px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: #181414;
    height: 100%;
}

.carousel-item {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-title,
.hero-subtitle,
.hero-description {
    color: #000000;
    /* ensure text is readable */
}

.ad-space {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* Animated Background */

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}


/* Navigation */

.custom-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #4a90e2 !important;
    text-decoration: none;
}

.brand-text {
    background: linear-gradient(45deg, #4a90e2, #e74c3c, #f39c12, #27ae60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 0.5rem;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    border-radius: 20px;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white !important;
    transform: translateY(-2px);
}


/* Buttons */

.rainbow-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 300% 300%;
    animation: rainbow 3s ease infinite;
    border: none;
    color: white;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.rainbow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.btn-category {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
}


/* Hero Section */

.hero-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #f52d2d, #38f0e4, #7ddff5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #080808;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #111111;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}


/* Category Cards */

.categories-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.toddler-card {
    border-left: 5px solid #ff6b6b;
}

.kids-card {
    border-left: 5px solid #4ecdc4;
}

.tweens-card {
    border-left: 5px solid #45b7d1;
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(5deg);
    }
    75% {
        transform: rotate(-5deg);
    }
}

.category-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.age-range {
    color: #666;
    font-weight: bold;
    margin-bottom: 1rem;
}

.category-description {
    color: #777;
    margin-bottom: 1.5rem;
}

.category-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.category-stats span {
    font-size: 0.9rem;
    color: #666;
}


/* Leader Cards */

.leaders-preview {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.leader-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.leader-crown {
    font-size: 2rem;
    position: absolute;
    top: -10px;
    right: 10px;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

.leader-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 3px solid #f0f0f0;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.leader-votes {
    color: #666;
    font-size: 0.9rem;
}

.toddler-leader {
    border-left: 4px solid #ff6b6b;
}

.kids-leader {
    border-left: 4px solid #4ecdc4;
}

.tweens-leader {
    border-left: 4px solid #45b7d1;
}


/* Step Cards */

.how-it-works {
    background: #f8f9fa;
}

.step-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-icon {
    font-size: 3rem;
    margin: 1rem 0;
}

.step-card h4 {
    color: #333;
    margin-bottom: 1rem;
}

.step-card p {
    color: #666;
}


/* Ad Spaces */

.ad-space {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ad-space:hover {
    border-color: #adb5bd;
    background: #e9ecef;
}

.ad-large {
    height: 250px;
    width: 300px;
    margin: 0 auto;
}

.ad-banner {
    height: 90px;
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
}

.ad-placeholder {
    text-align: center;
    color: #6c757d;
}

.ad-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}


/* Footer */

.custom-footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.custom-footer h5,
.custom-footer h6 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}


/* Upload Page Styles */

.upload-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.upload-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.upload-header {
    text-align: center;
    margin-bottom: 2rem;
}

.upload-header h2 {
    color: #333;
    margin-bottom: 0.5rem;
}

.photo-upload-area {
    border: 3px dashed #dee2e6;
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.photo-upload-area:hover {
    border-color: #4a90e2;
    background: #e3f2fd;
}

.upload-placeholder i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
    display: block;
}

.uploaded-preview {
    position: relative;
}

.uploaded-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    object-fit: cover;
}

.remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 0;
}

.submit-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.guidelines-card,
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.guidelines-list {
    list-style: none;
    padding: 0;
}

.guidelines-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a90e2;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.success-icon i {
    font-size: 4rem;
    margin-bottom: 1rem;
}


/* Gallery Styles */

.gallery-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin: 1rem 2rem 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-tabs {
    background: rgba(255, 255, 255, 0.9);
    margin: 0 2rem;
}

.category-nav .nav-link {
    background: white;
    border: 1px solid #dee2e6;
    color: #495057;
    margin: 0 0.25rem;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.category-nav .nav-link.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
}

.vote-count {
    font-size: 0.75rem;
    opacity: 0.8;
}

.gallery-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin: 0 2rem 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.photo-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.photo-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-image img {
    transform: scale(1.05);
}

.photo-info {
    padding: 1rem;
}

.photo-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.photo-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.photo-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.photo-votes {
    color: #e74c3c;
    font-weight: bold;
}

.photo-today {
    color: #27ae60;
    font-size: 0.9rem;
}

.vote-btn {
    width: 100%;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.vote-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    color: white;
}

.vote-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.vote-status-card,
.top-votes-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.vote-progress {
    margin: 1rem 0;
}

.category-vote-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.category-vote-status:last-child {
    border-bottom: none;
}

.vote-used {
    color: #27ae60;
    font-weight: bold;
}

.vote-unused {
    color: #95a5a6;
}

.voting-status {
    text-align: right;
}

.hot-picks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hot-pick-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.hot-pick-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.hot-pick-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hot-pick-info .name {
    font-weight: bold;
    color: #333;
}

.hot-pick-info .category {
    color: #666;
}

.hot-pick-info .votes {
    color: #e74c3c;
    font-weight: bold;
}

.vote-success-icon i {
    font-size: 4rem;
    margin-bottom: 1rem;
}


/* Leaderboard Styles */

.leaderboard-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin: 1rem 2rem 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.champions-section {
    background: rgba(255, 255, 255, 0.95);
    margin: 0 2rem;
}

.champion-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.champion-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.champion-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.champion-crown {
    font-size: 3rem;
    animation: bounce 2s infinite;
    margin-bottom: 1rem;
}

.champion-photo {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    position: relative;
    border: 4px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.champion-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 576px) {
    .champion-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.champion-rank {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.champion-card h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.category-label {
    color: #666;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.champion-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.toddler-champion .category-label {
    color: #ff6b6b;
}

.kids-champion .category-label {
    color: #4ecdc4;
}

.tweens-champion .category-label {
    color: #45b7d1;
}

.category-leaderboards {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin: 0 2rem 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.leaderboard-table {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.toddler-title {
    color: #ff6b6b;
    border-color: #ff6b6b;
}

.kids-title {
    color: #4ecdc4;
    border-color: #4ecdc4;
}

.tweens-title {
    color: #45b7d1;
    border-color: #45b7d1;
}

.leaderboard-table-content {
    margin-bottom: 0;
}

.leaderboard-table-content th {
    background: #f8f9fa;
    border: none;
    color: #333;
    font-weight: 600;
    padding: 1rem 0.75rem;
}

.leaderboard-table-content td {
    border: none;
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.leaderboard-table-content tbody tr {
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.leaderboard-table-content tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
}

.rank-cell {
    font-weight: bold;
    font-size: 1.2rem;
}

.rank-1 {
    color: #ffd700;
}

.rank-2 {
    color: #c0c0c0;
}

.rank-3 {
    color: #cd7f32;
}

.contestant-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

.contestant-name {
    font-weight: bold;
    color: #333;
}

.votes-cell {
    font-weight: bold;
    color: #e74c3c;
    font-size: 1.1rem;
}

.today-votes {
    color: #27ae60;
    font-weight: 500;
}

.trend-up {
    color: #27ae60;
}

.trend-down {
    color: #e74c3c;
}

.trend-same {
    color: #95a5a6;
}

.contest-info-card,
.prizes-card,
.vote-cta-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-item,
.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child,
.status-item:last-child {
    border-bottom: none;
}

.info-label,
.status-label {
    color: #666;
    font-size: 0.9rem;
}

.info-value,
.status-value {
    font-weight: bold;
    color: #333;
}

.prize-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
}

.prize-item.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.prize-item.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
}

.prize-item.bronze {
    background: linear-gradient(135deg, #cd7f32, #deb887);
}

.prize-rank {
    font-weight: bold;
}

.prize-value {
    font-size: 0.9rem;
    font-weight: 500;
}


/* Admin Styles */

.admin-header {
    margin: 1rem 2rem 0;
    border-radius: 20px 20px 0 0;
}

.admin-dashboard {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin: 0 2rem 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-info h4 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.admin-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.section-header h4 {
    color: #333;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 0.5rem;
}

.pending-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pending-photo {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.pending-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.pending-info h5 {
    color: #333;
    margin-bottom: 0.25rem;
}

.pending-info .text-muted {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.pending-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.pending-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.activity-log {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.activity-item:hover {
    background: #f8f9fa;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.activity-item.approved .activity-icon {
    background: #28a745;
}

.activity-item.rejected .activity-icon {
    background: #dc3545;
}

.activity-item.new-submission .activity-icon {
    background: #007bff;
}

.activity-content {
    flex-grow: 1;
}

.activity-content p {
    margin-bottom: 0.25rem;
    color: #333;
}

.activity-content small {
    color: #666;
}

.quick-actions-card,
.contest-status-card,
.category-stats-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-stat:last-child {
    margin-bottom: 0;
}

.category-name {
    min-width: 100px;
    font-size: 0.9rem;
}

.stat-bar {
    flex-grow: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.stat-progress {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.stat-number {
    min-width: 60px;
    text-align: right;
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
}


/* Responsive Design */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .category-icon {
        font-size: 3rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    .champion-photo {
        width: 200px;
        height: 200px;
    }
    .champion-crown {
        font-size: 2rem;
    }
    .leaderboard-table-content {
        font-size: 0.9rem;
    }
    .contestant-photo {
        width: 40px;
        height: 40px;
    }
    .pending-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .pending-photo {
        align-self: center;
    }
    .pending-actions {
        align-self: center;
    }
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .section-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
    .animated-bg {
        display: none;
        /* Hide floating elements on very small screens */
    }
    .hero-section,
    .categories-section,
    .leaders-preview {
        margin: 1rem;
        padding: 2rem 1rem;
    }
    .gallery-header,
    .category-tabs,
    .gallery-content,
    .leaderboard-header,
    .champions-section,
    .category-leaderboards,
    .admin-header,
    .admin-dashboard {
        margin: 0.5rem;
    }
    .category-nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .champion-card {
        padding: 1.5rem 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}


/* Utility Classes */

.text-rainbow {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.bg-gradient-success {
    background: linear-gradient(135deg, #4ecdc4 0%, #27ae60 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
}

.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}


/* Loading States */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}


/* Custom Scrollbar */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
}

.footer-logo {
    max-width: 50px;
    /* Adjust the size as needed */
    height: 50px;
    display: block;
}