/* Authentication System Styles */
.auth-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #F58731;
    margin-bottom: 10px;
    font-size: 28px;
}

.auth-header p {
    color: #666;
    font-size: 16px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #F58731;
}

.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #F58731, #6E3102);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.auth-btn:hover {
    transform: translateY(-2px);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #F58731;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 10000;
    border-left: 4px solid #F58731;
    animation: slideIn 0.3s ease;
}

.notification-success { 
    border-left-color: #28a745; 
}

.notification-error { 
    border-left-color: #dc3545; 
}

.notification-info { 
    border-left-color: #F58731; 
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Profile Page Styles */
.profile-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
}

.profile-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.profile-section h2 {
    color: #F58731;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    margin-bottom: 15px;
}

.info-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.info-value {
    color: #666;
}

.edit-btn {
    background: #F58731;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.edit-btn:hover {
    background: #e07a2b;
}

/* Address Cards */
.address-card {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.address-card.default {
    border-color: #F58731;
    background: #fff9f5;
}

.address-type {
    background: #F58731;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.address-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.address-action-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
}

.address-action-btn:hover {
    color: #F58731;
}

/* Orders Page */
.orders-list {
    display: grid;
    gap: 15px;
}

.order-card {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    background: white;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.order-items {
    margin-top: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.order-item:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        margin: 20px;
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .profile-container {
        margin: 20px;
        padding: 15px;
    }
    
    .order-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}
/* Orders Page Styles */
.page-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.orders-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e1e1e1;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #F58731;
    color: #F58731;
}

.filter-btn.active {
    background: #F58731;
    color: white;
    border-color: #F58731;
}

.search-orders {
    position: relative;
    min-width: 250px;
}

.search-orders input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 20px;
    font-size: 14px;
}

.search-orders i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

/* Order Cards */
.order-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.order-info {
    flex: 1;
}

.order-number {
    margin-bottom: 8px;
}

.order-number strong {
    font-size: 18px;
    color: #333;
}

.order-date {
    display: block;
    color: #666;
    font-size: 14px;
    margin-top: 4px;
}

.order-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.order-status-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.view-details-btn {
    background: #F58731;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.view-details-btn:hover {
    background: #e07a2b;
}

/* Order Preview */
.order-preview {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-items-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.preview-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.item-name {
    font-size: 14px;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-quantity {
    color: #666;
    font-size: 12px;
}

.preview-more {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.order-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Order Details Modal */
.large-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e1e1e1;
}

.modal-header h2 {
    color: #333;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

/* Order Details Styles */
.order-details-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.details-section h3 {
    color: #F58731;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.detail-item span {
    color: #666;
}

.shipping-address {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    line-height: 1.6;
}

.order-items-detailed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detailed-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.detailed-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.item-category {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
}

.item-meta {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.item-total {
    font-weight: 600;
    color: #F58731;
    font-size: 16px;
}

.order-summary-detailed {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e1e1e1;
}

.summary-row.total {
    border-bottom: none;
    border-top: 2px solid #e1e1e1;
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
    padding-top: 15px;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .orders-filter {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .search-orders {
        min-width: auto;
    }
    
    .order-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .order-status-section {
        align-items: flex-start;
    }
    
    .order-preview {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .order-items-preview {
        flex-wrap: wrap;
    }
    
    .order-actions {
        justify-content: center;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .detailed-item {
        flex-direction: column;
        text-align: center;
    }
}