body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.container {
    /* max-width: 1200px; */
    margin: 0 auto;
}

.header {
    background-color: #f4f4f4;
    padding: 1rem;
    margin-bottom: 2rem;
}

.footer {
    background-color: #f4f4f4;
    padding: 1rem;
    margin-top: 2rem;
    text-align: center;
}

.calendar-container {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#calendar {
    height: 800px;
}

.fc-event {
    cursor: pointer;
    padding: 2px 4px;
}

.fc-event-title {
    white-space: normal;
    overflow: visible;
}

nav {
    margin-top: 10px;
}

nav a {
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    margin: 0 5px;
}

nav a:hover {
    color: #0066cc;
    text-decoration: underline;
} 

/* Add these styles for the legend */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.color-box {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: inline-block;
}

/* Make events more readable */
.fc-event {
    padding: 4px 6px;
}

.fc-event-title {
    font-weight: 500;
}

/* Improve hover state */
.fc-event:hover {
    filter: brightness(0.9);
} 

/* Reports Styles */
.reports-container {
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Stats Cards */
.stats-section {
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.stat-card {
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card h4 {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 10px 0 0 0;
}

/* Breakdown Sections */
.breakdown-section {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.breakdown-section h3 {
    color: #343a40;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.breakdown-item {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease;
}

.breakdown-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.breakdown-label {
    font-weight: 500;
    color: #495057;
}

.breakdown-value {
    background: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* DataTable Styling */
.tasks-table-section {
    margin-top: 40px;
}

.tasks-table-section h3 {
    color: #343a40;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* DataTables Custom Styling */
.dataTables_wrapper {
    padding: 0;
    margin-top: 20px;
}

table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100% !important;
    margin: 16px 0 !important;
}

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 24px;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    margin-left: 8px;
    transition: border-color 0.2s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: #4dabf7;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.1);
}

/* Table Headers */
table.dataTable thead th {
    background: #f8f9fa;
    padding: 16px 12px;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

table.dataTable thead th select {
    width: 100%;
    padding: 6px;
    margin-top: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #495057;
    background-color: white;
}

/* Table Body */
table.dataTable tbody td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

table.dataTable tbody tr {
    background-color: white;
    transition: background-color 0.2s ease;
}

table.dataTable tbody tr:hover {
    background-color: #f8f9fa;
}

/* Export Buttons */
.dt-buttons {
    margin-bottom: 20px;
}

.dt-button {
    padding: 8px 16px;
    margin-right: 8px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    color: #495057;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dt-button:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #228be6;
}

/* Pagination */
.dataTables_paginate {
    margin-top: 20px !important;
}

.dataTables_paginate .paginate_button {
    padding: 6px 12px !important;
    margin: 0 4px !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    background: white !important;
}

.dataTables_paginate .paginate_button:hover {
    background: #e9ecef !important;
    border-color: #ced4da !important;
}

.dataTables_paginate .paginate_button.current {
    background: #228be6 !important;
    border-color: #228be6 !important;
    color: white !important;
}

/* Action Links */
table.dataTable tbody td a {
    color: #228be6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

table.dataTable tbody td a:hover {
    color: #1971c2;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reports-container {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .breakdown-grid {
        grid-template-columns: 1fr;
    }
    
    .dataTables_wrapper .dataTables_filter {
        text-align: left;
        margin-top: 12px;
    }
    
    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .dt-buttons {
        text-align: center;
    }
    
    .dt-button {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Loading State */
.dataTables_processing {
    background: rgba(255,255,255,0.9) !important;
    color: #495057 !important;
    border: none !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1) !important;
} 

/* Totals Section */
.totals-section {
    margin: 40px 0;
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
}

.totals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.total-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.total-card h4 {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.total-value {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 10px 0 0 0;
}
