/* Custom Styles */
body {
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
}

/* Sidebar Scroll */
#sidebar::-webkit-scrollbar {
    width: 4px;
}

#sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

/* Card Hover Effect */
.hover-card {
    transition: all 0.2s ease;
}

.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-available {
    background: #dcfce7;
    color: #16a34a;
}

.status-in-mission {
    background: #dbeafe;
    color: #2563eb;
}

.status-in-rental {
    background: #f3e8ff;
    color: #7c3aed;
}

.status-under-maintenance {
    background: #fef3c7;
    color: #d97706;
}

.status-out-of-service {
    background: #fee2e2;
    color: #dc2626;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

.table-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-container th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: right;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

.table-container td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.table-container tr:hover {
    background: #f8fafc;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    #sidebar {
        transform: translateX(100%);
    }
    
    #sidebar.active {
        transform: translateX(0);
    }
    
    .mr-64 {
        margin-right: 0;
    }
}

/* Print Styles */
@media print {
    #sidebar,
    header,
    .no-print {
        display: none !important;
    }
    
    .mr-64 {
        margin-right: 0 !important;
    }
    
    body {
        background: white !important;
    }
    
    .bg-white {
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
    }
}