/* Modern Sikkim Fatafat Design */

:root {
    --primary-color: #29B6F6;   /* Light Blue */
    --secondary-color: #81D4FA;  /* Lighter Sky Blue */
    --accent-color: #4DD0E1;    /* Cyan */
    --success-color: #29B6F6;   /* Light Blue for gradients */
    --warning-color: #4DD0E1;   /* Cyan for gradients */
    --danger-color: #ef5350;     /* A standard red for contrast */
    --dark-color: #01579B;      /* Dark Blue for text */
    --light-color: #E1F5FE;     /* Very Light Blue for backgrounds */
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(41, 182, 246, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    min-height: 100vh;
}

/* Header/Hero Section */
#hero-area {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

#hero-area::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

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

/* Logo and Header Content */
.hero-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--light-color);
}

/* WhatsApp Button */
.whatsapp-btn {
    display: inline-block;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
    color: var(--white);
    text-decoration: none;
}

/* Results Table */
.results-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.results-date {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: var(--border-radius);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.results-table th,
.results-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #E1F5FE; /* Lighter border color */
    position: relative;
}

.results-table th {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

.results-table td {
    background: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    transition: var(--transition);
}

.results-table td:hover {
    background: #F5FCFF; /* A very light blue for hover */
    transform: scale(1.05);
}

.result-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.result-number.pending {
    color: #6c757d;
    font-style: italic;
}

/* Refresh Button */
.refresh-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--success-color), var(--warning-color));
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-decoration: none;
    margin: 1rem 0;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(79, 172, 254, 0.4);
    color: var(--white);
    text-decoration: none;
}

/* Section Styling */
.section {
    padding: 4rem 0;
    background: var(--white);
}

.section:nth-child(even) {
    background: var(--light-color); /* Use light blue for even sections */
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
}

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

.card-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin: -2rem -2rem 2rem -2rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Time Table */
.time-table {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.time-table-header {
    background: linear-gradient(45deg, var(--dark-color), #34495e);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.time-table-content {
    padding: 2rem;
}

.time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.time-slot:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: translateX(5px);
}

.time-number {
    font-weight: 700;
    font-size: 1.2rem;
}

.time-value {
    font-weight: 600;
    font-size: 1.1rem;
}

/* About Section */
.about-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.about-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.about-content ul {
    list-style: none;
    padding-left: 0;
}

.about-content ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.about-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Privacy Policy */
.privacy-policy {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.privacy-policy h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.privacy-policy h3:first-child {
    margin-top: 0;
}

.privacy-policy p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #555;
}

.privacy-policy ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.privacy-policy ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.privacy-policy ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .results-table {
        font-size: 0.9rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 0.5rem;
    }
    
    .result-number {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-heading h2 {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .about-content,
    .privacy-policy {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .results-table {
        font-size: 0.8rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 0.3rem;
    }
    
    .whatsapp-btn,
    .refresh-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

/* Responsive old results table in cards */
.card .results-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border: none;
    margin-bottom: 0;
}
.card .results-table table {
    min-width: 600px;
}
.card .results-table td {
    min-width: 50px;
    padding: 0.5rem 0.2rem;
    text-align: center;
    border: none;
    vertical-align: middle;
}
.card .results-table .result-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #4f6ef7;
    line-height: 1.2;
}
.card .results-table .result-number + .result-number {
    margin-top: 0.2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #888;
}
@media (max-width: 900px) {
    .card .results-table td {
        min-width: 55px;
        font-size: 0.95rem;
    }
    .card .results-table {
        min-width: 0;
    }
}
@media (max-width: 600px) {
    .card .results-table td {
        min-width: 42px;
        font-size: 0.9rem;
        padding: 0.3rem 0.1rem;
    }
    .card .results-table {
        min-width: 0;
    }
} 