/**
 * VoteHub - Awards Voting System
 * Main Stylesheet
 */

/* ========================================
   CSS Custom Properties (Design Tokens)
======================================== */
:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-rgb: 99, 102, 241;

    /* Secondary Colors */
    --secondary: #ec4899;
    --secondary-dark: #db2777;
    --secondary-light: #f472b6;

    /* Accent Colors */
    --accent: #f59e0b;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Neutral Colors */
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;

    /* Status Colors */
    --success: #10b981;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(236, 72, 153, 0.9) 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', var(--font-primary);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(var(--primary-rgb), 0.3);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ========================================
   Base Styles
======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gray-700);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 3.5rem;
    /* Account for fixed navbar height */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Container - Optimized for Standard Desktop Viewing
======================================== */
.container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1100px;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1300px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ========================================
   Utility Classes
======================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-dark {
    background: var(--gradient-dark);
}

.glow {
    box-shadow: var(--shadow-glow);
}

.py-section {
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
}

.py-large {
    padding-top: 10rem !important;
    padding-bottom: 10rem !important;
}

/* ========================================
   Navigation - Always Dark Gradient Theme
======================================== */
.navbar {
    padding: 0.75rem 0;
    transition: all var(--transition);
    background: var(--gradient-dark);
}

.navbar.scrolled {
    background: var(--gradient-dark);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
    position: relative;
    font-size: 0.95rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--white);
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 100%;
}

/* ========================================
   Hero Section
======================================== */
.hero-section {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    background: var(--gradient-dark);
    overflow: hidden;
    padding: 3rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50px);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--gray-300);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    display: block;
}

.stat-label {
    color: var(--gray-400);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ========================================
   Buttons
======================================== */
.btn {
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-vote {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.btn-vote:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   Cards
======================================== */
.card {
    border: none;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Modern Event Card */
.event-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 15px 30px rgba(0, 0, 0, 0.1);
}

.event-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.event-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.event-card:hover .event-image-wrapper img {
    transform: scale(1.1);
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.glass-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.event-card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card .card-text {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.event-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-box .label {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.375rem;
}

.stat-box .value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
}

.event-card-footer {
    padding: 0 2rem 2rem;
}

.btn-modern {
    width: 100%;
    padding: 0.875rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all var(--transition);
    font-size: 0.95rem;
}

.btn-modern i {
    transition: transform var(--transition);
}

.btn-modern:hover i {
    transform: translateX(5px);
}

/* Nominee Card */
.nominee-card {
    text-align: center;
    padding: 2.5rem 1.75rem;
}

.nominee-card .nominee-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--gray-100);
    transition: all var(--transition);
}

.nominee-card:hover .nominee-photo {
    border-color: var(--primary);
    transform: scale(1.05);
}

.nominee-card .shortcode {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.nominee-card .vote-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Category Card */
.category-card {
    padding: 2.5rem 1.75rem;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-xl);
}

.category-card .icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: var(--white);
}

/* ========================================
   Section Styles
======================================== */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header .subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: block;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 1.25rem;
}

.section-header p {
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
}

/* ========================================
   Featured Events Section
======================================== */
.featured-events {
    background: var(--white);
}

/* ========================================
   How It Works Section
======================================== */
.how-it-works {
    background: var(--gray-50);
}

.step-card {
    text-align: center;
    padding: 2.5rem 1.75rem;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 auto 1.5rem;
}

.step-card h4 {
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.step-card p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* ========================================
   Live Results Section
======================================== */
.live-results {
    background: var(--gradient-dark);
    color: var(--white);
}

.live-results .section-header h2 {
    color: var(--white);
}

.live-results .section-header p {
    color: var(--gray-400);
}

.result-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.result-item .nominee-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.result-item .nominee-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.result-item .progress {
    height: 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
}

.result-item .progress-bar {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

/* ========================================
   CTA Section
======================================== */
.cta-section {
    background: var(--gradient-primary);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 1.25rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--dark);
    color: var(--gray-300);
    padding: 5rem 0 2rem;
}

.footer h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: var(--gray-300);
    font-size: 0.95rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--gray-300);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Compact footer column spacing */
