/* Custom styles for the travel order dashboard */

/* Sidebar styles */
#sidebar {
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 80px; /* Space for the user info at bottom */
}

#sidebar.collapsed {
    width: 100px;
    overflow: hidden;
}

#sidebar.collapsed .nav-item span {
    display: none;
}

#sidebar.collapsed .nav-item i {
    margin-right: 0;
    font-size: 1.25rem;
}

/* FullCalendar Styles */
.fc {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.fc .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.fc .fc-button {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #4b5563;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.fc .fc-button:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.fc .fc-button-primary:not(:disabled).fc-button-active, 
.fc .fc-button-primary:not(:disabled):active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.fc .fc-button-primary:disabled {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #9ca3af;
}

.fc .fc-daygrid-day-number {
    color: #4b5563;
    padding: 4px;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: #eff6ff;
}

.fc .fc-daygrid-day-top {
    padding: 4px 8px;
}

.fc .fc-daygrid-event {
    margin: 2px 4px;
    padding: 2px 6px;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc .fc-daygrid-event:hover {
    opacity: 0.9;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    color: #1d4ed8;
    font-weight: 600;
}

.fc .fc-col-header-cell-cushion {
    color: #4b5563;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 8px 4px;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: #eff6ff;
}

.fc .fc-day-other .fc-daygrid-day-top {
    opacity: 0.5;
}

/* Navigation items */
.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    color: #9ca3af;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-item i {
    width: 24px;
    margin-right: 0.75rem;
    text-align: center;
}

.nav-item:hover {
    background-color: #374151;
    color: #fff;
}

.nav-item.active {
    background-color: #1f2937;
    color: #fff;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.approved {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Table styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 0.75rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    font-weight: 600;
    color: #4b5563;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tbody tr {
    transition: background-color 0.2s;
}

.data-table tbody tr:hover {
    background-color: #f9fafb;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    max-width: 32rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        left: -260px;
        z-index: 40;
        height: 100%;
    }
    
    #sidebar.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation for page transitions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-content {
    animation: fadeIn 0.3s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
