:root {
    --primary: #006699;
    --primary-dark: #e65c00;
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: #e6e6e6;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
}

.account-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.header-top {
    margin-bottom: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    background: white;
    border: 1px solid var(--border-color);
}

.back-button:hover {
    color: var(--primary);
    background: rgba(255, 106, 0, 0.1);
    border-color: var(--primary);
    transform: translateX(-5px);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    font-weight: bold;
}

.profile-info h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-weight: 500;
}

.account-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.account-menu {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    height: fit-content;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.menu-item.active {
    background: var(--primary);
    color: white;
}

.menu-item:not(.active):hover {
    background: rgba(255, 106, 0, 0.1);
    color: var(--primary);
}

.menu-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.account-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 30px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.content-title {
    font-size: 20px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.orders-list {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
}

.order-images {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .order-image {
        width: 60px;
        height: 60px;
    }
}

.order-item:last-child {
    border-bottom: none;
}

.order-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.order-info h3 {
    margin-bottom: 8px;
}

.order-meta {
    color: var(--text-secondary);
    font-size: 14px;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.status-delivered {
    background: #dcfce7;
    color: #10b981;
}

.status-pending {
    background: #fff7ed;
    color: #f97316;
}

@media (max-width: 992px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-menu {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }

    .menu-item {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .account-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-status {
        justify-content: center;
    }

    .order-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .order-image {
        margin: 0 auto;
    }
}

.orders-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Styles pour la liste d'envies */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.wishlist-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.wishlist-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.wishlist-image {
    position: relative;
    padding-top: 100%;
}

.wishlist-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-content {
    padding: 15px;
}

.wishlist-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 18px;
    margin: 8px 0;
}

.wishlist-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.wishlist-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
}

/* Styles pour le formulaire d'informations */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
    outline: none;
}

.full-width {
    grid-column: 1 / -1;
}

/* Styles pour les notifications */
.notification-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.icon-order {
    background: rgba(255, 106, 0, 0.1);
    color: var(--primary);
}

.icon-promo {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.notification-content {
    flex: 1;
}

.notification-time {
    color: var(--text-secondary);
    font-size: 14px;
}

.notification-unread {
    background: #f8f9fa;
    position: relative;
}

.notification-unread::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 4px;
    height: 40%;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-input[readonly] {
    background-color: var(--bg-light);
    cursor: default;
    border-color: transparent;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

#editButton {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.btn-outline {
    background: white;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Ajoutez cette règle CSS pour le champ mot de passe */
.form-input[type="password"] {
    letter-spacing: 2px;
    font-family: monospace;
}

/* Modifiez la règle form-grid pour avoir 3 colonnes dans la dernière rangée */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Pour les écrans plus petits */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Style pour le conteneur du champ mot de passe */
.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

/* Style pour l'icône d'œil */
.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 0;
}

.password-toggle:hover {
    color: var(--primary);
}

/* Ajuster le padding du champ mot de passe pour l'icône */
.password-field .form-input {
    padding-right: 35px;
}

.empty-wishlist {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.empty-wishlist i {
    margin-bottom: 15px;
}

.empty-wishlist p {
    margin-bottom: 20px;
}

.empty-state {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.empty-state i {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.empty-state .text-sm {
    font-size: 0.875rem;
    opacity: 0.8;
}

.empty-state .btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.empty-state .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.order-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.order-details {
    margin-left: auto;
    text-align: right;
    margin-top: 0.5rem;
}

.order-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.order-date {
    font-size: 0.9em;
    color: var(--text-muted);
}

.order-status {
    font-weight: 500;
}

.status-delivered {
    color: #22c55e;
}

.status-pending {
    color: #f97316;
}

.wishlist-card {
    transition: all 0.3s ease;
}

.delete-wishlist {
    transition: all 0.2s ease;
}

.delete-wishlist:hover {
    color: #ef4444;
    border-color: #ef4444;
}

.success-toast, .error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.success-toast {
    background: #22c55e;
    color: white;
}

.error-toast {
    background: #ef4444;
    color: white;
}

.success-toast i, .error-toast i {
    font-size: 1.25rem;
} 
