/**
 * Print Styles for Rajasthan Government Calendar
 */

@media print {

    /* Hide unnecessary elements */
    .navbar,
    .header-controls,
    .gov-footer,
    .btn,
    button,
    .modal,
    .tooltip,
    [data-bs-toggle],
    .no-print {
        display: none !important;
    }

    /* Reset colors for printing */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }

    /* Header adjustments */
    .gov-header {
        background: white !important;
        color: black !important;
        border-bottom: 2px solid #000;
    }

    .gov-title {
        color: black !important;
        text-shadow: none !important;
    }

    .gov-subtitle {
        color: #333 !important;
    }

    /* Calendar grid for print */
    .calendar-day {
        border: 1px solid #333 !important;
        min-height: 100px !important;
        page-break-inside: avoid;
    }

    .calendar-day.holiday-gazetted {
        background: #ffcccc !important;
        color: black !important;
    }

    .calendar-day.holiday-restricted {
        background: #ffe6cc !important;
        color: black !important;
    }

    .calendar-day.holiday-observance {
        background: #cce6ff !important;
        color: black !important;
    }

    .calendar-day.holiday-festival {
        background: #ffffcc !important;
        color: black !important;
    }

    .calendar-day.weekend-holiday {
        background: #f3e8ff !important;
        color: black !important;
        border-left: 3px solid #a855f7 !important;
    }

    .calendar-day.today {
        border: 2px solid #000 !important;
        font-weight: bold !important;
    }

    .day-number,
    .hindu-info,
    .holiday-name,
    .festival-name {
        color: black !important;
    }

    /* Ensure legend prints */
    .legend-badge {
        display: inline-block !important;
        margin-right: 15px;
        margin-bottom: 10px;
    }

    /* Page breaks */
    .calendar-grid {
        page-break-after: auto;
    }

    .table {
        page-break-inside: auto;
    }

    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    /* Print header */
    @page {
        margin: 1cm;
    }

    /* Ensure emblem prints */
    .emblem-logo {
        filter: none !important;
    }
}