

body{
    background-color: rgb(248, 248, 248);
    margin: 0;
    text-align: right;
    font-family: "Alexandria", sans-serif;
}

nav{
    padding: 10px 5%;
    width: 90%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, rgb(9, 140, 196),rgb(11, 209, 136));
    /* border-bottom: 1px solid lightgray; */
    z-index: 100;
    color: white;
}

#vertnav{
    position: fixed;
    right: 0px;
    width: 200px;
    padding: 10px;
    background-color: white;
    text-align: right;
    top: 50px;
    height: 100%;
    z-index: 90;
}

#vertnav a{
    display: block;
    padding: 15px 5px;
    margin: 3px 0px;
    color: black;
    text-decoration: none;
    border-radius: 4px;
    border-bottom: 1px solid lightgray;
    transition: 0.3s;

}
#vertnav a.selected, #vertnav a:hover{
    background-color: rgba(57, 220, 158, 0.595);
    transition: 0.3s;
}


#voile{
    /* background-color: rgba(0, 0, 0, 0.62); */

    background-color: rgba(0, 0, 0, 0.4); /* un peu moins opaque */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* pour Safari */


    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 130;
    /* display: none; */
}




#voile-vertnav{
    background-color: rgba(30, 30, 30, 0.763);
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 80;
    top: 30px;
    display: none;
}
#burger{
    font-size: 26px;
    cursor: pointer;
}
#burger i:hover{
    text-shadow:1px 1px 1px rgba(0, 0, 0, 0.459);
    transition: 0.3s;
}

#content-admin{
    margin-top: 60px;
    margin-right: 240px;
    margin-left: 20px;
    background-color: white;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0px 0px 10px rgb(231, 231, 231);
}


#vertnav .img-container{
    /* padding:5px 10px; */

    width: 70px;
    margin: 20px auto;
    height: 70px;
    border-radius: 50%;
    /* 1. On active Flexbox */
    display: flex;
    
    /* 2. On centre horizontalement */
    justify-content: center;
    
    /* 3. On centre verticalement */
    align-items: center;
    
    /* 4. On cache ce qui dépasse (sécurité) */
    overflow: hidden;
    
}

.spinner-container{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 10px;
}

#vertnav .img-container img {
    /* 1. On force l'image à remplir TOUT l'espace du conteneur */
    width: 100%;
    height: 100%;
    
    /* 2. C'est maintenant que le cover magique opère sans déformer */
    object-fit: cover !important;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 28px;
    color: #2c3e50;
    font-weight: 700;
}

.dashboard-header p {
    color: #7f8c8d;
    font-size: 15px;
    margin-top: 5px;
}

/* Grid des Statistiques (Responsif) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Style Général des Cards */
.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02); /* Ombre très subtile */
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* Style des icônes à l'intérieur des cards */
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.stat-info h3 {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-info .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

/* Couleurs personnalisées pour chaque type de card (Accents colorés) */
.card-views .stat-icon { background-color: rgba(52, 152, 219, 0.1); color: #3498db; }
.card-orders .stat-icon { background-color: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.card-products .stat-icon { background-color: rgba(155, 89, 182, 0.1); color: #9b59b6; }
.card-revenue .stat-icon { background-color: rgba(241, 196, 15, 0.1); color: #f1c40f; }

/* Section Graphique Chart.js */
.chart-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #eaeaea;
}

.chart-header {
    margin-bottom: 20px;
}

.chart-header h2 {
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-header h2 i {
    color: #3498db;
}

/* Conteneur pour forcer la hauteur du graphique */
.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
}















.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* --- BLOCK HEADER (Bannière + Logo) --- */
.profile-header-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
    margin-bottom: 25px;
}

/* Zone de la bannière */
.banner-wrapper {
    position: relative;
    height: 250px;
    width: 100%;
    cursor: pointer;
    background-color: #ddd;
}

.profile-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

#upanim{
    text-align: left;
    margin: 10px 0px;

}
#upanim .flex{
    display: flex;
    justify-content: left;
    gap: 20px;
}
#upanim > div:nth-child(1){
    
    display: none;
    border: 1px solid rgb(9, 140, 196);
    background-color: #e6f2fa;   
}

