/* Common Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f5f5f5;
    min-height: 100vh;
}

/* Header Bars */
.admin-header-bar,
.customer-header-bar {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-nav,
.customer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo-link img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #00bcd4;
}

/* Container Styles */
.admin-container,
.orders-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.admin-header,
.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-controls,
.orders-controls {
    display: flex;
    gap: 1rem;
}

/* Search and Filter Controls */
input[type="text"],
select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #00bcd4;
}

/* Orders List */
.orders-list {
    display: grid;
    gap: 1rem;
}

.order-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-id {
    font-weight: 600;
    color: #333;
}

.order-status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending { background: #fff3e0; color: #f57c00; }
.status-verified { background: #e3f2fd; color: #1976d2; }
.status-shipped { background: #e8f5e9; color: #388e3c; }
.status-delivered { background: #f5f5f5; color: #616161; }

.order-info {
    display: grid;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: #333;
}

/* Buttons */
.logout-btn {
    padding: 0.5rem 1rem;
    background: #ff5252;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.logout-btn:hover {
    background: #ff1744;
}

/* No Orders Message */
.no-orders {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.no-orders .auth-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #00bcd4;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.no-orders .auth-button:hover {
    background: #008ba7;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.2);
}

/* Order Details Styles */
.order-detail-section {
    margin-bottom: 2rem;
}

.order-detail-section h3 {
    color: #333;
    margin-bottom: 1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
}

.detail-label {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

.order-items-list {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.order-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-total {
    text-align: right;
    margin-top: 1rem;
    font-weight: 600;
    color: #00bcd4;
    font-size: 1.1rem;
}

/* Status Controls */
.status-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.status-select {
    flex: 1;
}

.update-btn {
    padding: 0.5rem 1rem;
    background: #00bcd4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.update-btn:hover {
    background: #008ba7;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-header,
    .orders-header {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-controls,
    .orders-controls {
        width: 100%;
        flex-direction: column;
    }

    .nav-links {
        gap: 1rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .order-item-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Orders Section */
.orders-section {
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 1000px;
}

.orders-section h2 {
    color: #00bcd4;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.orders-container {
    min-height: 300px;
}

/* Order Card */
.order-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.order-number {
    font-weight: 600;
    color: #00bcd4;
}

.order-date {
    color: #666;
    font-size: 0.9rem;
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-pending {
    background: #fff3e0;
    color: #f57c00;
}

.status-verified {
    background: #e0f2f1;
    color: #00897b;
}

.status-shipped {
    background: #e3f2fd;
    color: #1976d2;
}

.status-delivered {
    background: #e8f5e9;
    color: #43a047;
}

.order-items {
    margin: 1rem 0;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.item-quantity {
    background: #e0f7fa;
    color: #00838f;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.item-name {
    flex: 1;
    color: #333;
}

.item-price {
    font-weight: 600;
    color: #00897b;
}

.order-total {
    text-align: right;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    font-weight: 700;
    color: #00897b;
    font-size: 1.1rem;
}

/* No Orders Message */
.no-orders-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-orders-message i {
    font-size: 4rem;
    color: #00bcd4;
    margin-bottom: 1rem;
}

.no-orders-message p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.shop-now-btn {
    display: inline-block;
    background: #00bcd4;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.shop-now-btn:hover {
    background: #00838f;
    transform: translateY(-2px);
}

/* Active Navigation */
.orders-link.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .orders-section {
        padding: 1rem;
        margin: 1rem;
    }

    .order-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .order-item {
        flex-wrap: wrap;
    }

    .item-quantity {
        order: 2;
    }

    .item-name {
        width: 100%;
        order: 1;
    }

    .item-price {
        order: 3;
    }
} 