/* Order Cards */
.order-card {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
}

.order-card:hover {
    background-color: #f8f9fa;
}

.order-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Order Summary Section */
.order-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.order-time {
    color: #6b7280;
    font-size: 0.875rem;
}

.order-title {
    font-weight: 500;
    color: #111827;
}

.order-subtitle {
    color: #6b7280;
    margin-left: 0.5rem;
}

/* Order Details */
.order-details {
    font-size: 0.95rem;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Status Badges */
.badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
}

.badge.status-preparing {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.2);
}

.badge.status-prepared {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.2);
}

.badge.status-delivered {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-light {
    padding: 0.5rem;
    border-radius: 6px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.btn-light:hover {
    background: #e5e7eb;
}

/* Keep existing pagination styles */
.pagination-wrapper {
    padding: 1.0rem;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .pagination-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.pagination-container .pagination {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination-container .pagination .page-item {
    margin: 0;
}

.pagination-container .pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.25rem;
    border-radius: 0.25rem;
    border: 1px solid #e5e7eb;
    background-color: white;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-container .pagination .page-item.active .page-link {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

.pagination-container .pagination .page-item.disabled .page-link {
    background-color: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.pagination-container .pagination .page-item .page-link:hover:not(.disabled):not(.active) {
    background-color: #f3f4f6;
    color: #374151;
}

.showing-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.showing-text span {
    font-weight: 600;
    color: #374151;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .showing-text {
        text-align: center;
    }
}

.pagination-container .pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    border-radius: 0.25rem;
    border: 1px solid #e5e7eb;
    background-color: white;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Modal styling */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.modal-header .modal-title {
    font-weight: 500;
    font-size: 1.1rem;
}

.modal-header .btn-close {
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body .form-select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
}

.modal-footer .btn {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: 8px;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.modal-footer .btn-secondary {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: none;
    color: #4b5563;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modal-footer .btn-secondary:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

/* Status Options in Modal */
.status-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.status-option:hover {
    background: #f9fafb;
}

.status-option input[type="radio"] {
    display: none;
}

.status-option input[type="radio"]:checked + .status-label {
    font-weight: 600;
}

.status-option input[type="radio"]:checked + .status-label::before {
    content: '✓';
    margin-right: 0.5rem;
}

.status-label {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
}

.status-label.preparing {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.status-label.prepared {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.status-label.delivered {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Update delete button in modal */
.modal-footer .btn-danger,
#deleteModal .modal-footer .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.modal-footer .btn-danger:hover,
#deleteModal .modal-footer .btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Modal Delete Button */
#deleteModal .modal-footer .btn.btn-danger,
.modal-content .modal-footer .btn.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2) !important;
}

#deleteModal .modal-footer .btn.btn-danger:hover,
.modal-content .modal-footer .btn.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

/* Filter Styles */
.filters-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.filters-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #6b7280;
    z-index: 10;
}

.form-control,
.form-select {
    height: 2.75rem;
    padding-left: 2.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    width: 100%;
    font-size: 0.95rem;
    transition: all 0.2s;
    background-color: #f9fafb;
}

.form-control:focus,
.form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
}

.filter-actions .btn {
    padding: 0.5rem 1rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.filter-actions .btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.filter-actions .btn-secondary {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: none;
    color: #4b5563;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filters-wrapper {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .filters-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-group {
        width: 100%;
    }

    .form-control,
    .form-select {
        height: 2.5rem;  /* Slightly smaller on mobile */
        font-size: 0.9rem;
    }
    
    .filter-actions {
        width: 100%;
        margin-top: 0.5rem;
        display: grid;
        grid-template-columns: 1fr 1fr;  /* Two buttons side by side */
        gap: 0.5rem;
    }
    
    .filter-actions .btn {
        width: 100%;
        height: 2.5rem;
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    /* Make icons slightly smaller on mobile */
    .input-icon {
        font-size: 0.9rem;
    }

    /* Adjust icon spacing */
    .btn i {
        margin-right: 0.25rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .filters-wrapper {
        padding: 0.75rem;
    }

    .filter-actions {
        grid-template-columns: 1fr;  /* Stack buttons on very small screens */
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0.5rem;
    }

    /* Filter Section */
    .filters-wrapper {
        background: white;
        padding: 1rem;
        border-radius: 12px;
        margin-bottom: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .filters-form {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-group {
        width: 100%;
    }

    .input-group {
        background: #f9fafb;
        border-radius: 8px;
        overflow: hidden;
    }

    .input-icon {
        left: 0.75rem;
        color: #6b7280;
    }

    .form-control,
    .form-select {
        height: 40px;
        background: transparent;
        border: 1px solid #e5e7eb;
        padding: 0.5rem 0.75rem 0.5rem 2.25rem;
        font-size: 0.875rem;
    }

    .filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .filter-actions .btn {
        height: 40px;
        font-size: 0.875rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
}

/* Update only the order listing styles */
.orders-list .order-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.orders-list .order-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.orders-list .order-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.orders-list .order-time {
    color: #6b7280;
    font-size: 0.95rem;
}

.orders-list .order-title {
    color: #111827;
    font-weight: 500;
    font-size: 0.95rem;
}

.orders-list .order-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Mobile Responsiveness for order list */
@media (max-width: 640px) {
    .orders-list .order-header {
        flex-direction: column;
        gap: 8px;
    }

    .orders-list .order-summary {
        width: 100%;
    }

    .orders-list .action-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Order Details Styling */
.orders-list .order-details {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 0;
}

.orders-list .details-row {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
}

.orders-list .details-row:last-child {
    border-bottom: none;
}

.orders-list .details-row strong {
    color: #6b7280;
    width: 160px;
    flex-shrink: 0;
    font-weight: 500;
}

.orders-list .details-row span {
    color: #111827;
}

/* Mobile Responsiveness for details */
@media (max-width: 640px) {
    .orders-list .details-row {
        flex-direction: column;
        gap: 4px;
    }

    .orders-list .details-row strong {
        width: 100%;
        margin-bottom: 4px;
    }
}