#upanim > div:nth-child(2){
    display: none;
    border: 1px solid rgb(11, 209, 136);
}
/* Overlay au survol de la bannière (Style LinkedIn/FB) */
.banner-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    gap: 8px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.banner-wrapper:hover .banner-upload-overlay {
    opacity: 1;
}

.banner-wrapper:hover .profile-banner {
    filter: blur(2px);
}

/* Zone positionnement Logo et Titre */
.profile-meta-wrapper {
    position: relative;
    padding: 0 30px 25px 30px;
    display: flex;
    align-items: flex-end;
    justify-content: right;
    gap: 45px;
}

/* Le conteneur du logo qui fait l'effet de chevauchement sur la bannière */
.logo-outer-container {
    position: relative;
    margin-top: -80px; /* Remonte le logo sur la bannière */
    z-index: 2;
}

.logo-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%; /* Style LinkedIn/FB moderne */
    border: 5px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    direction: rtl;
}

.profile-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

/* Overlay au survol du logo */
.logo-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-wrapper:hover .logo-upload-overlay {
    opacity: 1;
}

.logo-wrapper:hover .profile-logo {
    filter: blur(1px);
}

/* Infos Textuelles à côté du logo */
.profile-title-info {
    padding-bottom: 10px;
}
.profile-title-info input{
    width: 300px;
    padding: 10px;
    border: none !important;
    font-size: 22px;
    text-align: right;
}
.profile-title-info h2 {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 700;
}

.profile-title-info .profile-category {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
}

/* --- BLOCK PRESENTATION (Présentation / Bio) --- */
.profile-body-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 18px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: #3498db;
}

/* Bouton Modifier élégant */
.btn-edit-bio {
    background: transparent;
    border: 1px solid #3498db;
    color: #3498db;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-edit-bio:hover {
    background: #3498db;
    color: #fff;
}

.profile-bio-content p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 600px) {
    .profile-meta-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 15px 20px 15px;
    }

    .logo-outer-container {
        margin-top: -70px;
    }

    .profile-title-info {
        padding-bottom: 0;
    }
    
    .banner-wrapper {
        height: 150px;
    }
}



/* Container principal du statut */
.status-profile {
    margin-top: 12px;
    /* display: flex;
    justify-content: right; */
    /* flex-direction: column; */
    /* gap: 8px; Espace entre le badge et la date */
    padding: 10px;
}

/* Style de base des badges de statut */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content; /* S'adapte à la taille du texte */
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Couleur si le compte est vérifié (Vert moderne) */
.status-verified {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Couleur si le compte est en attente (Orange) */
.status-pending {
    background-color: rgba(230, 126, 34, 0.15);
    color: #d35400;
    border: 1px solid rgba(230, 126, 34, 0.3);
}

.p-info{
    text-align: right;
    padding: 10px;
    
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
    margin-bottom: 25px;
}
.p-info span{
    color: rgb(81, 81, 81);
    font-size: 14px;
}
.p-info h3{
    font-size: 18px;
    color: #2c3e50;
    
}
/* Zone de la date d'abonnement */
.subscription-info {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 6px;
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 20px;
}

/* Mise en valeur de la date */
.subscription-info .sub-date {
    color: #2c3e50;
    font-weight: 600;
    direction: ltr; /* Pour que les dates s'affichent correctement de gauche à droite si besoin */
}



.form-container {
    max-width: 1050px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    border: 1px solid #eaeaea;
}

/* Header */
.form-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-header h2 i {
    color: #3498db;
}

.form-header p {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

/* Organisation du formulaire en 2 colonnes (CSS Grid) */
.product-form {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Droite légèrement plus large que la gauche */
    gap: 50px;
    direction: rtl;
    text-align: right;
}

/* Groupes de formulaires */
.form-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
    display: flex;
    align-items: center;
    gap: 8px;
}

label i {
    color: #7f8c8d;
    font-size: 15px;
}

/* Style des inputs, select et textarea */
input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #2c3e50;
    background-color: #fafbfb;
    outline: none;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #3498db;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

textarea {
    resize: none;
}

/* --- ZONE UPLOAD D'IMAGES --- */
.upload-box {
    position: relative;
    border: 2px dashed #cbd5e1;
    background-color: #f8fafc;
    border-radius: 14px;
    min-height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.02);
}

