/* Manpower Tracker - Approved Visual Design System Tokens */
:root {
    --navy-bg: #071C32;
    --primary-blue: #1266E3;
    --active-nav-blue: #245FB8;
    --text-ink: #111827;
    --text-muted: #6B7280;
    --page-bg: #F8F9FA;
    --card-surface: #FFFFFF;
    --border-color: #E5E7EB;
    
    --success-green: #15803D;
    --success-tint: #E8F8EE;
    
    --night-purple: #7E22CE;
    --night-tint: #F3E8FF;
    
    --warning-amber: #B45309;
    --warning-tint: #FEF3C7;
    
    --danger-red: #B91C1C;
    --danger-tint: #FEE2E2;

    --info-blue: #1D4ED8;
    --info-tint: #DBEAFE;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-ink);
    background-color: var(--page-bg);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

/* Custom Navy Sidebar */
.bg-navy {
    background-color: var(--navy-bg) !important;
}

.app-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    transition: all 0.15s ease-in-out;
}

.app-sidebar .nav-link:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.08);
}

.app-sidebar .nav-link.active {
    color: #FFFFFF !important;
    background-color: var(--active-nav-blue) !important;
    font-weight: 500;
}

/* KPI Card Styles */
.kpi-card {
    background: var(--card-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.kpi-val {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-ink);
}

.kpi-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Custom Badges & Shift Tags */
.badge-day {
    background-color: var(--success-tint);
    color: var(--success-green);
    border: 1px solid rgba(21, 128, 61, 0.2);
}

.badge-night {
    background-color: var(--night-tint);
    color: var(--night-purple);
    border: 1px solid rgba(126, 34, 206, 0.2);
}

/* Email Recipient Tag Input Component */
.recipient-tags-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-height: 42px;
}

.email-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--info-tint);
    color: var(--info-blue);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.email-tag .remove-tag {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.email-tag .remove-tag:hover {
    opacity: 1;
}

.tag-input-field {
    border: none;
    outline: none;
    flex-grow: 1;
    min-width: 160px;
    font-size: 14px;
    padding: 4px 0;
}

/* Data Table Custom Styling */
.table-custom th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    background-color: #F9FAFB;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
}

.table-custom td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 13px;
    border-bottom: 1px solid #F3F4F6;
}

.table-custom tbody tr:hover {
    background-color: #F9FAFB;
}

/* Calendar Module Grid & Uniform Cell Styling */
.calendar-header-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
    text-align: center;
}

.calendar-header-grid > div {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: 120px;
    gap: 8px;
}

.calendar-day-cell {
    background: var(--card-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    height: 120px;
    min-height: 120px;
    max-height: 120px;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    overflow: hidden;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.calendar-day-cell:hover:not(.empty-cell) {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.calendar-day-cell.empty-cell {
    background-color: #F9FAFB;
    border-color: #F3F4F6;
    opacity: 0.4;
}

.calendar-day-cell.today-cell {
    border: 2px solid var(--primary-blue);
    background-color: rgba(18, 102, 227, 0.03);
}

.calendar-day-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-ink);
    line-height: 1;
}

.calendar-day-cell.today-cell .calendar-day-num {
    color: var(--primary-blue);
}

.calendar-events-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow-y: auto;
    flex-grow: 1;
    margin-top: 4px;
    min-width: 0;
    max-height: 85px;
}

.calendar-events-list::-webkit-scrollbar {
    width: 3px;
}
.calendar-events-list::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.calendar-event-item {
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    text-decoration: none;
    line-height: 1.2;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 100%;
}



.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(18, 102, 227, 0.15);
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--active-nav-blue);
    border-color: var(--active-nav-blue);
}

/* Typography Utilities */
.fs-7 { font-size: 13px; }
.fs-8 { font-size: 12px; }
.tracking-tight { letter-spacing: -0.02em; }
.tracking-wider { letter-spacing: 0.05em; }
