/* 
 * CSS Styles for Exam Duty Allocation System
 */

/* General Styles */
body {
    padding-top: 70px;
    background-color: #f8f9fa;
}

/* Required field indication */
.required-field:after {
    content: " *";
    color: red;
}

/* Card styling */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f0f3f5;
    font-weight: 600;
}

/* Table styling */
.table th {
    background-color: #f0f3f5;
}

.table .actions {
    text-align: center;
}

/* Duty allocation styling */
.allocation-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.duty-card {
    width: 100%;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.duty-card .faculty-name {
    font-weight: 600;
    font-size: 1.1em;
}

.duty-card .department-name,
.duty-card .designation {
    color: #666;
    font-size: 0.9em;
}

.duty-actions {
    margin-top: 10px;
    text-align: right;
}

/* Report styling */
.report-header {
    margin-bottom: 20px;
}

.report-header h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
}

.report-header h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.report-header h4 {
    font-size: 16px;
    text-decoration: underline;
    margin-bottom: 10px;
}

.logo-img {
    max-width: 120px;
    height: auto;
    margin-bottom: 10px;
}

.print-date {
    font-size: 14px;
    font-style: italic;
}

.report-info {
    margin-bottom: 20px;
}

.report-table {
    width: 100%;
    margin-bottom: 20px;
}

.report-footer {
    margin-top: 50px;
    page-break-inside: avoid;
}

.signature-line {
    border-top: 1px solid #000;
    width: 200px;
    margin-top: 50px;
    margin-bottom: 10px;
}

/* Left-aligned signature line */
.col-md-6:first-child .signature-line {
    margin-left: 20px;
}

/* Right-aligned signature line */
.col-md-6:last-child .signature-line {
    margin-left: auto;
    margin-right: 20px;
}

/* Centered signature line */
.signature-line.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.report-guidelines {
    margin-top: 30px;
    border: 1px solid #dee2e6;
    padding: 15px;
    background-color: #f8f9fa;
    font-size: 12pt !important;
    line-height: 1.5; /* Optional: improves line spacing */
}


/* Print specific styles */
@media print {
    body {
        font-size: 12pt !important; /* Global print font size */
        padding-top: 0;
        background-color: #fff;
    }
    
    /* Hide everything except the report container */
    .navbar, .container > h1, .col-md-4, .no-print, footer, 
    .alert, #alertContainer, button, .btn {
        display: none !important;
    }
    
    /* Make the report take full width */
    .col-md-8 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .table {
        font-size: 12pt !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    
    .report-container {
        width: 100%;
        padding: 20px;
    }
    
    .table th, .table td {
        padding: 8px;
        font-size: 12pt !important;
        border: 1px solid #000 !important;
    }
    
    .report-guidelines {
        font-size: 12pt !important; /* Optional override if needed */
    }
    
    /* Ensure report is visible regardless of display setting */
    #reportOutput {
        display: block !important;
    }
}

/* Custom alert styling */
.alert-dismissible {
    position: relative;
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.75rem 1.25rem;
    color: inherit;
}

/* Navigation active state */
.navbar-dark .navbar-nav .active>.nav-link {
    color: #fff;
    font-weight: bold;
}

/* Dashboard Styles */
#calendarTable {
    table-layout: fixed;
}

#calendarTable th, #calendarTable td {
    text-align: center;
    height: 70px;
    vertical-align: top;
    padding: 5px;
}

#calendarTable th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.calendar-date {
    font-weight: bold;
    margin-bottom: 5px;
}

.calendar-duties {
    display: flex;
    justify-content: space-around;
    font-size: 0.8em;
}

.duty-count {
    padding: 2px 5px;
    border-radius: 3px;
}

.duty-count-fn {
    background-color: #e6f7ff;
    color: #0066cc;
}

.duty-count-an {
    background-color: #fff0e6;
    color: #cc6600;
}

.has-duties {
    font-weight: bold;
}

.current-day {
    background-color: #f0f8ff;
}

#currentMonthDisplay {
    font-size: 1.2em;
    font-weight: bold;
}

.stats-header {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.stats-label {
    font-weight: bold;
}

.stats-value {
    font-size: 1.2em;
}