/* Cache l'input d'origine moche */
.upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #64748b;
    pointer-events: none; /* Laisse l'input au-dessus capter le clic */
}

.upload-placeholder i {
    font-size: 28px;
    color: #3498db;
}

.upload-placeholder span {
    font-size: 14px;
    font-weight: 600;
}

.upload-placeholder small {
    font-size: 12px;
    color: #94a3b8;
}

/* Bouton Soumettre */
.btn-submit-product {
    width: 100%;
    background-color: #2ecc71; /* Vert rassurant pour la validation */
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

.btn-submit-product:hover {
    background-color: #27ae60;
}

.btn-submit-product:active {
    transform: scale(0.98);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 800px) {
    .product-form {
        grid-template-columns: 1fr; /* Passe sur une seule colonne */
        gap: 20px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}














.products-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- EN-TÊTE --- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    gap: 15px;
    direction: rtl;
}

.header-text h2 {
    font-size: 26px;
    color: #2c3e50;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.added{
    padding: 15px;
    background-color: rgb(190, 249, 190);
    color: rgb(0, 63, 0);
    border-radius: 5px;
    text-align: center;
    margin: 10px 0px;
    border: 1px solid rgb(0, 72, 0);
    display: none;
}
.await-forupdate{
    font-size: 32px;
    padding: 15px;
    background-color: rgb(190, 249, 190);
    color: rgb(0, 63, 0);
    border-radius: 5px;
    text-align: center;
    margin: 10px 0px;
    border: 1px solid rgb(0, 72, 0);
    /* display: none; */
}
.await-forupdate small{
    font-size: 16px;
    display: block;
    margin-top: 20px;
}
.alert-info{
    background-color: lightblue;
    color: rgb(0, 29, 72);
    max-width: 1050px;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    margin: 20px auto;
    display: none;
}
.header-text h2 i { color: #3498db; }
.header-text p { color: #7f8c8d; font-size: 14px; margin-top: 4px; }

.btn-add-shortcut {
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.btn-add-shortcut:hover { background-color: #2980b9; transform: translateY(-2px); }

/* --- BARRE DE FILTRES --- */
.filter-section {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
    border: 1px solid #eaeaea;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Recherche input */
.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 18px; /* Mode RTL */
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px; /* Espace pour l'icône à droite */
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    background-color: #fafbfb;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.search-box input:focus { border-color: #3498db; background-color: #fff; }

/* Badges catégories */
.categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-badge {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-badge:hover, .category-badge.active {
    background: #2c3e50;
    color: #ffffff;
    border-color: #2c3e50;
}

/* --- GRID DE PRODUITS --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.07);
}

/* Image Wrapper avec object-fit */
.product-image-wrapper {
    position: relative;
    height: 220px;
    width: 100%;
    background: #f8fafc;
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadre proprement l'image sans déformation */
}

/* Badge de catégorie collé sur l'image */
.card-category-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: #2c3e50;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Détails du produit */
.product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Aligne le bas des cartes si le titre est sur 2 lignes */
}

.product-title {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 15px;
    height: 44px; /* Fixe la hauteur pour garder l'alignement parfait */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #2ecc71; /* Vert e-commerce */
}

.product-ref {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

/* Boutons d'actions */
.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto; /* Pousse les boutons tout en bas */
}

.product-card .btn-action {
    border: none;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease;
}

.product-card .btn-edit { background-color: rgba(52, 152, 219, 0.1); color: #3498db; }
.product-card .btn-edit:hover { background-color: #3498db; color: white; }

.product-card .btn-delete { background-color: rgba(231, 76, 60, 0.1); color: #e74c3c; }
.product-card .btn-delete:hover { background-color: #e74c3c; color: white; }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 600px) {
    .page-header { flex-direction: column; align-items: flex-start; }
    .btn-add-shortcut { width: 100%; justify-content: center; }
}














.orders-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: right;
    direction: rtl;
}

/* --- EN-TÊTE --- */
.orders-header {
    margin-bottom: 30px;
}
.orders-header h2 { font-size: 26px; color: #2c3e50; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.orders-header h2 i { color: #3498db; }
.orders-header p { color: #7f8c8d; font-size: 14px; margin-top: 5px; }

/* --- FILTRES ET ONGLET CONTROL --- */
.orders-controls {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
    border: 1px solid #eaeaea;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-box { position: relative; width: 100%; }
.search-icon { position: absolute; top: 50%; right: 18px; transform: translateY(-50%); color: #94a3b8; }
.search-box input { width: 100%; padding: 12px 45px 12px 20px; border: 2px solid #e2e8f0; border-radius: 12px; outline: none; background: #fafbfb; transition: all 0.3s ease; }
.search-box input:focus { border-color: #3498db; background: #fff; }

.status-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab-btn { background: transparent; border: none; padding: 8px 16px; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; border-radius: 8px; transition: all 0.2s ease; }
.tab-btn:hover, .tab-btn.active { background: rgba(52, 152, 219, 0.1); color: #3498db; }

/* --- CARTES DE COMMANDES (LIST) --- */
.orders-list { display: flex; flex-direction: column; gap: 15px; }

.order-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eaeaea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.01);
    overflow: hidden;
    transition: all 0.3s ease;
}
.order-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.04); }

/* Ligne principale */
.order-main-row {
    padding: 20px;
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1.2fr 1fr;
    align-items: center;
    gap: 15px;
}

/* Infos Identifiants */
.order-info { display: flex; flex-direction: column; gap: 4px; }
.order-id { font-size: 16px; font-weight: 700; color: #2c3e50; }
.order-date { font-size: 12px; color: #94a3b8; display: flex; align-items: center; gap: 5px; }

/* Infos Client */
.customer-info { display: flex; flex-direction: column; gap: 2px; }
.customer-info strong { font-size: 15px; color: #2c3e50; }
.customer-info span { font-size: 13px; color: #7f8c8d; }

/* Prix & Badges de statuts */
.order-total-status { display: flex; flex-direction: column; gap: 6px; }
.total-amount { font-size: 16px; font-weight: 700; color: #2c3e50; }

.badge { width: fit-content; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.badge-pending { background: rgba(230, 126, 34, 0.15); color: #d35400; }
.badge-success { background: rgba(46, 204, 113, 0.15); color: #27ae60; }
.badge-danger { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }

/* Bordures de statuts latérales (RTL : sur la droite de la carte) */
.status-pending-border { border-right: 5px solid #e67e22; }
.status-success-border { border-right: 5px solid #2ecc71; }
.status-danger-border { border-right: 5px solid #e74c3c; }

/* Actions */
.order-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.order-actions .btn-action { border: none; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 14px; transition: all 0.2s ease; }
.order-actions .btn-success { background: #2ecc71; color: white; }
.order-actions .btn-success:hover { background: #27ae60; }
.order-actions .btn-print { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.order-actions .btn-print:hover { background: #e2e8f0; color: #334155; }

.order-completed-text { font-size: 13px; color: #27ae60; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.order-cancelled-text { font-size: 13px; color: #94a3b8; font-weight: 600; }

/* --- SECTION DEPLIABLE : DETAILS PRODUITS --- */
.order-details-section {
    background: #fafbfb;
    border-top: 1px solid #f0f0f0;
    padding: 15px 20px;
}
.order-details-section h4 { font-size: 13px; color: #7f8c8d; font-weight: 600; margin-bottom: 10px; }
.order-items-grid { display: flex; flex-direction: column; gap: 10px; }

.ordered-item { display: flex; align-items: center; gap: 12px; }
.ordered-item img { width: 45px; height: 45px; border-radius: 6px; object-fit: cover; border: 1px solid #e2e8f0; }
.item-meta h5 { font-size: 13px; color: #2c3e50; font-weight: 600; }
.item-meta p { font-size: 12px; color: #7f8c8d; margin-top: 2px; }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .order-main-row { grid-template-columns: 1fr; gap: 15px; text-align: center; }
    .order-actions { justify-content: center; }
    .badge { margin: 0 auto; }
    .status-tabs { justify-content: center; }
    .ordered-item { text-align: right; }
}