* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #eeeeee;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #09B1BA 0%, #0891A0 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.logo h1 {
    text-align: center;
    color: #09B1BA;
    margin-bottom: 30px;
    font-weight: 600;
}

.login-box .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.login-box .logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Admin Layout */
.admin-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #eeeeee;
}

/* Navbar Horizontal */
.navbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.navbar-brand h2 {
    display: none;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-left {
    justify-content: flex-start;
    margin-right: -500px !important;
}

.navbar-right {
    justify-content: flex-end;
    margin-left: -300px !important;
}

.navbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.navbar-item.navbar-icon {
    padding: 10px;
}

.navbar-item svg {
    flex-shrink: 0;
}

.navbar-item:hover {
    background: rgba(238, 238, 238, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #2d3748;
}

.navbar-item.active {
    background: #eeeeee !important;
    color: #2d3748 !important;
}

.navbar-item.active:hover {
    background: #eeeeee !important;
}

.navbar-item svg {
    flex-shrink: 0;
}

.navbar-item span {
    font-size: 14px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-actions .navbar-item {
    padding: 10px 16px;
}

.navbar-user {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(245, 245, 245, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    color: #4a5568;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
}

.navbar-user:hover {
    background: rgba(238, 238, 238, 0.8);
    color: #2d3748;
}

.navbar-user-icon {
    display: none;
}

.btn-logout {
    padding: 10px;
    background: rgba(245, 245, 245, 0.5);
    color: #4a5568;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-logout:hover {
    background: rgba(238, 238, 238, 0.8);
    color: #2d3748;
    transform: translateY(-1px);
}

.sidebar {
    display: none;
}

.sidebar .logo {
    padding: 25px 20px;
    border-bottom: 1px solid #e8ecef;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fafbfc;
}

.sidebar .logo h2 {
    color: #09B1BA;
    font-size: 22px;
    font-weight: 700;
}

.sidebar .sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid #e8ecef;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fafbfc;
}

.sidebar .sidebar-header h2 {
    color: #09B1BA;
    font-size: 22px;
    font-weight: 700;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.menu {
    margin-top: 10px;
    padding: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #5a6c7d;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 8px;
    margin-bottom: 5px;
    font-weight: 500;
}

.menu-item:hover {
    background: #f0f4f8;
    color: #09B1BA;
}

.menu-item.active {
    background: #e6f7f8;
    color: #09B1BA;
}

.menu-item span {
    margin-right: 12px;
    font-size: 20px;
}

.content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: #eeeeee;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 35px;
    text-align: center;
}

.header h1 {
    color: #000;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    overflow: visible;
}

.page-header {
    padding-top: 12px;
    margin-bottom: 20px;
    overflow: visible;
}

.page-header h1 {
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
}

.filters-row {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
}

/* Evite troncature placeholder Marque */
#filterBrand::placeholder {
    font-size: 12px;
}

.header .subtitle {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Management Cards Grid */
.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.management-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s;
    cursor: pointer;
}

.management-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.2);
}

.management-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 
                0 6px 12px rgba(0, 0, 0, 0.15),
                inset 0 -2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.management-card-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.management-card:hover .management-card-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 
                0 8px 16px rgba(0, 0, 0, 0.2),
                inset 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.management-card-icon.purple {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}

