@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(circle at 50% 0%, #f8fafc 0%, #eef2f6 50%, #e2e8f0 100%);
    background-attachment: fixed;
    color: #1e293b;
    min-height: 100vh;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Camera Canvas Watermark Styling */
.watermark-overlay {
    background: rgba(15, 23, 42, 0.88);
    color: #10b981;
    font-family: monospace;
    border-left: 3px solid #10b981;
}

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

/* ========================================================
   ENHANCED TIMELINE ROSTER MATRIX & TIME SLOT GRID BORDERS
   ======================================================== */
.timeline-roster-table {
    border: 2px solid #94a3b8 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}
.timeline-roster-table thead th {
    border-right: 2px solid #475569 !important;
    border-bottom: 2.5px solid #1e293b !important;
}
.timeline-roster-table thead th:last-child {
    border-right: none !important;
}
.timeline-roster-table tbody td {
    border-right: 2px solid #cbd5e1 !important;
    border-bottom: 2px solid #cbd5e1 !important;
}
.timeline-roster-table tbody td:last-child {
    border-right: none !important;
}
.timeline-roster-table tbody tr:hover td {
    border-color: #94a3b8 !important;
}
.timeline-drop-zone {
    min-height: 76px;
    background-color: #ffffff;
    border-right: 2px solid #cbd5e1 !important;
    border-bottom: 2px solid #cbd5e1 !important;
    transition: all 0.18s ease;
}
.timeline-drop-zone:nth-child(even) {
    background-color: #fbfcfe;
}
.timeline-drop-zone:hover {
    background-color: #f0f7ff !important;
}
.timeline-drop-zone.drag-active {
    background-color: #e0f2fe !important;
    border-color: #2563eb !important;
    border-width: 2.5px !important;
    border-style: dashed !important;
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.35) !important;
}

.task-drag-card {
    cursor: grab;
    user-select: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.task-drag-card:active {
    cursor: grabbing;
}
.task-drag-card.is-dragging {
    opacity: 0.45;
    transform: scale(0.97);
}
.pool-drop-zone.drag-active {
    background-color: #f8fafc !important;
    border-color: #64748b !important;
    border-style: dashed !important;
}

/* ========================================================
   MODULE NAVIGATION PILL BUTTONS
   ======================================================== */
.tab-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tab-btn.tab-active {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.35) !important;
    transform: translateY(-1px);
    font-weight: 700 !important;
}
.tab-btn.tab-inactive {
    background-color: #ffffff;
    color: #475569;
    border-color: #e2e8f0;
}
.tab-btn.tab-inactive:hover {
    background-color: #f8fafc;
    color: #1d4ed8;
    border-color: #93c5fd;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.06);
}

/* ========================================================
   PRINT / PDF ENGINE STYLES (CRUCIAL FIX)
   ======================================================== */
@media print {
    /* Hide all non-printable elements */
    header,
    nav,
    #toast-container,
    .no-print,
    .modal-backdrop,
    [id^="modal-"] {
        display: none !important;
        visibility: hidden !important;
    }

    body {
        background: #ffffff !important;
        color: #0f172a !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 11pt !important;
    }

    main {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .tab-content {
        display: none !important;
    }

    /* Force tab-reports to be visible on print */
    .tab-content#tab-reports {
        display: block !important;
        visibility: visible !important;
    }

    #printable-report {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 16px !important;
        border: 1px solid #94a3b8 !important;
        box-shadow: none !important;
        visibility: visible !important;
        page-break-after: avoid;
    }

    #printable-report * {
        visibility: visible !important;
    }

    /* High quality table borders for printed hardcopy */
    #printable-report table {
        border-collapse: collapse !important;
        width: 100% !important;
    }

    #printable-report th, 
    #printable-report td {
        border: 1.5px solid #64748b !important;
    }
}
