/* CALENDAR GRID */
#ncp-calendar-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

#ncp-cal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
}

.ncp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.ncp-day {
    min-height: 90px;
    padding: 5px;
    position: relative;
	border: 1px solid rgba(255, 255, 255, 0.11);
}

.ncp-day.empty {
    background: #f2f2f2;
    opacity: 0.4;
}

.ncp-date {
    font-weight: bold;
    margin-bottom: 5px;
}

.ncp-ev {
    font-size: 13px;
    background: #333333;
    color: white;
    padding: 3px 5px;
    margin: 3px 0;
    border-radius: 3px;
    cursor: pointer;
}

/* MODAL */
#ncp-modal.ncp-hidden {
    display: none;
}

#ncp-modal {
    position: fixed;
    left:0; top:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.6);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.ncp-modal-content {
    background:black;
    padding:20px;
    width:500px;
    max-width:90%;
    border-radius:8px;
    position:relative;
	border: 1px solid rgb(230,199,123);
}

.ncp-close {
    position:absolute;
    right:20px;
    top: 10px;
    cursor:pointer;
    font-size:30px;
	color: rgb(230,199,123);
}

.ncp-ticket {
    display:inline-block;
    padding:8px 16px;
    background: rgb(230,199,123);
    color:black;
    border-radius:4px;
    text-decoration:none;
    font-weight:bold;
}

/* NIFTY UPCOMING DESIGN */
.nifty-upcoming-table {
    width: 100%;
    color: #ffffff;
    border-collapse: collapse;
    letter-spacing: 1px;
    line-height: 24px;
}

.nifty-upcoming-table th,
.nifty-upcoming-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #333;
}

.nifty-upcoming-table a {
    color: #ffffff;
    text-decoration: none;
}

/* BUTTONS */
.nifty-upcoming-table .btn {
    padding: 5px 12px;
    background-color: rgb(230,199,123);
    border-radius: 35px;
    text-transform: uppercase;
    font-size: 12px;
	color: black !important;
}

.nifty-upcoming-table .btn.disabled {
    background-color: #555 !important;
    cursor: default;
    pointer-events: none;
}

.nifty-upcoming-table .btn-primary {
    color: #fff;
}

/* --------------------------------------
   MOBILE RESPONSIVE STYLES
-------------------------------------- */
@media (max-width: 768px) {

    /* CALENDAR HEADER */
    #ncp-cal-header {
        font-size: 18px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }

    /* CALENDAR GRID STACKS INTO 1 COLUMN */
    .ncp-grid {
        display: block;
    }

    .ncp-day {
        margin-bottom: 12px;
        min-height: auto;
        padding: 12px;
        border-radius: 6px;
    }

    .ncp-date {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .ncp-ev {
        font-size: 15px;
        padding: 6px 8px;
        margin: 6px 0;
    }
}

/* VERY SMALL SCREENS (phones under 400px) */
@media (max-width: 400px) {
    #ncp-cal-header {
        font-size: 16px;
    }

    .ncp-date {
        font-size: 16px;
    }

    .ncp-ev {
        font-size: 14px;
        padding: 5px 7px;
    }
}

/* MOBILE: Hide days with no events */
@media (max-width: 768px) {
    .ncp-day:not(:has(.ncp-ev)) {
        display: none !important;
    }
}
