/* style.css - Final, Cleaned & Professional Stylesheet */

/* --- 1. Foundation & Basic Setup --- */

/* Google Font Import */
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

/* Professional Color Palette */
:root {
    --primary-color: #3B82F6;  /* एक आकर्षक नीला */
    --secondary-color: #10B981; /* एक वाइब्रेंट हरा */
    --background-color: #F3F4F6; /* हल्का ग्रे बैकग्राउंड */
    --surface-color: #FFFFFF;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --border-color: #E5E7EB;
    --holiday-bg: #FEF3C7;
    --today-bg: #D1FAE5;
    --footer-bg: #111827;
    --footer-text: #9CA3AF;
}

/* Basic Body & Typography Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-top: 75px; /* Fixed Navbar के लिए स्पेस */
}

.container {
    max-width: 1100px;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
}

h2 {
    font-size:25px;
    font-weight: 700;
}
h3 {
    font-size:18px;
    font-weight: 600;
}
h4 {
    font-size:18px;
    font-weight: 600;
}
h5 {
    font-size:16px;
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #1D4ED8;
    text-decoration: none;
}


.styled-list {
  list-style: none;       /* remove default dots */
  margin: 1rem 0;
  padding: 0;
}

/* LI Styling */
.styled-list li {
  position: relative;
  padding-left: 2rem;     /* space for custom icon */
  margin-bottom: 0.75rem; /* spacing between items */
  font-size: 1rem;
  line-height: 1.6;
  color: #6b7280;
  font-family: 'Poppins', sans-serif;
}

/* Custom Bullet (Circle) */
.styled-list li::before {
  content: "✔";           /* you can change to ➤, •, ➔ */
  position: absolute;
  left: 0;
  top: 0;
  color: #0073e6;         /* blue accent */
  font-size: 1.1rem;
  font-weight: bold;
}

/* Optional hover effect */
.styled-list li:hover {
  color: #0056b3;
  transition: color 0.3s ease;
}

/* --- 2. Header & Navigation --- */

.navbar.fixed-top {
    background-color: var(--surface-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    min-height: 75px;
}
.navbar-brand {
    font-weight: 700;
    padding-left: 10px;   /* left/right me thoda space */
    padding-right: 10px;
    font-size: 1.2rem;  
}
.navbar-brand .text-primary {
    color: var(--primary-color) !important;
}
.navbar-brand .text-dark {
    color: var(--text-dark) !important;
}
.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-light) !important;
    margin-right: 10px;
    margin-left: 10px;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}
.navbar-nav .nav-link:hover {
    color: var(--text-dark) !important;
    background-color: var(--background-color);
}

/* Page Header (Hero Section) */
.header {
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.9), rgba(26, 32, 44, 0.9));
    position: relative;
    padding: 6rem 0;
    text-align: center;
    color: white;
}
.header .overlay { display: none; }
.header-content { position: relative; z-index: 2; }
.header-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-top: 0.5rem;
}
.header-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

/* --- 2. Calendar Wrapper & Form --- */

.calendar-wrapper {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: 1.5rem; /* 24px */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.month-year-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.month-year-selector select, .month-year-selector input[type="submit"] {
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem; /* 12px */
    font-size: 1rem;
    background-color: #fff;
    font-family: 'Poppins', sans-serif;
}
.month-year-selector input[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.month-year-selector input[type="submit"]:hover {
    background-color: #2563EB;
}


/* --- 3. The Calendar Table - The Core of the Design --- */

#calendar table {
    width: 100%;
    /* यह प्रॉपर्टी बराबर कॉलम सुनिश्चित करती है */
    table-layout: fixed; 
    /* यह प्रॉपर्टी सेलों के बीच गैप बनाती है */
    border-collapse: separate;
    border-spacing: 8px; 
}

#calendar th {
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    padding-bottom: 1rem;
    font-size: 0.9rem;
}

#calendar td {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem; /* 12px */
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    /* यह प्रॉपर्टी बॉक्स को रेस्पॉन्सिव रूप से वर्गाकार बनाती है */
    aspect-ratio: 1 / 1; 
}

#calendar td:not(.empty-cell):hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    cursor: pointer;
}

#calendar td.empty-cell {
    background-color: transparent;
    border: 1px solid transparent;
}

/* Holiday Highlighting Class */
#calendar td.holiday {
    background-color: var(--holiday-bg) !important;
    border: 2px solid var(--holiday-border);
}



/* --- 4. Print-Specific Styles --- */

