
/* ========================================
   NEPALI BAISAKH 2083 CALENDAR
   Complete Stylesheet
======================================== */

/* Main calendar container */
.nbc-calendar {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Consistent box sizing */
.nbc-calendar *,
.nbc-calendar *::before,
.nbc-calendar *::after {
    box-sizing: border-box;
}

/* ========================================
   CALENDAR TITLE
======================================== */

.nbc-title {
    text-align: center;
    margin-bottom: 20px;
}

.nbc-title h2 {
    margin: 0 0 6px;
    color: #166534;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.nbc-title p {
    margin: 0;
    color: #666666;
    font-size: 14px;
    text-align: center;
}

/* ========================================
   CALENDAR TABLE
======================================== */

.nbc-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
}

/* Weekday headings */
.nbc-table thead th {
	height: 85px;
    padding: 12px 4px;
    background: #f2f2f2;
    color: #000000CC;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 700;
}

/* All calendar cells */
.nbc-table tbody td {
    height: 85px;
    padding: 8px 5px;
    border: 1px solid #e5e7eb;
    text-align: center;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

/* Empty calendar cells */
.nbc-table tbody td.nbc-empty {
    background: #f9fafb;
}

//--
.nbc-table th,
.nbc-table td {
    text-align: center;
    vertical-align: middle;
}

/* Center date numbers */
.nbc-date {
    text-align: center;
    font-weight: 700;
}
/* ========================================
   DATE NUMBERS
======================================== */

.nbc-date {
    margin: 0;
    color: #000000CC;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

/* ========================================
   SUNDAY HIGHLIGHT
======================================== */

.nbc-table tbody td:nth-child(7n + 1) {
    background: #fff1f2;
}

.nbc-table tbody td:nth-child(7n + 1) .nbc-date {
    color: #dc2626;
}

/* ========================================
   SATURDAY HIGHLIGHT
======================================== */

.nbc-table tbody td:nth-child(7n) {
    background: #fff1f2;
}

.nbc-table tbody td:nth-child(7n) .nbc-date {
    color: #dc2626;
}

/* ========================================
   HOLIDAY STYLING
======================================== */

.nbc-table tbody td.nbc-holiday {
    background: #fff1f2;
}

/* Holiday date numbers */
.nbc-table tbody td.nbc-holiday .nbc-date {
    color: #dc2626;
}

/* Holiday names */
.nbc-festival {
    margin-top: 6px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}

/* ========================================
   TODAY HIGHLIGHT
======================================== */

.nbc-table tbody td.nbc-today {
    outline: 3px solid #16a34a;
    outline-offset: -3px;
    background: #f0fdf4 !important;
}

/* Today's date number */
.nbc-table tbody td.nbc-today .nbc-date {
    color: #15803d !important;
    font-weight: 700;
}

/* ========================================
   CALENDAR FOOTER
======================================== */

.nbc-footer {
    margin-top: 15px;
    color: #666666;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

/* ========================================
   MOBILE RESPONSIVE DESIGN
======================================== */

@media screen and (max-width: 600px) {

    .nbc-calendar {
        width: 100%;
        margin: 12px auto;
        padding: 8px;
        border-radius: 8px;
    }

    .nbc-title {
        margin-bottom: 15px;
    }

    .nbc-title h2 {
        font-size: 23px;
    }

    .nbc-title p {
        font-size: 12px;
    }

    .nbc-table thead th {
        padding: 8px 1px;
        font-size: 11px; 
    }

    .nbc-table tbody td {
        height: 65px;
        padding: 5px 2px;
    }

    .nbc-date {
        font-size: 14px;
    }

    .nbc-festival {
        margin-top: 4px;
        font-size: 10px;
        line-height: 1.3;
    }

    .nbc-footer {
        font-size: 11px;
    }
}

/* ========================================
   EXTRA SMALL SCREENS
======================================== */

@media screen and (max-width: 360px) {

    .nbc-calendar {
        padding: 4px;
    }

    .nbc-table thead th {
        padding: 6px 0;
        font-size: 10px;
    }

    .nbc-table tbody td {
        height: 58px;
        padding: 3px 1px;
    }

    .nbc-date {
        font-size: 12px;
    }

    .nbc-festival {
        font-size: 9px;
        line-height: 1.2;
    }
    //----
    
/* Force Saturday and Sunday dates to red */
.nbc-calendar .nbc-table tbody td.nbc-saturday .nbc-date,
.nbc-calendar .nbc-table tbody td:nth-child(7n) .nbc-date,
.nbc-calendar .nbc-table tbody td:nth-child(7n + 1) .nbc-date {
    color: #dc2626 !important;
}

/* Force holiday date numbers and festival names to red */
.nbc-calendar .nbc-table tbody td.nbc-holiday .nbc-date,
.nbc-calendar .nbc-table tbody td.nbc-holiday .nbc-festival,
.nbc-calendar .nbc-table tbody td .nbc-festival {
    color: #dc2626 !important;
}

/* Keep all date numbers and festival names centered */
.nbc-calendar .nbc-table tbody td .nbc-date,
.nbc-calendar .nbc-table tbody td .nbc-festival {
    text-align: center !important;
}

/* Keep today's date green */
.nbc-calendar .nbc-table tbody td.nbc-today .nbc-date {
    color: #15803d !important;
}

}