:root {
    --primary-color: #198754;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #20c997 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
}

.search-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    margin: 0 auto;
}

.search-box .form-control {
    border-radius: 10px;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #e9ecef;
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.search-box .btn {
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

.result-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.result-card.winner {
    border-left: 5px solid var(--success-color);
    background: linear-gradient(to right, rgba(25, 135, 84, 0.1), white);
}

.result-card.no-result {
    border-left: 5px solid var(--secondary-color);
}

.prize-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

.prize-badge.first {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #000;
}

.prize-badge.second {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #000;
}

.prize-badge.third {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #fff;
}

.prize-badge.other {
    background: var(--info-color);
    color: #000;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.stat-card .icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 10px 0;
}

.stat-card p {
    color: var(--secondary-color);
    margin: 0;
}

.notice-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.notice-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.notice-card .notice-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.notice-card .notice-type.general {
    background: var(--light-color);
    color: var(--dark-color);
}

.notice-card .notice-type.draw {
    background: rgba(25, 135, 84, 0.1);
    color: var(--primary-color);
}

.notice-card .notice-type.winner {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.notice-card .notice-type.announcement {
    background: rgba(255, 193, 7, 0.1);
    color: #997404;
}

.table-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.table-card .table {
    margin-bottom: 0;
}

.table-card .table thead th {
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: var(--dark-color);
    text-transform: uppercase;
    font-size: 14px;
}

.table-card .table tbody tr:hover {
    background: var(--light-color);
}

.auth-card {
    max-width: 450px;
    margin: 50px auto;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-card .form-control {
    border-radius: 10px;
    padding: 12px 15px;
}

.auth-card .btn {
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
}

.password-requirements {
    animation: fadeIn 0.3s ease;
}

.password-requirements .badge {
    font-size: 0.75rem;
    padding: 5px 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.social-login {
    margin-top: 20px;
}

.social-login .btn {
    border-radius: 10px;
    padding: 10px;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

.alert-custom {
    border-radius: 10px;
    border: none;
}

.page-header {
    background: var(--light-color);
    padding: 40px 0;
    margin-bottom: 40px;
}

.page-header h1 {
    color: var(--dark-color);
    margin: 0;
}

.pagination-custom .page-link {
    border-radius: 8px;
    margin: 0 3px;
    color: var(--primary-color);
}

.pagination-custom .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .search-box {
        padding: 20px;
        margin: 0 15px;
    }
    
    .auth-card {
        margin: 30px 15px;
        padding: 25px;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
}

/* Dropdown hover effect */
@media (min-width: 768px) {
    .navbar-nav .dropdown:hover > .dropdown-menu,
    .navbar-nav .dropdown:focus-within > .dropdown-menu {
        display: block;
    }
    .navbar-nav .dropdown > .dropdown-menu {
        margin-top: 0;
        border-radius: 0.5rem;
    }
}

/* Click to open dropdown on mobile */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
}

/* Badge styles for winners */
.badge-first { background-color: #FFD700; color: #000; }
.badge-second { background-color: #C0C0C0; color: #000; }
.badge-third { background-color: #CD7F32; color: #fff; }
}