.management-card-icon.orange {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.management-card-icon.teal {
    background: linear-gradient(135deg, #5eead4 0%, #14b8a6 100%);
}

.management-card-icon.blue {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.management-card h3 {
    font-size: 20px;
    color: #000;
    margin-bottom: 10px;
    font-weight: 600;
}

.management-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.management-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.management-card-action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.management-card-action::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.management-card-action:hover::before {
    width: 300px;
    height: 300px;
}

.management-card-action:hover::after {
    left: 100%;
}

.management-card-action:hover {
    gap: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateX(4px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.8);
}

.stat-icon {
    font-size: 40px;
}

.stat-info h3 {
    font-size: 32px;
    color: #000;
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-info p {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Chart */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.chart-card h3 {
    margin-bottom: 24px;
    color: #000;
    font-size: 18px;
    font-weight: 600;
}

#salesChart, #categoryChart {
    height: 300px;
}

/* Table */
.table-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow-x: auto;
    overflow-y: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #000;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 16px 20px;
    border-top: 1px solid #e8ecef;
    color: #333;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #000;
    color: white;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
}

.btn-warning {
    background: #ed8936;
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Badge */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #c6f6d5;
    color: #22543d;
}

.badge-danger {
    background: #fed7d7;
    color: #742a2a;
}

.badge-warning {
    background: #feebc8;
    color: #7c2d12;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #000;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.search-input {
    padding: 12px 16px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    width: 300px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #000;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: #ffffff;
    margin: 5% auto;
    padding: 35px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid #e8ecef;
    display: flex;
    flex-direction: column;
}

.modal-content > h2 {
    flex-shrink: 0;
    margin-bottom: 20px;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    margin-bottom: 10px;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(238, 238, 238, 0.5);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

.modal-actions {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e8ecef;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination button {
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination button:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-1px);
}

.pagination button.active {
    background: #000;
    color: white;
    border-color: #000;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.8);
}

.category-card h3 {
    margin-bottom: 12px;
    color: #000;
    font-weight: 600;
}

.subcategories {
    margin-top: 12px;
    padding-left: 20px;
}

.subcategory {
    padding: 6px 0;
    color: #666;
    font-size: 14px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: #000;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.error-message {
    display: none;
    padding: 12px 16px;
    background: #fed7d7;
    color: #742a2a;
    border-radius: 8px;
    margin-top: 16px;
    border-left: 4px solid #f56565;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Products Grid - Vinted Style */
.products-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.products-grid::-webkit-scrollbar {
    height: 8px;
}

.products-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.products-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.products-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.product-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    min-width: 200px;
    max-width: 200px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.85);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-likes-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #e53e3e;
}

.product-info {
    padding: 12px;
}

.product-brand {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 600;
}

.product-info h3 {
    font-size: 14px;
    color: #000;
    margin-bottom: 8px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-size {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.product-likes {
    font-size: 12px;
    color: #666;
}

/* Navbar Dropdown */
.navbar-dropdown {
    position: relative;
}

.navbar-dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.dropdown-content {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-top: 5px;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    gap: 30px;
    transition: all 0.2s ease;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: transparent;
}

.dropdown-column {
    flex: 1;
}

.dropdown-category {
    display: block;
    padding: 10px 15px;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.dropdown-category:hover {
    background: rgba(238, 238, 238, 0.8);
    color: #2d3748;
}

.dropdown-subcategory {
    padding-left: 15px;
    margin-top: 8px;
}

.dropdown-subcategory a {
    display: block;
    padding: 8px 12px;
    color: #4a5568;
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.dropdown-subcategory a:hover {
    background: rgba(238, 238, 238, 0.6);
    color: #2d3748;
    padding-left: 16px;
}

/* Products Grid - Horizontal Scrollable (Vinted Style) */
.products-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 16px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.products-grid::-webkit-scrollbar {
    height: 8px;
}

.products-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.products-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.products-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Product Card */
.product-card {
    flex: 0 0 200px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.85);
}

.product-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-likes-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #e53e3e;
}

.product-info {
    padding: 12px;
}

.product-brand {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.product-info h3 {
    font-size: 14px;
    color: #000;
    margin-bottom: 8px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-size {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.product-likes {
    font-size: 12px;
    color: #666;
}

/* Navbar Dropdown for Categories */
.navbar-dropdown {
    position: relative;
}

.navbar-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.navbar-dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 700px;
    max-width: 90vw;
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    padding: 40px 50px;
    z-index: 1000;
    border: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    gap: 50px;
}

.dropdown-column {
    flex: 1;
    min-width: 140px;
}

.dropdown-column h3 {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 13px;
    vertical-align: baseline;
    outline: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    margin-bottom: 20px;
}

.dropdown-category {
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 13px;
    vertical-align: baseline;
    outline: 0;
    color: #000;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 2.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-category:hover {
    background: transparent;
    color: #666;
}

.dropdown-subcategory {
    padding: 0;
    margin: 0;
}

.dropdown-subcategory a {
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 13px;
    vertical-align: baseline;
    outline: 0;
    color: #000;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 2.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-subcategory a:hover {
    background: transparent;
    color: #666;
    padding-left: 0;
}

.dropdown-item {
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 13px;
    vertical-align: baseline;
    outline: 0;
    color: #000;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 2.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-item:hover {
    background: transparent;
    color: #666;
}

.dropdown-content-small {
    min-width: 160px;
    gap: 0;
    padding: 10px 14px;
    border-radius: 8px;
    right: 0;
    left: auto;
}

.dropdown-content-small .dropdown-column {
    width: 100%;
}

.dropdown-content-small .dropdown-item {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 13px;
    vertical-align: baseline;
    outline: 0;
    color: #000;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 2.2;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-content-small .dropdown-item:hover {
    background: transparent;
    color: #666;
}

/* Categories Table */
.categories-table {
    font-size: 14px;
}

.categories-table .category-cell {
    background: rgba(238, 238, 238, 0.5);
    font-weight: 700;
    font-size: 16px;
    color: #000;
    vertical-align: top;
    padding: 20px;
}

.categories-table .subcategory-cell {
    background: rgba(248, 249, 250, 0.8);
    font-weight: 600;
    color: #2d3748;
    vertical-align: top;
    padding: 16px 20px;
}

.categories-table td {
    line-height: 1.8;
    vertical-align: top;
}

.categories-table tbody tr:hover {
    background: rgba(238, 238, 238, 0.3);
}

/* Form Control */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}


/* Category Levels */
.category-level {
    margin-top: 15px;
    padding: 15px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 8px;
    border-left: 3px solid #09B1BA;
}


/* Modal Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(238, 238, 238, 0.5);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Dropdown uppercase styling */
.dropdown-item,
.dropdown-category,
.dropdown-subcategory a {
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Navbar uppercase styling */
.navbar-item {
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 12px !important;
}

.navbar-dropdown span.navbar-item {
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 12px !important;
}

.dropdown-column h3 {
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Reduce navbar font size */
.navbar-item {
    font-size: 12px !important;
}

.navbar-dropdown span.navbar-item {
    font-size: 12px !important;
}

/* Reduce space between left menu and logo */
.navbar-left {
    margin-right: -350px;
}

/* Reduce space between logo and right menu */
.navbar-right {
    margin-left: -350px;
}

/* SweetAlert2 - Black/White/Gray Theme */
.swal2-popup {
    background: #ffffff !important;
    border: 1px solid #e8ecef !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    color: #000000 !important;
}

.swal2-title {
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 28px !important;
}

.swal2-html-container,
.swal2-content {
    color: #333333 !important;
    font-size: 15px !important;
}

.swal2-icon {
    border-color: #cccccc !important;
}

.swal2-icon.swal2-success {
    border-color: #bdbdbd !important;
    color: #000000 !important;
}

.swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: #000000 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: #bdbdbd !important;
}

.swal2-icon.swal2-error {
    border-color: #666666 !important;
    color: #000000 !important;
}

.swal2-icon.swal2-error [class^=swal2-x-mark-line] {
    background-color: #000000 !important;
}

.swal2-icon.swal2-warning {
    border-color: #999999 !important;
    color: #000000 !important;
}

.swal2-icon.swal2-info {
    border-color: #999999 !important;
    color: #000000 !important;
}

.swal2-icon.swal2-question {
    border-color: #999999 !important;
    color: #000000 !important;
}

.swal2-confirm,
.swal2-cancel,
.swal2-deny {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    box-shadow: none !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.swal2-cancel {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
}

.swal2-deny {
    background: #666666 !important;
    border-color: #666666 !important;
}

.swal2-confirm:hover,
.swal2-cancel:hover,
.swal2-deny:hover {
    background: #333333 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.swal2-cancel:hover {
    background: #000000 !important;
    color: #ffffff !important;
}

.swal2-deny:hover {
    background: #000000 !important;
    border-color: #000000 !important;
}

.swal2-actions {
    gap: 10px !important;
    margin-top: 20px !important;
}

.swal2-backdrop-show,
.swal2-backdrop-click {
    background: rgba(0, 0, 0, 0.5) !important;
}

.swal2-stretched-link {
    color: #000000 !important;
}

.swal2-input,
.swal2-textarea,
.swal2-select {
    border: 1px solid #cccccc !important;
    border-radius: 6px !important;
    color: #000000 !important;
    background: #ffffff !important;
}

.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

.swal2-validation-message {
    background: #f5f5f5 !important;
    color: #000000 !important;
}

.swal2-timer-progress-bar {
    background: #cccccc !important;
}

.swal2-loader {
    border-color: #000000 transparent #000000 transparent !important;
}

.swal2-close {
    color: #666666 !important;
}

.swal2-close:hover {
    color: #000000 !important;
}

/* Legacy class names kept for compatibility */
.glass-popup {
    background: #ffffff !important;
    border: 1px solid #e8ecef !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
}

.glass-button {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 10px 24px !important;
    transition: all 0.2s ease !important;
}

.glass-button:hover {
    background: #333333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Categories Table with Borders */
.categories-table-bordered {
    border-collapse: collapse !important;
}

.categories-table-bordered th,
.categories-table-bordered td {
    border: 1px solid #e8ecef !important;
    padding: 12px 16px !important;
    vertical-align: middle !important;
}

.categories-table-bordered thead th {
    background: #f8f9fa !important;
    font-weight: 600 !important;
    color: #000 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 12px !important;
}

.categories-table-bordered tbody tr:hover {
    background: rgba(238, 238, 238, 0.5) !important;
}

.categories-table-bordered .btn-delete {
    background: #f56565;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.categories-table-bordered .btn-delete:hover {
    background: #e53e3e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 101, 101, 0.3);
}


/* Glass Button Danger for Delete Confirmation */
.glass-button-danger {
    background: rgba(245, 101, 101, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 32px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.glass-button-danger:hover {
    background: rgba(229, 62, 62, 0.95) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.4) !important;
}


/* Sort Icons */
.sort-icon {
    margin-left: 8px;
    font-size: 14px;
    color: #999;
    transition: color 0.3s;
}

.categories-table-bordered th:hover .sort-icon {
    color: #000;
}

.sort-icon.asc::before {
    content: '↑';
    color: #000;
    font-weight: bold;
}

.sort-icon.desc::before {
    content: '↓';
    color: #000;
    font-weight: bold;
}

.categories-table-bordered th[onclick] {
    user-select: none;
    transition: background 0.2s;
}

.categories-table-bordered th[onclick]:hover {
    background: #e8ecef !important;
}



/* Menu déroulant multi-niveaux */
.dropdown-multilevel {
    min-width: 200px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > a::after {
    content: ' ›';
    float: right;
    margin-left: 10px;
}

.dropdown-content-sub {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border: 1px solid #e8ecef;
}

.dropdown-submenu:hover > .dropdown-content-sub {
    display: block;
}

.dropdown-content-sub a {
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    color: #000;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.dropdown-content-sub a:hover {
    background: #f8f9fa;
}

/* Badges pour les statuts */
.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-active {
    background: #d4edda;
    color: #155724;
}

.badge-sold {
    background: #f8d7da;
    color: #721c24;
}

/* Boutons d'action */
.btn-action {
    background: transparent;
    border: 1px solid #e8ecef;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 4px;
}

.btn-action:hover {
    background: #f8f9fa;
    border-color: #000;
}

.btn-action.btn-delete:hover {
    background: #fee;
    border-color: #e53e3e;
    color: #e53e3e;
}


/* Menu déroulant niveau 3 */
.dropdown-submenu-item {
    position: relative;
}

.dropdown-submenu-item > .dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-level3 {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    border: 1px solid #e8ecef;
    padding: 8px 0;
}

.dropdown-submenu-item:hover > .dropdown-level3 {
    display: block;
}

.dropdown-level3 a {
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    color: #000;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    white-space: nowrap;
}

.dropdown-level3 a:hover {
    background: #f8f9fa;
}


/* Menu déroulant niveau 3 (inline dans les colonnes) */
.dropdown-submenu-inline {
    position: relative;
}

.dropdown-submenu-inline > a::after {
    content: ' ›';
    float: right;
}

.dropdown-content-level3 {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    border: 1px solid #e8ecef;
    padding: 8px 0;
}

.dropdown-submenu-inline:hover > .dropdown-content-level3 {
    display: block;
}

.dropdown-content-level3 a {
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    color: #000;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    white-space: nowrap;
}

.dropdown-content-level3 a:hover {
    background: #f8f9fa;
}

/* Mega menu 2 colonnes pour Vêtements pour filles (capture utilisateur) */
.dropdown-content-level3--mega {
    min-width: 520px;
    display: none;
    column-count: 2;
    column-gap: 30px;
    column-rule: 1px solid #f1f1f1;
    padding: 12px 10px;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
}
.dropdown-submenu-inline:hover > .dropdown-content-level3--mega {
    display: block;
}
.dropdown-content-level3--mega a {
    white-space: nowrap;
    display: block;
    break-inside: avoid;
}

/* Filtres */
.filters-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: #666;
}

.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="number"] {
    padding: 10px 12px;
    border: 1px solid #e8ecef;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #000;
}

.btn-reset {
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset:hover {
    background: #333;
    transform: translateY(-1px);
}


/* Dropdown personnalisé pour les filtres */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-selected {
    padding: 10px 12px;
    border: 1px solid #e8ecef;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s;
}

.custom-dropdown-selected:hover {
    border-color: #000;
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 4px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-dropdown-menu.show {
    display: block;
}

.custom-dropdown-item {
    padding: 10px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-dropdown-item:hover {
    background: #f8f9fa;
}

.custom-dropdown-submenu {
    position: relative;
}

.custom-dropdown-submenu > .custom-dropdown-item::after {
    content: '›';
    margin-left: 8px;
    font-weight: bold;
}

.custom-dropdown-submenu-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 4px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.custom-dropdown-submenu:hover > .custom-dropdown-submenu-content {
    display: block;
}


/* Custom Dropdown pour les filtres */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-selected {
    padding: 10px 12px;
    border: 1px solid #e8ecef;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    transition: border-color 0.2s;
}

.custom-dropdown-selected:hover {
    border-color: #000;
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 4px;
    margin-top: 4px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
    position: relative;
    display: block;
    text-decoration: none;
    color: #000;
}

.custom-dropdown-item:hover {
    background: #f8f9fa;
}

/* Tree structure for categories */
.tree-item {
    width: 100%;
}

.tree-item-header {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tree-item-header:hover {
    background: #f8f9fa;
}

.tree-toggle {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
}

.tree-label {
    flex: 1;
}

.tree-children {
    background: rgba(248, 249, 250, 0.5);
}

.tree-item-leaf {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
    display: block;
    text-decoration: none;
    color: #000;
}

.tree-item-leaf:hover {
    background: #f8f9fa;
}

.custom-dropdown-submenu {
    position: relative;
}

.custom-dropdown-submenu > .custom-dropdown-item::after {
    content: ' ›';
    position: absolute;
    right: 12px;
}

.custom-dropdown-submenu-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 4px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.custom-dropdown-submenu:hover > .custom-dropdown-submenu-content {
    display: block;
}


/* Style pour le select de couleurs avec carrés de couleur */
.color-select option {
    padding-left: 30px !important;
    min-height: 30px;
    line-height: 30px;
}

.color-select {
    cursor: pointer;
}

/* Style pour le select de couleurs avec cercles */
.color-select-with-circles {
    cursor: pointer;
    padding: 10px 12px;
    border: 1px solid #e8ecef;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.color-select-with-circles:focus {
    outline: none;
    border-color: #000;
}

.color-select-with-circles option {
    padding: 8px 10px 8px 35px;
    min-height: 35px;
    line-height: 35px;
}


/* Style pour le select de couleurs avec cercles */
.color-select-with-circles {
    cursor: pointer;
}

.color-select-with-circles option {
    padding: 10px 10px 10px 50px !important;
    min-height: 40px;
    line-height: 40px;
    background-repeat: no-repeat !important;
    background-position: 10px center !important;
}

.color-select-with-circles option[data-color] {
    position: relative;
}


/* Custom Color Dropdown avec cercles de couleur */
.custom-color-dropdown {
    position: relative;
    width: 100%;
}

.custom-color-selected {
    padding: 10px 12px;
    border: 1px solid #e8ecef;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    transition: border-color 0.2s;
}

.custom-color-selected:hover {
    border-color: #000;
}

.custom-color-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 4px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-color-item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    transition: background 0.2s;
}

.custom-color-item:hover {
    background: #f8f9fa;
}

.color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}


/* Dropdown personnalisé pour les couleurs */
.custom-color-dropdown {
    position: relative;
    width: 100%;
}

.custom-color-selected {
    padding: 10px 12px;
    border: 1px solid #e8ecef;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    transition: border-color 0.2s;
}

.custom-color-selected:hover {
    border-color: #000;
}

.custom-color-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 4px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-color-item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    transition: background 0.2s;
}

.custom-color-item:hover {
    background: #f8f9fa;
}

.color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}
/* Expiration Management Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.stat-card.warning {
    border-left: 4px solid #ff9800;
}

.stat-card.danger {
    border-left: 4px solid #f44336;
}

.stat-card.info {
    border-left: 4px solid #2196f3;
}

.stat-card.high-alert {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-left-color: #e53e3e;
}

.stat-icon {
    font-size: 2.5em;
    opacity: 0.8;
}

.stat-content h3 {
    margin: 0;
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

.stat-content p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 0.9em;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.config-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.config-item label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.config-value {
    font-size: 1.1em;
    color: #666;
}

.status-active {
    color: #4caf50 !important;
    font-weight: bold;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.actions-grid .btn {
    padding: 12px 20px;
    font-size: 1em;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #2196f3;
    color: white;
}

.btn-primary:hover {
    background: #1976d2;
}

.btn-warning {
    background: #ff9800;
    color: white;
}

.btn-warning:hover {
    background: #f57c00;
}

.btn-info {
    background: #00bcd4;
    color: white;
}

.btn-info:hover {
    background: #0097a7;
}

.btn-secondary {
    background: #757575;
    color: white;
}

.btn-secondary:hover {
    background: #616161;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid #e8ecef;
}

.modal-content h3 {
    margin-top: 0;
    color: #333;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.modal-actions .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    gap: 10px;
}

.notification.success .notification-content {
    border-left: 4px solid #4caf50;
}

.notification.error .notification-content {
    border-left: 4px solid #f44336;
}

.notification.warning .notification-content {
    border-left: 4px solid #ff9800;
}

.notification.info .notification-content {
    border-left: 4px solid #2196f3;
}

.notification-icon {
    font-size: 1.2em;
}

.notification-message {
    flex: 1;
    white-space: pre-line;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #333;
}

/* Status badges */
.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.status.succès {
    background: #e8f5e8;
    color: #4caf50;
}

.status.erreur {
    background: #ffeaea;
    color: #f44336;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Tree view styles for category dropdown */
.tree-item {
    position: relative;
}

.tree-item-header {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    font-size: 13px;
}

.tree-item-header:hover {
    background: #f8f9fa;
}

.tree-toggle {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
}

.tree-label {
    flex: 1;
}

.tree-children {
    border-left: 1px solid #e8ecef;
    margin-left: 8px;
}

.tree-item-leaf {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: background 0.2s;
}

.tree-item-leaf:hover {
    background: #f8f9fa;
    color: #000;
}

/* Styled Confirm Modal (replaces native confirm()) */
.styled-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.styled-confirm-modal {
    background: #ffffff;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-width: 440px;
    width: 100%;
    padding: 32px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.styled-confirm-modal h2 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    text-transform: none;
    letter-spacing: normal;
}

.styled-confirm-modal p {
    margin: 0;
    color: #333333;
    font-size: 15px;
    line-height: 1.5;
    white-space: pre-line;
}

.styled-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.styled-confirm-actions button {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.styled-confirm-cancel {
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
}

.styled-confirm-cancel:hover {
    background: #000000;
    color: #ffffff;
}

.styled-confirm-ok {
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
}

.styled-confirm-ok:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-1px);
}

.styled-confirm-ok.styled-confirm-danger {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.styled-confirm-ok.styled-confirm-danger:hover {
    background: #000000;
    border-color: #000000;
}

.styled-confirm-actions button:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Augmenter la hauteur max du dropdown */
.custom-dropdown-menu {
    max-height: 400px !important;
}
