/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1DB0B7;
    --dark-blue: #006178;
    --light-gray: #F5F7F9;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #E0E0E0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Flash Messages */
.flash-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

.flash-success {
    background: #D4EDDA;
    color: #155724;
    border-bottom-color: #C3E6CB;
}

.flash-error {
    background: #F8D7DA;
    color: #721C24;
    border-bottom-color: #F5C6CB;
}

.flash-warning {
    background: #FFF3CD;
    color: #856404;
    border-bottom-color: #FFEEBA;
}

.flash-info {
    background: #D1ECF1;
    color: #0C5460;
    border-bottom-color: #BEE5EB;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0 0.25rem;
    line-height: 1;
}

.flash-close:hover {
    opacity: 1;
}

/* Login Page */
.login-container {
    display: flex;
    min-height: 100vh;
}

.login-left {
    flex: 1;
    background: url('/uploads/login-bp.png') center/cover no-repeat;
    background-color: var(--light-gray);
    position: relative;
}

.login-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 5rem;
    background: white;
}

.login-form-container {
    max-width: 450px;
    width: 100%;
}

.login-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.login-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.login-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.login-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 176, 183, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 176, 183, 0.1);
}

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

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

.btn-outline {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: var(--light-gray);
}

.support-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 12px;
    text-align: center;
}

.support-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.support-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FEE2E2;
}

.alert-success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.alert-info {
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #DBEAFE;
}

