/* Custom styles for Delivery Management System */

/* RTL Support */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar */
.sidebar {
    z-index: 40;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    main {
        margin-right: 0 !important;
    }

    .sidebar {
        display: none;
    }

    .sidebar.open {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        z-index: 50;
    }
}

/* Table responsiveness */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Card hover effects */
.hover-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Alert animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-card {
    animation: slideIn 0.3s ease-out;
}

/* Modal backdrop */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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

/* Form focus states */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Button transitions */
button {
    transition: all 0.2s;
}

button:active {
    transform: scale(0.98);
}

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

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Print styles */
@media print {
    .sidebar, nav, header button, .no-print {
        display: none !important;
    }

    main {
        margin: 0 !important;
    }
}
