/* Handle cursor for drag/drop */
.handle {
    cursor: move;
}

.ui-state-highlight {
    height: 40px;
    background-color: #e9ecef;
    border: 1px dashed #6c757d;
    margin-bottom: 5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    background: #fdfdfd;
}

.day-header {
    background: #e9ecef;
    text-align: center;
    font-weight: 600;
    padding: 6px;
    border-bottom: 1px solid #ccc;
}

.calendar-cell {
    height: 90px;
    text-align: center;
    padding: 4px;
    font-size: 0.85rem;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    position: relative;
}

.calendar-cell.muted {
    color: #bbb;
    background: #f8f9fa;
}

.calendar-cell strong {
    display: block;
    font-size: 0.9rem;
}

.calendar-cell .badge {
    font-size: 0.7rem;
}

.today::before {
    content: 'TODAY';
    position: absolute;
    top: 31px;
    left: -21px;
    background-color: #0000ff;
    color: white;
    font-size: 0.6rem;
    padding: 2px 20px;
    border: 1px solid white;
    transform: rotate(-45deg);
    transform-origin: top left;
    z-index: 10;
}

.calendar-cell {
    overflow: hidden;
}

/* Shared calendar today highlighting */
.shared-today {
    background-color: #fff3cd !important;
    opacity: 1 !important;
    outline: 2px solid black;
}


#shared-calendar-grid .fw-bold {
    background-color: #aaa;
    color: #000;
}

#shared-calendar-grid .shared-today-day {
    font-weight: 900 !important;
    font-size: 1rem !important;
    background-color: #000;
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff,
        0 0 3px rgba(13, 110, 253, 0.3);
}

/* Calendar tab badges: strong contrast on any bg */
.badge-pill.calendar-badge {
    position: relative;
    color: #000 !important;
    -webkit-text-stroke: 0;
    text-shadow: none;
    padding: 10px;
}

/*.badge-pill.calendar-badge */
.badge-label {
    white-space: nowrap;
    display: inline-block;
    padding: 1px 2px;
    border-radius: .45rem;
    background: rgba(255, 255, 255, 0.92);
    /* white translucent chip */
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.95),
        /* crisp white outline */
        0 1px 2px rgba(0, 0, 0, 0.15);
    /* subtle lift */
}

/* Horizontal scrolling tabs on narrow screens */
#navbarNav {
    position: relative;
}

#navbarNav::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

@media (max-width: 768px) {
    #navbarNav::after {
        opacity: 1;
    }
}

#tab-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

#tab-nav .nav-link {
    white-space: nowrap;
}

.badge-pill.holiday-faded .badge-label {
    opacity: 0.85;
}

@media (max-width: 576px) {
    .badge-pill.calendar-badge .badge-label {
        padding: .02rem .3rem;
    }
}

@media only screen and (max-width: 600px) {
    .nav-link {
        font-size: 14px;
    }
}

.dashed {
    border-style: dashed !important;
    border: 2px solid;
    outline: 2px dotted #000;
}