/* Admin Orders Page Styles */
.admin-orders {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
}

/* Page Header */
.page-header {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-content h1 {
    color: #333;
    font-size: 28px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-content h1 i {
    color: #007bff;
}

.header-stats {
    display: flex;
    gap: 15px;
}

.stat-item {
    text-align: center;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Filter Tabs */
.filters-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #6c757d;
}

.filter-tab:hover {
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-2px);
}

.filter-tab.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.filter-tab i {
    font-size: 16px;
}

.filter-tab .badge {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.filter-tab.active .badge {
    background: rgba(255,255,255,0.2);
}

/* Search Section */
.search-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: #6c757d;
    z-index: 2;
}

.search-box input {
    padding: 10px 15px 10px 35px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    width: 250px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #007bff;
}

.btn-refresh {
    padding: 10px 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background: #218838;
    transform: rotate(180deg);
}

/* Table Container */
.orders-table-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.admin-table th,
.admin-table td {
    padding: 15px 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tr:hover {
    background-color: #f8f9fa;
}

/* Order specific styles */
.order-number {
    width: 12%;
}

.order-id {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-id strong {
    color: #007bff;
    font-size: 14px;
}

.order-type {
    font-size: 12px;
    color: #6c757d;
    text-transform: capitalize;
}

.customer-info {
    width: 20%;
}

.customer-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.customer-email {
    font-size: 12px;
    color: #6c757d;
}

.order-amount {
    width: 12%;
}

.amount {
    font-size: 16px;
    font-weight: bold;
    color: #28a745;
}

.order-status {
    width: 15%;
}

.status-select {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.status-select:focus {
    outline: none;
    border-color: #007bff;
}

.payment-status {
    width: 15%;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-pending {
    background-color: #fff3cd;
    color: #856404;
}

.payment-paid {
    background-color: #d4edda;
    color: #155724;
}

.payment-failed {
    background-color: #f8d7da;
    color: #721c24;
}

.payment-refunded {
    background-color: #d1ecf1;
    color: #0c5460;
}

.order-date {
    width: 12%;
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.time {
    font-size: 12px;
    color: #6c757d;
}

.actions {
    width: 14%;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-action {
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-view {
    background: #17a2b8;
    color: white;
}

.btn-view:hover {
    background: #138496;
    transform: translateY(-2px);
}

.btn-edit {
    background: #ffc107;
    color: #212529;
}

.btn-edit:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Empty State */
.no-data {
    text-align: center;
    padding: 60px 20px;
}

.empty-state {
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #adb5bd;
}

.empty-state h3 {
    color: #495057;
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-state p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .search-section {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .admin-orders {
        padding: 10px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-content h1 {
        font-size: 24px;
    }
    
    .filter-tabs {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-tab {
        justify-content: center;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .admin-table {
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }
    
    .btn-action {
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .search-box input {
        width: 150px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 4px;
    }
    
    .customer-info,
    .order-date,
    .payment-status {
        display: none;
    }
}

