@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Theme Support */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: #e0e7ff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --status-ready: #10b981;
    --status-ready-bg: #d1fae5;
    --status-employed: #3b82f6;
    --status-employed-bg: #dbeafe;
    --status-new: #f59e0b;
    --status-new-bg: #fef3c7;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-color: #818cf8;
    --accent-hover: #6366f1;
    --accent-light: #312e81;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --status-ready: #34d399;
    --status-ready-bg: #064e3b;
    --status-employed: #60a5fa;
    --status-employed-bg: #1e3a8a;
    --status-new: #fbbf24;
    --status-new-bg: #78350f;
    --gradient-primary: linear-gradient(135deg, #4c1d95 0%, #581c87 100%);
    --gradient-accent: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

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

/* Navigation */
.navbar {
    background-color: var(--bg-card);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

[data-theme="dark"] .logo-image {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) brightness(1.1);
}

.admin-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    background: var(--accent-color);
    color: white;
    border-radius: 6px;
    margin-left: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Notification Icon Link */
.nav-link-icon {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link-icon:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.nav-link-icon.active {
    background: var(--accent-light);
    color: var(--accent-color);
}

.nav-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-link-icon:hover .nav-icon {
    transform: scale(1.15) rotate(-12deg);
}

.nav-link-icon.active .nav-icon {
    animation: bell-ring 0.6s ease;
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    animation: pulse-dot 2s ease-in-out infinite;
    opacity: 0;
}

.nav-link-icon:hover .notification-dot,
.nav-link-icon.active .notification-dot {
    opacity: 1;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

@keyframes bell-ring {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-12deg) scale(1.1);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(12deg) scale(1.1);
    }
}

/* Admin Link */
.nav-link-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.nav-link-admin:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    color: white;
}

.nav-link-admin:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.nav-text {
    display: inline-block;
    font-weight: 600;
}

.nav-link-icon .nav-text,
.nav-link-admin .nav-text {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-text {
        display: none;
    }
    
    .nav-link-icon {
        padding: 0.625rem;
        justify-content: center;
        min-width: 44px;
    }
    
    .nav-link-admin {
        display: none;
    }
    
    .logo-image {
        height: 32px;
    }
    
    .notification-dot {
        opacity: 1;
    }
}

.theme-toggle {
    background: var(--bg-secondary);
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.625rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--accent-light);
    transform: rotate(15deg) scale(1.1);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-accent);
    color: white;
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-section h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Last Updated Section */
.last-updated {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9375rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    display: inline-flex;
}

.update-icon {
    font-size: 1rem;
    animation: rotate-slow 3s linear infinite;
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.update-text {
    opacity: 0.9;
    font-weight: 500;
}

.update-time {
    font-weight: 600;
    opacity: 1;
    transition: all 0.3s ease;
}

.update-time.pulse {
    animation: pulse-update 0.6s ease;
}

@keyframes pulse-update {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    text-align: center;
    min-width: 150px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card.highlight {
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.stat-card.highlight:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.375rem;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 0.25rem;
}

.stat-badge {
    display: inline-block;
    margin-top: 0.625rem;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Floating Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.15;
    animation: float var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    left: var(--start-x);
    top: var(--start-y);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.floating-icon:hover {
    opacity: 0.3;
}

.floating-icon .icon {
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: rotate 20s linear infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translate(-50%, -50%) translateY(-30px) translateX(20px) rotate(5deg);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-60px) translateX(-15px) rotate(-5deg);
    }
    75% {
        transform: translate(-50%, -50%) translateY(-30px) translateX(10px) rotate(3deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Waving Light Animation */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    opacity: 0.4;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200px;
    animation: wave-animation 15s ease-in-out infinite;
    opacity: 0.6;
}

.wave-top {
    animation: wave-animation 12s ease-in-out infinite;
    opacity: 0.5;
}

.wave-middle {
    animation: wave-animation 18s ease-in-out infinite;
    animation-delay: -6s;
    opacity: 0.4;
}

.wave-bottom {
    animation: wave-animation 20s ease-in-out infinite;
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes wave-animation {
    0% {
        transform: translateX(0) translateY(0) scaleY(1);
    }
    50% {
        transform: translateX(-25%) translateY(-20px) scaleY(1.1);
    }
    100% {
        transform: translateX(-50%) translateY(0) scaleY(1);
    }
}

/* Wave path animations are handled by SVG animate elements */
.wave path {
    filter: blur(0.5px);
}

/* Filters Section */
.filters-section {
    padding: 3rem 0;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.filters-container {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-box {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1.1rem;
    opacity: 0.6;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 1rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.btn-secondary {
    padding: 1rem 2rem;
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Candidates Grid */
.candidates-section {
    padding: 4rem 0;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.candidate-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.candidate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.candidate-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.candidate-card:hover::before {
    transform: scaleX(1);
}

.candidate-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.candidate-avatar {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.candidate-card:hover .candidate-avatar {
    transform: scale(1.05);
}

.candidate-info {
    flex: 1;
    min-width: 0;
}

.candidate-info h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.candidate-category {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.status-ready {
    background-color: var(--status-ready-bg);
    color: var(--status-ready);
}

.status-employed {
    background-color: var(--status-employed-bg);
    color: var(--status-employed);
}

.status-new {
    background-color: var(--status-new-bg);
    color: var(--status-new);
}

.candidate-summary {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-top: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.candidate-skills {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--accent-light) 100%);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.candidate-card:hover .skill-tag {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
}

.loading,
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.loading {
    font-size: 1.125rem;
    font-weight: 500;
}

.no-results {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.no-results::before {
    content: '🔍';
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Footer */
footer {
    background: linear-gradient(to top, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
    opacity: 0.3;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    opacity: 0.9;
}

[data-theme="dark"] .footer-logo-image {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) brightness(1.1);
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-top: 0.5rem;
    max-width: 300px;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 0.875rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.footer-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
}

.footer-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social span {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    background: var(--gradient-accent);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow);
    border-color: transparent;
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-description {
        max-width: 100%;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-logo h1 {
        font-size: 1.2rem;
    }

    .hero-section {
        min-height: 400px;
        padding: 4rem 0 3rem;
    }

    .hero-section h2 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .last-updated {
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .update-time {
        display: block;
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .stat-card {
        min-width: 100%;
        padding: 1.25rem 1.5rem;
    }

    .stat-card.highlight {
        transform: none;
    }

    .stat-card.highlight:hover {
        transform: translateY(-3px);
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.75rem;
    }

    .floating-icon {
        font-size: 2rem;
    }

    .wave {
        height: 150px;
    }

    .filters-container {
        flex-direction: column;
    }

    .search-box,
    .filter-group {
        width: 100%;
    }

    .candidates-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin Styles */
.admin-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-primary {
    padding: 0.875rem 2rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.login-container {
    max-width: 440px;
    margin: 5rem auto;
    padding: 3rem;
    background-color: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.login-container h2 {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notification-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.notification-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

.notification-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
}

.notification-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

