/* customer.css - Styles for customer account pages */

/* Variables */
:root {
    --customer-primary: #d45033;
    --customer-secondary: #222d38;
    --customer-success: #28a745;
    --customer-bg: #f8f9fa;
    --customer-card-bg: #ffffff;
    --customer-text: #333333;
    --customer-text-muted: #6c757d;
    --customer-border: #e3e6f0;
}

/* Base Styles */
.customer-page {
    background: var(--customer-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.customer-main {
    flex: 1;
    padding-bottom: 2rem;
}

/* Navbar */
.customer-navbar {
    background: var(--customer-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.customer-navbar .navbar-brand {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.customer-navbar .navbar-brand:hover {
    color: var(--customer-primary);
}

.customer-logo {
    height: 60px;
    width: 150px;
    object-fit: contain;
    
}

.customer-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.customer-navbar .nav-link:hover,
.customer-navbar .nav-link.active {
    color: var(--customer-primary);
}

.customer-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.customer-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.language-toggle-nav {
    display: flex;
    gap: 5px;
    margin-left: 1rem;
}

.language-toggle-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.language-toggle-nav a.active {
    background: var(--customer-primary);
    color: white;
}

/* Footer */
.customer-footer {
    background: var(--customer-secondary);
    color: white;
    padding: 1rem 0;
    margin-top: auto;
}

.customer-footer a {
    color: var(--customer-primary);
}

/* Auth Cards */
.auth-card {
    background: var(--customer-card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin-top: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: var(--customer-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--customer-text-muted);
}

.auth-form .form-label {
    font-weight: 500;
    color: var(--customer-text);
}

.auth-form .input-group-text {
    background: var(--customer-bg);
    border-right: none;
    color: var(--customer-text-muted);

}

.auth-form .form-control {
    border-left: none;
}

.auth-form .form-control:focus {
    box-shadow: none;
    /* border-color: var(--customer-primary); */
    border-color: rgba(205, 209, 213, 1) ;
}

.btn-auth {
    background: var(--customer-primary);
    border: none;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 1rem;
}

.btn-auth:hover {
    background: #b84328;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--customer-border);
}

.auth-footer a {
    color: var(--customer-primary);
    font-weight: 500;
}

/* Account Welcome */
.account-welcome h1 {
    color: var(--customer-secondary);
    font-weight: 700;
}

/* Stat Cards */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--customer-card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--customer-secondary);
}

.stat-info p {
    margin: 0;
    color: var(--customer-text-muted);
}

/* Account Cards */
.account-card {
    background: var(--customer-card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.account-card h4 {
    color: var(--customer-secondary);
    margin-bottom: 0.5rem;
}

.account-card p {
    color: var(--customer-text-muted);
    margin-bottom: 1rem;
}

.account-section {
    background: var(--customer-card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Order Cards */
.order-card {
    background: var(--customer-card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.order-header {
    background: linear-gradient(135deg, var(--customer-secondary), #1a2530);
    color: white;
    padding: 1rem 1.5rem;
}

.order-body {
    padding: 1.5rem;
}

.order-footer {
    padding: 1rem 1.5rem;
    background: var(--customer-bg);
    border-top: 1px solid var(--customer-border);
}

.order-item {
    font-size: 0.95rem;
}

.order-total {
    font-size: 1.1rem;
    color: var(--customer-primary);
}

.order-card-mini {
    background: var(--customer-card-bg);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--customer-primary);
}

/* Status Badges */
.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-delivering {
    background: #cce5ff;
    color: #004085;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-canceled {
    background: #f8d7da;
    color: #721c24;
}

/* Favorite Cards */
.favorite-card {
    background: var(--customer-card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s;
}

.favorite-card:hover {
    transform: translateY(-3px);
}

.favorite-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.favorite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-unfavorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #e74c3c;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.btn-unfavorite:hover {
    transform: scale(1.1);
}

.favorite-info {
    padding: 1rem;
}

.favorite-info h5 {
    color: var(--customer-secondary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.favorite-info .price {
    color: var(--customer-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Address Cards */
.address-card {
    background: var(--customer-card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    height: 100%;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.address-card.default {
    border-color: var(--customer-success);
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.address-label {
    font-weight: 600;
    color: var(--customer-secondary);
    font-size: 1.1rem;
}

.address-body {
    margin-bottom: 1rem;
}

.address-text {
    color: var(--customer-text);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.address-phone {
    color: var(--customer-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.address-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--customer-card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.empty-state h3 {
    color: var(--customer-secondary);
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--customer-primary);
    border-color: var(--customer-primary);
}

.btn-primary:hover {
    background: #b84328;
    border-color: #b84328;
}

.btn-outline-primary {
    color: var(--customer-primary);
    border-color: var(--customer-primary);
}

.btn-outline-primary:hover {
    background: var(--customer-primary);
    border-color: var(--customer-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .stat-info h3 {
        font-size: 1.5rem;
    }

    .customer-navbar .navbar-nav {
        padding-top: 1rem;
        justify-content: center;
        text-align: center;
    }

    .language-toggle-nav {
        margin: 1rem 0;
        justify-content: center;
    }
}

/* RTL Support */
[dir="rtl"] .auth-form .input-group-text {
    border-right: 1px solid var(--customer-border);
    /* border-left: none; */
}

[dir="rtl"] .auth-form .form-control {
    /* border-right: none; */
    border-left: 1px solid var(--customer-border);
}

[dir="rtl"] .order-card-mini {
    border-left: none;
    border-right: 4px solid var(--customer-primary);
}

[dir="rtl"] .btn-unfavorite {
    right: auto;
    left: 10px;
}

[dir="rtl"] .language-toggle-nav {
    margin-left: 0;
    margin-right: 1rem;
}


.navbar-nav .nav-item {
        border-right: 1px solid #b84328;
    }

     .navbar-nav .nav-item:last-child {
        border-right: none;
    }
    .navbar-nav{
        gap: 10px;
    } 

    @media (max-width: 991px) {
    #customerNav.collapse:not(.show) {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
    }
    .navbar-nav .nav-item {
        border-right: none;
    }
}


