

/* Orders Grid */
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.order-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: var(--transition);
}

.order-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.order-card.status-pending {
    border-color: var(--primary);
    border-style: dashed;
}

.order-card.status-processing {
    border-color: var(--info);
}
.order-card.status-shipped {
    border-color: var(--info);
}
.order-card.status-delivered {
    border-color: var(--success);
}

.order-card.status-cancelled {
    border-color: var(--danger);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-id {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
}

.order-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background-color: rgba(255, 159, 28, 0.1);
    color: var(--warning);
}

.status-processing {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--info);
}

.status-shipped {
    background-color: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.status-delivered {
    background-color: rgba(45, 147, 108, 0.1);
    color: var(--success);
}

.status-cancelled {
    background-color: rgba(231, 29, 54, 0.1);
    color: var(--danger);
}

.order-details {
    margin-bottom: 20px;
}

.order-customer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

.customer-info h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.customer-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.order-items {
    margin-bottom: 15px;
}

.order-items h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--gray);
}

.order-items ul {
    list-style: none;
    margin-left: 5px;
}

.order-items li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-btn {
    flex: 1;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.accept-btn {
    background-color: var(--success);
    color: white;
}

.reject-btn {
    background-color: var(--danger);
    color: white;
}

.pickup-btn {
    background-color: var(--info);
    color: white;
}

.deliver-btn {
    background-color: var(--secondary);
    color: white;
}

.map-btn {
    background-color: var(--primary);
    color: var(--dark);
}

/*
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.logo i {
    font-size: 32px;
    color: #bbdefb;
}

.logo-text h1 {
    font-size: 26px;
    margin-bottom: 5px;
    font-weight: 700;
}

.logo-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.header-controls {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #3d5afe, #304ffe);
    color: white;
    box-shadow: 0 4px 12px rgba(61, 90, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 90, 254, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

 Stats 
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.stat-icon.pending {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.stat-icon.processing {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.stat-icon.shipped {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

.stat-icon.delivered {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.stat-info h3 {
    font-size: 26px;
    margin-bottom: 4px;
}

.stat-info p {
    color: var(--text-light);
    font-weight: 500;
    font-size: 13px;
}

 Filters 
.filters-container {
    background: white;
    padding: 20px;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}

.filter-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

select, input {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    background: white;
}

select:focus, input:focus {
    outline: none;
    border-color: #3d5afe;
    box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.1);
}

 Order Rows 
.order-rows-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 40px;
}

 Full Row Order Card 
.order-row {
    background: white;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    border-left: 4px solid #2196f3;
}

.order-row:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
}

.order-row.pending {
    border-left-color: #ff9800;
}

.order-row.processing {
    border-left-color: #2196f3;
}

.order-row.shipped {
    border-left-color: #9c27b0;
}

.order-row.delivered {
    border-left-color: #4caf50;
}

.order-row.cancelled {
    border-left-color: #f44336;
}

.order-content {
    padding: 22px;
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1fr 1fr;
    gap: 25px;
    align-items: center;
}

 Order Info Column 
.order-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-id {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-date {
    color: var(--text-light);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-status {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    width: fit-content;
}

.status-pending {
    background: rgba(255, 152, 0, 0.1);
    color: #ef6c00;
}

.status-processing {
    background: rgba(33, 150, 243, 0.1);
    color: #1565c0;
}

.status-shipped {
    background: rgba(156, 39, 176, 0.1);
    color: #7b1fa2;
}

.status-delivered {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.status-cancelled {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
}

 Customer Column 
.customer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3d5afe, #9c27b0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.customer-details h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.customer-details p {
    color: var(--text-light);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

 Items Column 
.order-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.items-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 4px;
}

.item-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
    position: relative;
    transition: var(--transition);
    cursor: help;
}

.item-icon:hover {
    transform: translateY(-2px);
    background: #e3f2fd;
}

.item-icon.multiple::after {
    content: '+';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4081;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

 Amount Column 
.order-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

.payment-method {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

 Actions Column 
.order-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: var(--light-bg);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.action-btn.view:hover {
    background: #2196f3;
    color: white;
}

.action-btn.process:hover {
    background: #4caf50;
    color: white;
}

.action-btn.edit:hover {
    background: #ff9800;
    color: white;
}

.action-btn.delete:hover {
    background: #f44336;
    color: white;
}

.action-btn .tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    z-index: 100;
}

.action-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

 Order Tags 
.order-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.order-tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(33, 150, 243, 0.1);
    color: #1565c0;
}

.order-tag.express {
    background: rgba(156, 39, 176, 0.1);
    color: #7b1fa2;
}

.order-tag.gift {
    background: rgba(255, 64, 129, 0.1);
    color: #c2185b;
}

.order-tag.subscription {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.order-tag.urgent {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

 Pagination 
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.pagination-info {
    font-size: 14px;
    color: var(--text-light);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 14px;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #3d5afe, #304ffe);
    color: white;
    border-color: #3d5afe;
}

.pagination-btn:hover:not(.active) {
    background: var(--light-bg);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

 Empty State 
.no-orders {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.no-orders i {
    font-size: 64px;
    color: #cfd8dc;
    margin-bottom: 20px;
}

.no-orders h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 600;
}

.no-orders p {
    color: var(--text-light);
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

 Responsive Design 
@media (max-width: 1200px) {
    .order-content {
        grid-template-columns: 2fr 1.5fr 1fr 1fr;
        gap: 20px;
    }

    .item-icons {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .order-content {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .order-items {
        grid-column: 1 / -1;
    }

    .item-icons {
        justify-content: flex-start;
    }

    .order-amount {
        text-align: left;
    }

    .payment-method {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-controls {
        width: 100%;
        flex-direction: column;
    }

    .order-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .order-actions {
        justify-content: flex-start;
    }

    .order-amount {
        text-align: left;
    }

    .payment-method {
        justify-content: flex-start;
    }

    .pagination-container {
        flex-direction: column;
        gap: 15px;
    }

    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .stat-card {
        padding: 15px;
    }

    .order-content {
        padding: 18px;
    }

    .customer-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}*/