/* Custom enhancements & Print Stylesheet (Tailwind CSS Companion) */

/* Strict 8px radius for all buttons across the application */
button,
.btn,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"],
.cat-chip {
    border-radius: 8px !important;
}

@media print {
    header, #mainToolbar, .no-print, button, a[download], input, select, #offcanvasBackdrop, #offcanvasDrawer, #toastContainer {
        display: none !important;
    }
    /* Duty calendar print: hide any open dialog */
    body:not(.printing-modal) .modal-backdrop {
        display: none !important;
    }
    /* Member duty schedule print: show only the dialog contents */
    body.printing-modal main,
    body.printing-modal footer {
        display: none !important;
    }
    body.printing-modal .modal-backdrop {
        position: static !important;
        display: block !important;
        background: #ffffff !important;
        backdrop-filter: none !important;
        opacity: 1 !important;
        padding: 0 !important;
    }
    body.printing-modal .modal-panel {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        max-height: none !important;
        box-shadow: none !important;
        border: 0 !important;
        max-width: 100% !important;
    }
    body, main {
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .calendar-card {
        border: 1px solid #e2e8f0 !important;
        box-shadow: none !important;
    }
    .calendar-cell {
        min-height: 85px !important;
        border: 1px solid #cbd5e1 !important;
        page-break-inside: avoid;
    }
}

/* Subtle transitions & animations */
.modal-backdrop {
    transition: opacity 0.2s ease-in-out;
}
.modal-panel {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