@media print {
    body {
        background-color: #fff !important; /* प्रिंट में बैकग्राउंड हटा दें */
    }

    /* Hide everything except the printable area */
    body > *:not(#printable-area) {
        display: none !important;
    }

    #printable-area {
        display: block !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100%;
    }
    
    #printable-area table {
        table-layout: fixed !important;
        width: 100% !important;
        border-spacing: 0px !important; /* प्रिंट में गैप हटा दें */
        border-collapse: collapse !important;
    }
    
    #printable-area td, #printable-area th {
        border: 1px solid #000 !important; /* प्रिंट के लिए सादी बॉर्डर */
        color: #000 !important;
        font-size: 1rem;
        aspect-ratio: 1 / 1; /* प्रिंट में भी बराबर बॉक्स */
    }
    
    #printable-area td.holiday {
        background-color: #FFFFFF !important; /* प्रिंट में हॉलिडे का रंग हटा दें */
        -webkit-print-color-adjust: exact;
    }
}


/* --- 3. Main Content & Calendar --- */

main { padding: 3rem 0; }

.content-block {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}
.head {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Month/Year Selector Form */
.month-year-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.month-year-selector select,
.month-year-selector input[type="submit"] {
    padding: 0.8rem 1.3rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    flex: 1; /* equal space le */
    min-width: 120px; /* chhote screen par bhi readable */
}

.month-year-selector input[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.month-year-selector input[type="submit"]:hover {
    background-color: #2563EB;
    transform: translateY(-2px);
}

/* --- Mobile Responsive --- */
@media (max-width: 600px) {
    .month-year-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .month-year-selector select,
    .month-year-selector input[type="submit"] {
        width: 100%;
    }

    /* button hamesha neeche aaye */
    .month-year-selector input[type="submit"] {
        order: 2;
    }
}


/* Calendar Table */
#calendar table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
}
#calendar th {
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    padding-bottom: 1rem;
}
#calendar td {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    text-align: center;
    vertical-align: middle;
    height: 90px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
#calendar td:not([class*="empty-cell"]):hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    cursor: pointer;
}
#calendar td[style*="background-color"] {
    background-color: var(--holiday-bg) !important;
    border-color: #FBBF24;
}

/* Holiday List */
.holidays-box {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.holidays-box h3 { text-align: center; font-weight: 600; margin-bottom: 1.5rem; }
.holidays-box table { border-collapse: collapse; border-spacing: 0; text-align: left; }
.holidays-box th, .holidays-box td {
    padding: 1rem;
    height: auto;
    border: none;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    font-weight: 500;
}
.holidays-box tr:last-child td { border-bottom: none; }
.holidays-box th { color: var(--text-light); }

/* Print Button */
.print-button { text-align: center; margin-top: 2.5rem; }
.print-button button {
    background-color: #3b82f6;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 1rem 3.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3);
}
.print-button button:hover {
    background-color: #007bff;
    transform: translateY(-3px);
}

/* Year Selector */
.box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 1rem;
}
.year-box {
    background-color: var(--background-color);
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.year-box:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* General Content Area */
#about p, #about ol {
    color: var(--text-light);
    line-height: 1.8;
}
#about ol { padding-left: 20px; }


/* --- 4. Footer --- */

.footer-section {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 2rem 0;
}
.pre-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #374151;
}
.pre-footer .list { list-style: none; padding: 0; flex: 1; min-width: 250px; }
.pre-footer .list-head {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #FFF;
    text-transform: uppercase;
}
.pre-footer .list-body p, .pre-footer .list-body a {
    color: var(--footer-text);
    margin-bottom: 0.75rem;
    display: block;
}
.pre-footer .list-body a:hover { color: #FFF; }
.pre-footer .list-body i { margin-right: 0.75rem; color: var(--primary-color); }
.pre-footer .social-links a { display: inline-block; margin-right: 1rem; font-size: 1.2rem; }
.pre-footer .social-links a:hover i { color: var(--primary-color); }
.footer {
    text-align: center;
    padding: 2rem 0 0 0;
    border: none;
    margin: 0;
}
.footer p { color: var(--footer-text); font-size: 0.9rem; }
.footer a { color: #FFF; font-weight: 500; }
.footer a:hover { color: var(--primary-color); }


/* --- 5. Print-Specific Styles --- */

@media print {
    body { padding-top: 0; }
    body > *:not(#printable-area) { display: none !important; }
    #printable-area {
        display: block !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    #printable-area table td[style*="background-color"] {
        background-color: #FFFFFF !important;
        -webkit-print-color-adjust: exact;
    }
    #printable-area table td { border: 1px solid #ccc !important; color: #000 !important; }
    #printable-area table th { color: #000 !important; }
}