.footer .col-lg-4,
.footer .col-lg-2,
.footer .col-lg-3 {
    padding-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .footer .col-lg-4 {
        padding-bottom: 0;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    font-size: 0.95rem;
}

/* ========================================
   Forms
======================================== */
.form-control,
.form-select {
    padding: 0.75rem 1.125rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

.form-label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   Alerts & Flash Messages
======================================== */
.alert {
    border-radius: var(--radius-md);
    padding: 1rem 1.75rem;
    font-size: 1rem;
}

/* ========================================
   Miscellaneous
======================================== */
.shortcode-search {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 0.75rem;
    max-width: 500px;
}

.shortcode-search input {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

/* ========================================
   Event Details Hero
======================================== */
.event-header {
    margin-top: 76px;
    overflow: hidden;
}

.event-banner {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.event-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 40%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

.event-banner .container {
    position: relative;
    z-index: 2;
}

.event-stats-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all var(--transition);
}

.event-stats-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition);
}

.event-banner .container {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Authentication Pages
======================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 450px;
    background: var(--gradient-dark);
    z-index: 0;
}

.auth-page .container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3.5rem;
    width: 100%;
    max-width: 480px;
    transition: all var(--transition);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo h1 {
    font-size: 2.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.auth-card .form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.auth-card .input-group-text {
    background: var(--gray-50);
    border-right: none;
    color: var(--gray-400);
    padding-left: 1.25rem;
    padding-right: 0.75rem;
}

.auth-card .form-control {
    border-left: none;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
}

.auth-card .form-control:focus {
    box-shadow: none;
}

.auth-card .input-group:focus-within .input-group-text,
.auth-card .input-group:focus-within .form-control {
    border-color: var(--primary);
}

.auth-card .btn-lg {
    padding: 0.875rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.auth-card hr {
    opacity: 0.1;
}

.password-strength {
    margin-top: 0.5rem;
}

.password-strength .progress {
    background-color: var(--gray-100);
    margin-bottom: 0.25rem;
}

@media (max-width: 576px) {
    .auth-card {
        padding: 2rem;
        margin: 0 1rem;
    }

    .auth-page {
        padding: 2rem 0;
    }
}

/* ========================================
   Notifications
======================================== */
.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-fast);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-decoration: none;
}

.notification-item:hover {
    background-color: var(--gray-50);
}

.notification-item.unread {
    background-color: rgba(var(--primary-rgb), 0.05);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.notification-content {
    flex-grow: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
    display: block;
}

.notification-message {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.notification-dropdown {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.notification-dropdown .dropdown-header {
    background: var(--gray-50);
}

/* User Profile Dropdown */
.user-dropdown-menu {
    width: 280px;
    border-radius: 1rem !important;
    overflow: hidden;
}

.user-dropdown-item {
    transition: all 0.2s ease;
    font-weight: 500;
}

.user-dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--primary) !important;
    padding-left: 1.25rem !important;
}

.user-dropdown-item.text-danger:hover {
    background-color: rgba(239, 68, 68, 0.05);
    color: var(--danger) !important;
}

.user-avatar-sm {
    transition: transform 0.2s ease;
}

.nav-item.dropdown:hover .user-avatar-sm {
    transform: scale(1.1);
}

/* Rank Badge Styling */
.rank-badge {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    color: #000;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.rank-2 {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    color: #000;
}

.rank-3 {
    background: linear-gradient(135deg, #d97706, #78350f);
    color: #fff;
}

.rank-other {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ========================================
   Mobile Responsive Fixes
   ======================================== */
@media (max-width: 991px) {
    .hero-stats {
        gap: 2rem;
        margin-top: 3rem;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-stats {
        gap: 1.5rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .shortcode-search form {
        flex-direction: row;
        align-items: center;
    }

    .shortcode-search .input-group {
        max-width: 100% !important;
    }

    .result-item {
        padding: 1.25rem;
    }

    .result-item .nominee-info {
        gap: 1rem;
    }

    .result-item .nominee-avatar {
        width: 55px;
        height: 55px;
    }

    .result-item .vote-count {
        font-size: 1.25rem !important;
        margin-left: auto;
    }

    .rank-badge {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* ========================================
   Results Page Mobile Fixes
   ======================================== */
@media (max-width: 767px) {


    .category-pills .btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .category-pills .badge {
        font-size: 0.7rem;
    }

    .result-card .card-body {
        padding: 1rem;
    }

    .result-card .rank-circle {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
        margin-right: 0.75rem !important;
    }

    .result-card img {
        width: 45px !important;
        height: 45px !important;
        margin-right: 0.75rem !important;
    }

    .result-card h5 {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    .result-card .vote-count {
        font-size: 1.1rem !important;
    }

    .result-card .progress {
        height: 6px !important;
    }

    /* Summary Bar */
    .results-section .bg-primary.text-white .row>div {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1rem;
    }

    .results-section .bg-primary.text-white .row>div:last-child {
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
    }

}

.user-dropdown-item:hover {

    background-color: var(--gray-50);
    color: var(--primary) !important;
    padding-left: 1.25rem !important;
}

.user-dropdown-item.text-danger:hover {
    background-color: rgba(239, 68, 68, 0.05);
    color: var(--danger) !important;
}

.user-avatar-sm {
    transition: transform 0.2s ease;
}

.nav-item.dropdown:hover .user-avatar-sm {
    transform: scale(1.1);
}

/* Rank Badge Styling */
.rank-badge {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    color: #000;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.rank-2 {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    color: #000;
}

.rank-3 {
    background: linear-gradient(135deg, #d97706, #78350f);
    color: #fff;
}

.rank-other {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ========================================
   Mobile Responsive Fixes
   ======================================== */
@media (max-width: 991px) {
    .hero-stats {
        gap: 2rem;
        margin-top: 3rem;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-stats {
        gap: 1.5rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .shortcode-search form {
        flex-direction: row;
        align-items: center;
    }

    .shortcode-search .input-group {
        max-width: 100% !important;
    }

    .result-item {
        padding: 1.25rem;
    }

    .result-item .nominee-info {
        gap: 1rem;
    }

    .result-item .nominee-avatar {
        width: 55px;
        height: 55px;
    }

    .result-item .vote-count {
        font-size: 1.25rem !important;
        margin-left: auto;
    }

    .rank-badge {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* ========================================
   Results Page Mobile Fixes
   ======================================== */
@media (max-width: 767px) {
    .category-pills .btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .category-pills .badge {
        font-size: 0.7rem;
    }

    .result-card .card-body {
        padding: 1rem;
    }

    .result-card .rank-circle {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
        margin-right: 0.75rem !important;
    }

    .result-card img {
        width: 45px !important;
        height: 45px !important;
        margin-right: 0.75rem !important;
    }

    .result-card h5 {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    .result-card .vote-count {
        font-size: 1.1rem !important;
    }

    .result-card .progress {
        height: 6px !important;
    }

    /* Summary Bar */
    .results-section .bg-primary.text-white .row>div {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1rem;
    }

    .results-section .bg-primary.text-white .row>div:last-child {
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* ========================================
   Events Page Mobile Fixes
   ======================================== */
@media (max-width: 767px) {
    .filters-bar .btn-group {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 5px;
    }

    .filters-bar .btn-group .btn {
        flex: 1 1 auto;
        border-radius: 50px !important;
        margin-right: 0 !important;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .event-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }

    .event-card .card-title {
        font-size: 1.25rem;
    }

    .event-card .card-text {
        font-size: 0.95rem;
    }

    .event-image-wrapper {
        height: 150px !important;
    }

    .event-card-body {
        padding: 1.25rem !important;
    }

    .event-card-footer {
        padding: 0 1.25rem 1.25rem !important;
    }
}

/* Event Banner Styles */
.event-banner .lead {
    color: rgba(255, 255, 255, 0.9) !important;
}

.event-banner .text-white-75 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.event-banner .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7) !important;
}

.event-banner .breadcrumb-item.active {
    color: #fff !important;
}

/* ========================================
   Vote Modal Premium Styles
======================================== */
.nominee-avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.nominee-initials {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.vote-counter-group {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    padding: 2px;
}

.btn-counter {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s;
}

.btn-counter:hover {
    background: #f8fafc;
    color: var(--primary);
}

.vote-input {
    border: none !important;
    font-size: 1.5rem !important;
    color: #1e293b !important;
    background: transparent !important;
    box-shadow: none !important;
}

.phone-input-group {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.phone-input-group .input-group-text {
    border: none;
    font-weight: 600;
    color: #64748b;
}

.phone-input-group .form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 500;
}

.phone-input-group .form-control:focus {
    box-shadow: none;
}

.payment-summary-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.btn-proceed-payment {
    background: linear-gradient(90deg, #a855f7 0%, #ec4899 100%);
    border: none;
    color: white;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-proceed-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.4);
    opacity: 0.9;
}

.modal-content.rounded-5 {
    border-radius: 2rem !important;
}

/* Vote Modal Enhancements */
.vote-counter-group .btn-counter {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: var(--dark);
    width: 45px;
    font-weight: 700;
}

.vote-counter-group .vote-input {
    border-left: none;
    border-right: none;
    max-width: 80px;
}

.phone-input-group .input-group-text {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-weight: 600;
    color: var(--gray-600);
}

.phone-input-group .form-control {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.payment-summary-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
}

.btn-proceed-payment {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    transition: all var(--transition);
}

.btn-proceed-payment:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: var(--white);
}

.btn-proceed-payment:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Select Styling */
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.1);
}