/* Test Accounts Box */
.test-accounts {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.test-accounts-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.test-account {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.test-account code {
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 968px) {
    .login-left {
        display: none;
    }

    .login-right {
        padding: 2rem;
    }
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: white;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: white;
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section-title {
    padding: 0 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-item {
    margin-bottom: 0.25rem;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.sidebar-menu-link:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.sidebar-menu-link.active {
    background: rgba(29, 176, 183, 0.1);
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.sidebar-menu-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.page-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* Search Bar */
.search-bar {
    position: relative;
    min-width: 280px;
}

.search-bar input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 176, 183, 0.1);
}

.search-bar input::placeholder {
    color: #aaa;
}

.search-bar-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-premium {
    background: #FFF4E6;
    color: #E67E22;
}

.badge-verified {
    background: #E8F5E9;
    color: #27AE60;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.progress-label {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    max-width: 300px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s;
}

/* Section */
.section {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Product Table */
.product-table {
    width: 100%;
    border-collapse: collapse;
}

.product-table thead {
    background: var(--light-gray);
}

.product-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-table td {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    vertical-align: middle;
}

.product-table tbody tr:hover {
    background: #FAFBFC;
}

.product-thumbnail {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.product-name {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.product-description {
    font-size: 0.85rem;
    color: var(--text-light);
}

.product-type {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.product-price {
    font-weight: 600;
    color: var(--text-dark);
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-button {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-button:hover {
    background: var(--light-gray);
}

.icon-button svg {
    width: 18px;
    height: 18px;
}

.icon-button-edit svg {
    stroke: var(--primary-color);
}

.icon-button-delete svg {
    stroke: #E74C3C;
}

/* Buttons */
.btn-create {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-create:hover {
    background: var(--primary-color);
    color: white;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-back:hover {
    background: var(--light-gray);
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--border-color);
    background: #F8FAFB;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1.5rem;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(29, 176, 183, 0.05);
}

.file-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    fill: var(--primary-color);
}

.file-upload-text {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.file-upload-size {
    font-size: 0.75rem;
    color: var(--text-light);
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-upload:hover {
    background: #189ba2;
}

/* Toggle Buttons */
.toggle-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.toggle-btn {
    padding: 0.65rem 1.25rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.toggle-btn:hover {
    border-color: var(--primary-color);
    background: rgba(29, 176, 183, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Active state using CSS :has() - no JavaScript needed! */
.toggle-btn:has(input[type="checkbox"]:checked),
.toggle-btn:has(input[type="radio"]:checked),
.toggle-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 176, 183, 0.4);
    font-weight: 600;
}

.toggle-btn:has(input[type="checkbox"]:checked)::before,
.toggle-btn:has(input[type="radio"]:checked)::before,
.toggle-btn.active::before {
    content: '✓';
    margin-right: 0.5rem;
    font-weight: bold;
}

/* Rich Text Editor */
.rich-text-editor {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.editor-toolbar {
    background: #F8FAFB;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.toolbar-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: rgba(29, 176, 183, 0.1);
    color: var(--primary-color);
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 0.25rem;
}

.editor-textarea {
    border: none !important;
    border-radius: 0 0 8px 8px !important;
    margin: 0 !important;
}

.rich-text-toolbar {
    background: var(--light-gray);
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 0.25rem;
}

.rich-text-toolbar button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rich-text-toolbar button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.rich-text-content {
    padding: 1rem;
    min-height: 120px;
}

/* Price Input */
.price-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input {
    flex: 1;
}

.price-currency {
    font-weight: 600;
    color: var(--text-dark);
}

/* Input with suffix (€ symbol inside field) */
.input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-suffix .form-input {
    padding-right: 2.5rem;
}

.input-suffix {
    position: absolute;
    right: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    pointer-events: none;
}

/* VAT Radio Buttons */
.vat-options {
    display: flex;
    gap: 1.5rem;
}

.vat-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vat-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Action Buttons */
.form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.btn-save {
    padding: 0.875rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-save:hover {
    background: #189ba2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 176, 183, 0.3);
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    flex: 1;
    max-width: 260px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-primary {
    background: rgba(29, 176, 183, 0.1);
    color: var(--primary-color);
}

.stat-icon-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Traiteur Cards Grid */
.traiteur-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.traiteur-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.traiteur-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(29, 176, 183, 0.12);
    transform: translateY(-2px);
}

.traiteur-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--light-gray);
}

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

.traiteur-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-color);
}

.traiteur-card-badges {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.traiteur-card-body {
    padding: 1.25rem;
}

.traiteur-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.traiteur-card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.traiteur-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-light);
    background: var(--light-gray);
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
}

.traiteur-card-stats {
    padding-top: 0.75rem;
    border-top: 1px solid var(--light-gray);
}

.traiteur-card-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.traiteur-card-actions {
    display: flex;
    border-top: 1px solid var(--border-color);
}

.traiteur-card-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.traiteur-card-btn-primary {
    color: var(--primary-color);
    background: rgba(29, 176, 183, 0.04);
}

.traiteur-card-btn-primary:hover {
    background: rgba(29, 176, 183, 0.1);
}

.traiteur-card-btn-secondary {
    color: var(--text-light);
    border-left: 1px solid var(--border-color);
}

.traiteur-card-btn-secondary:hover {
    color: var(--text-dark);
    background: var(--light-gray);
}

/* Top Navigation */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.top-nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s;
}

.top-nav-link:hover,
.top-nav-link.active {
    color: var(--primary-color);
}

.top-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-color);
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-logout:hover {
    background: var(--light-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Notifications ===== */
.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #E74C3C;
    color: white;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: auto;
}

.notification-bell-link {
    display: flex;
    align-items: center;
}

.notification-list {
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: #FAFBFC;
}

.notification-unread {
    background: rgba(29, 176, 183, 0.04);
    border-left: 3px solid var(--primary-color);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon svg {
    width: 20px;
    height: 20px;
}

.notification-icon-traiteur_edit {
    background: rgba(29, 176, 183, 0.1);
    color: var(--primary-color);
    stroke: var(--primary-color);
}

.notification-icon-produit_new {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    stroke: #27ae60;
}

.notification-icon-produit_edit {
    background: rgba(230, 126, 34, 0.1);
    color: #E67E22;
    stroke: #E67E22;
}

.notification-content {
    flex: 1;
}

.notification-message {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.notification-view-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.notification-view-btn:hover {
    opacity: 0.9;
}

.notification-details {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #F8F9FA;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.notification-change {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.82rem;
    padding: 0.2rem 0;
    flex-wrap: wrap;
}

.notification-change-field {
    font-weight: 600;
    color: var(--text-dark);
}

.notification-change-old {
    color: #E74C3C;
    text-decoration: line-through;
}

.notification-change-arrow {
    color: var(--text-light);
}

.notification-change-new {
    color: #27AE60;
    font-weight: 500;
}

/* Notification Actions */
.notification-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.notification-validate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: #27AE60;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.notification-validate-btn:hover {
    opacity: 0.9;
}

.notification-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: none;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-delete-btn:hover {
    background: #FDEDEE;
    color: #E74C3C;
    border-color: #E74C3C;
}

/* Notification Tabs */
.notif-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.notif-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.notif-tab:hover {
    color: var(--text-dark);
}

.notif-tab-active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.notif-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #E74C3C;
    color: white;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.notif-tab-badge-archived {
    background: var(--text-light);
}

/* Archived Notification */
.notification-archived {
    opacity: 0.75;
}

.notification-validated-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.75rem;
    padding: 0.15rem 0.5rem;
    background: #D4EDDA;
    color: #155724;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== User Badges ===== */
.user-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.user-badge-admin {
    background: rgba(29, 176, 183, 0.1);
    color: var(--primary-color);
}

.user-badge-traiteur {
    background: rgba(52, 73, 94, 0.1);
    color: #34495e;
}

.user-badge-active {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.user-badge-pending {
    background: rgba(230, 126, 34, 0.1);
    color: #E67E22;
}

/* ===== Setup Password Page ===== */
.setup-password-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    padding: 2rem;
}

.setup-password-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.setup-password-header {
    text-align: center;
    margin-bottom: 2rem;
}

.setup-password-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.setup-password-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
}
