/* FlightOpsFeedback.doztarom.ro - TAROM AVIATION 2026 */
/* Official TAROM: #003087 Blue, #E30613 Red, #FDB813 Gold */

/* =========================================================
   THEME TOKENS / VARIABILE
   ========================================================= */

:root {
    --tarom-blue: #003087;
    --tarom-blue-dark: #00205b;
    --tarom-red: #E30613;
    --tarom-gold: #FDB813;
    --tarom-gold-dark: #e6a700;

    --btn-gold: linear-gradient(135deg, var(--tarom-gold), var(--tarom-gold-dark));

    --glass: rgba(255,255,255,0.08);
    --glass-border: rgba(255,255,255,0.15);

    --shadow-main: 0 18px 50px rgba(0,0,0,0.38);
    --shadow-soft: 0 6px 18px rgba(0,0,0,0.22);
}

/* =========================================================
   RESET / BASE
   ========================================================= */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    background: linear-gradient(135deg, var(--tarom-blue) 0%, var(--tarom-blue-dark) 100%);
    color: #ffffff;
    min-height: 100vh;
}

img, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

/* =========================================================
   LANDING (index.php) - aplică doar când NU e admin
   ========================================================= */

/* container-ul de landing */
body:not(.admin-body) .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
}

/* HEADER ultra-compact */
body:not(.admin-body) .portal-header {
    background: rgba(0,48,135,0.88);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(253,184,19,0.28);
}

body:not(.admin-body) .portal-header.ultra-slim {
    padding: 6px 0;
}

body:not(.admin-body) .header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

body:not(.admin-body) .tarom-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

body:not(.admin-body) .logo-img {
    height: clamp(28px, 7vw, 38px);
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.28));
    transition: transform 0.2s ease;
}

body:not(.admin-body) .logo-img:hover {
    transform: scale(1.04);
}

body:not(.admin-body) .branding {
    text-align: center;
}

body:not(.admin-body) .branding h1 {
    font-size: clamp(1.18em, 3.2vw, 1.48em);
    font-weight: 800;
    background: linear-gradient(45deg, var(--tarom-gold), rgba(255,255,255,0.92));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
    margin: 0;
}

/* ascunde tagline pentru compact */
body:not(.admin-body) .tagline,
body:not(.admin-body) .branding p {
    display: none;
}

/* HERO */
body:not(.admin-body) .feedback-section {
    padding: 18px 0 0 0;
}

body:not(.admin-body) .hero {
    text-align: center;
    margin: 18px 0 28px;
}

body:not(.admin-body) .hero h2 {
    font-size: clamp(1.8em, 5vw, 2.35em);
    font-weight: 900;
    background: linear-gradient(45deg, #ffffff, var(--tarom-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

body:not(.admin-body) .hero p {
    font-size: 1.05em;
    opacity: 0.95;
    max-width: 620px;
    margin: 0 auto;
}

/* MESSAGES */
body:not(.admin-body) .success-msg,
body:not(.admin-body) .error-msg {
    border-radius: 16px;
    padding: 14px 16px;
    text-align: center;
    margin-bottom: 18px;
    backdrop-filter: blur(12px);
}

body:not(.admin-body) .success-msg {
    background: rgba(16,185,129,0.18);
    border: 1px solid rgba(16,185,129,0.85);
}

body:not(.admin-body) .error-msg {
    background: rgba(239,68,68,0.18);
    border: 1px solid rgba(227,6,19,0.85);
}

/* FORM */
body:not(.admin-body) .feedback-form {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 32px 28px;
    box-shadow: var(--shadow-main);
    margin-bottom: 34px;
}

body:not(.admin-body) .form-group {
    margin-bottom: 20px;
}

body:not(.admin-body) label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.95em;
    color: rgba(255,255,255,0.98);
}

body:not(.admin-body) input,
body:not(.admin-body) select,
body:not(.admin-body) textarea {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 16px;
    background: rgba(255,255,255,0.95);
    font-size: 15px;
    font-family: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

body:not(.admin-body) input:focus,
body:not(.admin-body) select:focus,
body:not(.admin-body) textarea:focus {
    outline: none;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18), 0 0 0 4px rgba(253,184,19,0.28);
    transform: translateY(-1px);
}

/* Datalist styling */
body:not(.admin-body) input[list] {
    cursor: text;
}

body:not(.admin-body) input[list]::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
    filter: invert(0.3);
}

body:not(.admin-body) textarea {
    resize: vertical;
    min-height: 110px;
}

body:not(.admin-body) .form-group small {
    display: block;
    margin-top: 8px;
    font-size: 0.86em;
    opacity: 0.85;
    line-height: 1.35;
}
/* =========================================================
   PREVIEW POZE ÎNAINTE DE SUBMIT
   ========================================================= */

body:not(.admin-body) .upload-status {
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(12px);
}

body:not(.admin-body) .upload-status.ready {
    border-color: rgba(16,185,129,0.65);
    background: rgba(16,185,129,0.10);
}

body:not(.admin-body) .upload-status.error {
    border-color: rgba(227,6,19,0.70);
    background: rgba(227,6,19,0.10);
}

body:not(.admin-body) .upload-status-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-weight: 800;
    color: #fff;
    flex-wrap: wrap;
}

body:not(.admin-body) .upload-status-message {
    font-size: 0.92em;
    line-height: 1.45;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.94);
}

body:not(.admin-body) .photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body:not(.admin-body) .photo-preview-card {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

body:not(.admin-body) .photo-preview-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

body:not(.admin-body) .photo-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body:not(.admin-body) .photo-preview-meta {
    padding: 10px;
}

body:not(.admin-body) .photo-preview-meta strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9em;
    color: #fff;
}

body:not(.admin-body) .photo-preview-name {
    font-size: 0.78em;
    line-height: 1.35;
    color: rgba(255,255,255,0.86);
    margin-bottom: 4px;
    word-break: break-word;
}

body:not(.admin-body) .photo-preview-meta small {
    display: block;
    color: rgba(255,255,255,0.74);
    font-size: 0.76em;
    margin-bottom: 8px;
}

body:not(.admin-body) .photo-preview-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72em;
    font-weight: 800;
}

body:not(.admin-body) .photo-preview-badge.ok {
    background: rgba(16,185,129,0.18);
    border: 1px solid rgba(16,185,129,0.65);
    color: #d1fae5;
}

body:not(.admin-body) .photo-preview-badge.error {
    background: rgba(227,6,19,0.18);
    border: 1px solid rgba(227,6,19,0.65);
    color: #ffe4e6;
}

body:not(.admin-body) .photo-fallback-icon {
    font-size: 28px;
}

@media (max-width: 768px) {
    body:not(.admin-body) .photo-preview-grid {
        grid-template-columns: 1fr;
    }

    body:not(.admin-body) .photo-preview-card {
        flex-direction: row;
    }

    body:not(.admin-body) .photo-preview-thumb {
        width: 72px;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
    }

    body:not(.admin-body) .photo-preview-meta {
        flex: 1;
    }
}

/* Vizibilitate cards */
body:not(.admin-body) .visibility-block {
    margin: 22px 0 14px;
    padding: 0;
}

body:not(.admin-body) .visibility-block h4 {
    font-size: 1.08em;
    font-weight: 850;
    background: linear-gradient(45deg, var(--tarom-gold), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}

body:not(.admin-body) .visibility-row {
    margin-bottom: 12px;
}

body:not(.admin-body) .visibility-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(253,184,19,0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    height: 68px;
}

body:not(.admin-body) .visibility-card:hover {
    border-color: rgba(253,184,19,0.62);
    background: rgba(253,184,19,0.10);
    box-shadow: 0 10px 26px rgba(253,184,19,0.18);
    transform: translateY(-2px);
}

body:not(.admin-body) .visibility-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

body:not(.admin-body) .visibility-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--tarom-gold);
    cursor: pointer;
    margin: 0;
}

body:not(.admin-body) .visibility-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

body:not(.admin-body) .visibility-title {
    font-size: 0.98em;
    font-weight: 800;
    line-height: 1.2;
}

body:not(.admin-body) .visibility-sub {
    font-size: 0.85em;
    opacity: 0.9;
    line-height: 1.25;
}

/* Submit */
body:not(.admin-body) .submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--btn-gold);
    color: #000;
    border: none;
    border-radius: 18px;
    font-size: 1.12em;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 12px 28px rgba(253,184,19,0.45);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

body:not(.admin-body) .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(253,184,19,0.6);
    filter: brightness(1.02);
}

/* Trust */
body:not(.admin-body) .trust-info {
    text-align: center;
    padding: 22px 0 28px;
    border-top: 1px solid rgba(255,255,255,0.18);
    opacity: 0.92;
}

body:not(.admin-body) .trust-info p {
    margin-bottom: 6px;
}

body:not(.admin-body) .trust-info small {
    opacity: 0.85;
}

/* Modal landing (erori) */
body:not(.admin-body) .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0,0,0,0.82);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

body:not(.admin-body) .modal-content {
    background: rgba(30,41,59,0.98);
    padding: 26px 22px;
    border-radius: 18px;
    max-width: 520px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(253,184,19,0.55);
    box-shadow: var(--shadow-main);
}

body:not(.admin-body) .close {
    position: absolute;
    right: 14px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
    color: rgba(253,184,19,0.95);
    font-weight: 300;
}

body:not(.admin-body) .close:hover {
    color: #ffffff;
}

body:not(.admin-body) #errorList {
    color: rgba(227,6,19,0.95);
    margin-top: 14px;
    line-height: 1.6;
}

/* Responsive landing */
@media (max-width: 768px) {
    body:not(.admin-body) .container {
        padding: 14px;
    }

    body:not(.admin-body) .portal-header.ultra-slim {
        padding: 5px 0;
    }

    body:not(.admin-body) .header-content {
        gap: 10px;
    }

    body:not(.admin-body) .logo-img {
        height: clamp(24px, 12vw, 34px);
    }

    body:not(.admin-body) .branding h1 {
        font-size: clamp(1.08em, 5.2vw, 1.32em);
    }

    body:not(.admin-body) .feedback-form {
        padding: 24px 18px;
        border-radius: 20px;
    }

    body:not(.admin-body) .visibility-card {
        height: auto;
        padding: 14px 16px;
    }
}

/* =========================================================
   ADMIN (admin.php) - scopat strict pe .admin-body
   ========================================================= */

.admin-body {
    background: #0f172a;
    color: #f8fafc;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
}

.admin-header .logo h1 {
    font-size: 2.1em;
    margin: 0 0 6px 0;
    font-weight: 900;
}

.admin-header .logo p {
    opacity: 0.85;
    margin: 0;
}

.user-info {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

/* Buton secondary */
.btn-secondary {
    background: #64748b;
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-1px);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    text-align: center;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.32);
    border: 1px solid rgba(255,255,255,0.06);
}

.stat-card strong {
    font-size: 2.4em;
    display: block;
    color: var(--tarom-gold);
    line-height: 1;
}

/* Chart */
.chart-section {
    background: #1e293b;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.06);
}

.chart-section canvas {
    max-height: 320px;
}

/* Table section */
.table-section h3 {
    margin-bottom: 16px;
    color: #f1f5f9;
}

.table-filters {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* Admin inputs/selects */
.admin-body .table-filters select,
.admin-body .table-filters input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0b1220;
    color: #e2e8f0;
    outline: none;
    min-width: 220px;
}

.admin-body .table-filters input::placeholder {
    color: rgba(226,232,240,0.65);
}

.table-responsive {
    overflow-x: auto;
    background: #1e293b;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

th {
    background: #0f172a;
    color: white;
    position: sticky;
    top: 0;
}

/* Dropdown status în tabel */
.status-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #475569;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    min-width: 120px;
}

/* Badge follow-up / anonim */
.contact-mark {
    background: #10b981;
    color: white;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    display: inline-block;
}

.anon-tag {
    background: #64748b;
    color: white;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    display: inline-block;
}

/* Buton detalii */
.view-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease, transform 0.2s ease;
}

.view-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Badge categorie */
.category-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: capitalize;
    display: inline-block;
    color: #fff;
}

.category-badge.operational { background: #f59e0b; }
.category-badge.naviganti { background: #10b981; }
.category-badge.management { background: #ef4444; }
.category-badge.planning { background: #3b82f6; }
.category-badge.performance { background: #8b5cf6; }
.category-badge.cultura { background: #f97316; }
.category-badge.sugestii { background: #06b6d4; }
.category-badge.altele { background: #64748b; }

/* Responsive admin */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .admin-body .table-filters select,
    .admin-body .table-filters input {
        width: 100%;
        min-width: unset;
    }

    th, td {
        padding: 12px;
    }
}

/* =========================================================
   FIX FINAL - Admin.js compatibilitate
   ========================================================= */

/* Style pentru elementele generate din admin.js */
.title-cell {
    cursor: pointer;
    transition: background 0.15s ease;
}

.title-cell:hover {
    background: rgba(255,255,255,0.08) !important;
}

/* Status select în tabel (din admin.js) */
.status-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #475569;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    min-width: 120px;
}

/* Contact/Anonim badges (din admin.js) */
.contact-mark,
.anon-tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    display: inline-block;
    margin-right: 8px;
}

/* View btn (din admin.js) */
.view-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease, transform 0.2s ease;
}

.view-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Badge-uri categorii (din admin.js) */
.category-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: capitalize;
    display: inline-block;
    color: #fff;
}

/* =========================================================
   LOGIN (login.php)
   ========================================================= */

.login-body {
    background: linear-gradient(135deg, var(--tarom-blue) 0%, var(--tarom-blue-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-container {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.login-card {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(22px);
    border-radius: 22px;
    box-shadow: var(--shadow-main);
    padding: 34px 28px;
    text-align: center;
}

.login-card h2 {
    margin-bottom: 10px;
    font-size: 1.6em;
    font-weight: 900;
}

.login-card p {
    opacity: 0.9;
    margin-bottom: 18px;
}

/* login form - fără să afecteze landing/admin */
.login-body .form-group {
    margin-bottom: 16px;
    text-align: left;
}

.login-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.95em;
}

.login-body input[type="text"],
.login-body input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: none;
    background: rgba(255,255,255,0.95);
    color: #0f172a;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

.login-btn {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 16px;
    background: #10b981;
    color: #fff;
    font-weight: 900;
    font-size: 1.05em;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.login-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.login-info {
    margin-top: 18px;
    opacity: 0.85;
    line-height: 1.5;
}

/* =========================================================
   DETAIL.PHP - feedback, poze, comentarii
   ========================================================= */

.detail-main {
    padding-bottom: 48px;
}

/* Card feedback principal */
.feedback-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.08);
    padding: 28px;
    border-radius: 20px;
    margin-bottom: 22px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.28);
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.feedback-card h2 {
    margin: 6px 0 10px;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
}

.feedback-meta {
    font-size: 0.93rem;
    color: rgba(255,255,255,0.78);
    margin-bottom: 16px;
    line-height: 1.5;
}

.feedback-content {
    line-height: 1.75;
    color: rgba(255,255,255,0.96);
    white-space: pre-wrap;
    font-size: 0.98rem;
}

/* Acțiuni status */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 24px;
}

/* Secțiune poze */
.attachments-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

.attachments-section h3 {
    margin-bottom: 8px;
    color: #f8fafc;
    font-size: 1.15rem;
    font-weight: 900;
}

.attachments-section .attachments-subtitle {
    color: rgba(255,255,255,0.72);
    font-size: 0.92rem;
    margin-bottom: 18px;
}

/* Grid poze */
.attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 180px));
    gap: 14px;
    justify-content: start;
}

/* Card individual */
.attachment-card {
    display: block;
    width: 100%;
    max-width: 180px;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.16);
}

.attachment-card:hover {
    transform: translateY(-3px);
    border-color: rgba(253,184,19,0.45);
    box-shadow: 0 12px 24px rgba(0,0,0,0.24);
}

/* Wrapper imagine */
.attachment-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0b1220;
}

/* Imagine */
.attachment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.attachment-card:hover .attachment-image {
    transform: scale(1.03);
}

/* Overlay vizual */
.attachment-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 8px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.68), rgba(0,0,0,0.04));
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.attachment-zoom {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

/* Info fișier */
.attachment-info {
    padding: 10px 11px 12px;
}

.attachment-info strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 4px;
    word-break: break-word;
    color: #f8fafc;
}

.attachment-info small {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.66);
    line-height: 1.35;
}

/* Empty state poze */
.attachments-empty {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.72);
    font-style: italic;
}

/* Comentarii */
.comments-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

.comments-section h3 {
    margin: 0 0 16px;
    color: #f8fafc;
    font-size: 1.12rem;
    font-weight: 900;
}

.no-comments {
    opacity: 0.8;
    font-style: italic;
    padding: 6px 0 12px;
}

.comment {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
    border-left: 4px solid #64748b;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.82);
}

.comment p {
    margin: 0;
    line-height: 1.65;
    color: rgba(255,255,255,0.95);
}

.new-comment-form {
    margin-top: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 18px;
    border-radius: 14px;
}

.admin-body .new-comment-form .form-group {
    margin-bottom: 14px;
}

.admin-body .new-comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #f8fafc;
}

.admin-body .new-comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #334155;
    background: #0b1220;
    color: #e2e8f0;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.admin-body .new-comment-form textarea:focus,
.form-row input[readonly]:focus {
    outline: none;
    border-color: rgba(253,184,19,0.45);
    box-shadow: 0 0 0 3px rgba(253,184,19,0.12);
}

.form-row {
    display: flex;
    gap: 12px;
    align-items: end;
    margin-top: 12px;
    flex-wrap: wrap;
}

.form-row input[readonly] {
    flex: 1;
    min-width: 220px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #334155;
    background: rgba(100,116,139,0.25);
    color: #e2e8f0;
}

.add-comment-btn {
    background: #10b981;
    color: #fff;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.add-comment-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    width: 100%;
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
    border-top: 1px solid rgba(255,255,255,0.15);
    background: rgba(15,23,42,0.8);
    box-sizing: border-box;
}

.site-footer small {
    display: block;
    margin-top: 5px;
    opacity: 0.5;
    font-size: 11px;
}

/* =========================================================
   ADMIN USERS (admin_users.php)
   ========================================================= */

.au-message {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 22px;
    font-weight: 700;
    font-size: 0.97em;
    backdrop-filter: blur(10px);
}

.au-message--success {
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.8);
    color: #6ee7b7;
}

.au-message--error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.8);
    color: #fca5a5;
}

.au-card {
    background: linear-gradient(135deg, #1e293b, #0f1f35);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 26px 24px;
    margin-bottom: 0;
}

.au-card--blue {
    background: linear-gradient(135deg, #1e293b, #1e3a5f);
    border-color: rgba(59,130,246,0.30);
}

.au-card--purple {
    background: linear-gradient(135deg, #1e293b, #2d1b3d);
    border-color: rgba(139,92,246,0.30);
}

.au-card__title {
    font-size: 1.1em;
    font-weight: 900;
    margin-bottom: 20px;
    color: #f1f5f9;
}

.au-card__title--blue {
    color: #93c5fd;
}

.au-card__title--purple {
    color: #c4b5fd;
}

.au-card .table-responsive {
    border-radius: 12px;
    margin-top: 4px;
}

.au-username {
    font-weight: 800;
    color: #f1f5f9;
}

.au-role-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    display: inline-block;
}

.au-role-badge--fos {
    background: rgba(16,185,129,0.20);
    border: 1px solid rgba(16,185,129,0.70);
    color: #6ee7b7;
}

.au-role-badge--admin {
    background: rgba(253,184,19,0.18);
    border: 1px solid rgba(253,184,19,0.70);
    color: #fde68a;
}

.au-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 26px;
}

.au-form-group {
    margin-bottom: 16px;
}

.au-label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.9em;
    font-weight: 700;
    color: rgba(255,255,255,0.88);
}

.au-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid #334155;
    background: #0b1220;
    color: #e2e8f0;
    font-size: 0.95em;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.au-input:focus {
    border-color: rgba(253,184,19,0.55);
    box-shadow: 0 0 0 3px rgba(253,184,19,0.15);
}

.au-input::placeholder {
    color: rgba(148,163,184,0.65);
}

.au-spacer {
    height: 54px;
}

.au-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 14px;
    font-size: 1em;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: transform 0.2s ease, filter 0.2s ease;
    color: #fff;
    margin-top: 4px;
}

.au-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.au-btn--blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.au-btn--purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.email-link {
    color: #93c5fd;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

/* =========================================================
   RESPONSIVE GLOBAL
   ========================================================= */

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .au-actions-grid {
        grid-template-columns: 1fr;
    }

    .au-spacer {
        display: none;
    }

    .attachments-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .attachment-card {
        max-width: 100%;
    }

    .attachment-thumb {
        aspect-ratio: 16 / 10;
    }

    .feedback-card,
    .attachments-section,
    .comments-section {
        padding: 18px;
        border-radius: 16px;
    }

    .feedback-meta {
        font-size: 0.88rem;
    }

    .attachment-info strong {
        font-size: 0.88rem;
    }

    th, td {
        padding: 12px;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-row input[readonly] {
        min-width: unset;
        width: 100%;
    }

    .add-comment-btn {
        width: 100%;
        justify-content: center;
    }

    .site-footer {
        padding: 15px;
        font-size: 12px;
    }
}

/* =========================================================
   REDESIGN STAT CARDS
   ========================================================= */

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 28px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: #1e293b;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 4px solid var(--stat-accent, #3b82f6);
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.32);
}

.stat-icon {
    font-size: 1.75rem;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.stat-body { flex: 1; }

.stat-value {
    display: block;
    font-size: 2.2em;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
    color: var(--stat-color, #93c5fd);
}

.stat-label {
    font-size: 0.82em;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat--total    { --stat-accent: #3b82f6; --stat-color: #93c5fd; }
.stat--new      { --stat-accent: #f59e0b; --stat-color: #fcd34d; }
.stat--progress { --stat-accent: #8b5cf6; --stat-color: #c4b5fd; }
.stat--contact  { --stat-accent: #10b981; --stat-color: #6ee7b7; }

/* =========================================================
   CHART
   ========================================================= */

.chart-title {
    font-size: 1rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 20px;
}

.chart-section canvas {
    max-height: 260px;
}

/* =========================================================
   TABLE HEADER ROW (titlu + export)
   ========================================================= */

.table-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.table-header-row h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0;
}

.table-count {
    font-size: 0.85em;
    font-weight: 600;
    color: #64748b;
    margin-left: 6px;
}

.btn-export {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #fff;
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.88em;
    text-decoration: none;
    transition: transform 0.2s, filter 0.2s;
    white-space: nowrap;
}

.btn-export:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

/* =========================================================
   ADMIN USER BADGE + DANGER BUTTON
   ========================================================= */

.admin-user-badge {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.88em;
    font-weight: 700;
    color: #cbd5e1;
}

.btn-danger {
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.35);
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
}

.btn-danger:hover {
    background: rgba(239,68,68,0.28);
    transform: translateY(-1px);
}

/* =========================================================
   TABLE IMPROVEMENTS
   ========================================================= */

.feedback-row {
    transition: background 0.15s ease;
}

.feedback-row:hover td {
    background: rgba(255,255,255,0.04) !important;
}

.id-cell {
    font-weight: 800;
    color: #64748b;
    font-size: 0.9em;
}

.title-link {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.15s;
}

.title-link:hover {
    color: var(--tarom-gold);
}

.date-cell {
    color: #64748b;
    font-size: 0.88em;
}

.actions-cell {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

/* Category badge — nou stil transparent */
.category-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

/* Status select — culori per status */
.status-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0b1220;
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.88em;
    min-width: 130px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.status-select:focus {
    outline: none;
    border-color: rgba(253,184,19,0.55);
}

.status--new         { border-color: #f59e0b55; color: #fcd34d; }
.status--in_analiza  { border-color: #3b82f655; color: #93c5fd; }
.status--in_discutie { border-color: #8b5cf655; color: #c4b5fd; }
.status--inchis      { border-color: #10b98155; color: #6ee7b7; }

/* Delete button */
.delete-btn {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    color: #fca5a5;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s, transform 0.2s;
}

.delete-btn:hover {
    background: rgba(239,68,68,0.25);
    transform: scale(1.08);
}

/* Empty state */
.table-empty {
    text-align: center;
    color: #475569;
    font-style: italic;
    padding: 40px 20px !important;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 8px 14px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9em;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.page-btn:hover {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}

.page-btn--active {
    background: #1e40af;
    border-color: #3b82f6;
    color: #fff;
}

.page-ellipsis {
    color: #475569;
    padding: 0 4px;
    font-size: 1.1em;
}

/* =========================================================
   TOAST NOTIFICATIONS
   ========================================================= */

.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 14px 20px;
    border-radius: 13px;
    font-weight: 700;
    font-size: 0.95em;
    z-index: 9999;
    transform: translateX(calc(100% + 32px));
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    max-width: 340px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
}

.toast--visible {
    transform: translateX(0);
}

.toast--success {
    background: linear-gradient(135deg, #065f46, #047857);
    color: #d1fae5;
    border-color: rgba(16,185,129,0.4);
}

.toast--error {
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
    color: #fee2e2;
    border-color: rgba(239,68,68,0.4);
}

/* =========================================================
   AUDIT PAGE
   ========================================================= */

.audit-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    font-size: 0.9em;
    color: #94a3b8;
}

.audit-total { font-weight: 800; color: #cbd5e1; }

.audit-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audit-entry {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 14px 18px;
    transition: background 0.15s;
}

.audit-entry:hover {
    background: #253347;
}

.audit-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid;
    flex-shrink: 0;
}

.audit-body { flex: 1; min-width: 0; }

.audit-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.audit-action {
    font-weight: 800;
    font-size: 0.95em;
}

.audit-target {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2px 9px;
    border-radius: 6px;
    font-size: 0.82em;
    color: #cbd5e1;
    font-weight: 700;
}

.audit-details {
    font-size: 0.85em;
    color: #64748b;
}

.audit-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.82em;
    color: #475569;
}

.audit-user { color: #94a3b8; font-weight: 700; }

@media (max-width: 768px) {
    .table-header-row { flex-direction: column; align-items: flex-start; }
    .admin-user-badge { display: none; }
    .audit-meta { flex-direction: column; gap: 4px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .toast { top: auto; bottom: 20px; right: 12px; left: 12px; max-width: none; }
}

/* =========================================================
   CHARTS GRID — 3 grafice
   ========================================================= */

.charts-grid {
    display: grid;
    grid-template-columns: 5fr 3fr 5fr;
    gap: 18px;
    margin-bottom: 28px;
}

.chart-card {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 22px 24px;
    overflow: hidden;
}

.chart-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin: 0 0 3px;
}

.chart-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 18px;
}

.chart-card canvas {
    max-height: 230px;
}

@media (max-width: 1024px) {
    .charts-grid { grid-template-columns: 1fr 1fr; }
    .charts-grid .chart-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .charts-grid { grid-template-columns: 1fr; }
    .charts-grid .chart-card:last-child { grid-column: auto; }
}

/* =========================================================
   DETAIL PAGE — 2 coloane
   ========================================================= */

/* Breadcrumb header */
.detail-header { align-items: center; }

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.breadcrumb-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}
.breadcrumb-link:hover { color: #94a3b8; }

.breadcrumb-sep { color: #334155; font-size: 1.1em; }

.breadcrumb-current { color: #e2e8f0; font-weight: 700; }

/* Title bar */
.detail-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding: 14px 20px;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
}

.detail-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-id-badge {
    font-size: 0.8rem;
    font-weight: 900;
    color: #475569;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 4px 10px;
    border-radius: 7px;
    letter-spacing: 0.5px;
}

.detail-cat-badge,
.detail-status-badge {
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.detail-date {
    font-size: 0.85em;
    color: #64748b;
    white-space: nowrap;
}

/* Grid layout */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 20px;
}

/* Content cards */
.d-card {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 24px 26px;
    margin-bottom: 16px;
}

.d-card:last-child { margin-bottom: 0; }

.d-card-title {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 900;
    color: #f8fafc;
    line-height: 1.3;
    margin: 0 0 14px;
}

.d-card-sub {
    font-size: 0.85em;
    color: #64748b;
    margin: -10px 0 14px;
}

.d-card-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.d-count {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #64748b;
    font-size: 0.85em;
    padding: 1px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.d-card-body.feedback-content {
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    font-size: 0.97rem;
    white-space: pre-wrap;
}

/* Sidebar cards */
.sidebar-card {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 18px 20px;
}

.sidebar-card--closed {
    border-color: rgba(16,185,129,0.25);
    background: rgba(16,185,129,0.06);
}

.sidebar-card--followup {
    border-color: rgba(59,130,246,0.2);
    background: rgba(59,130,246,0.05);
}

.closed-badge {
    text-align: center;
    font-weight: 800;
    color: #6ee7b7;
    font-size: 0.95em;
}

.sidebar-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-rows { display: flex; flex-direction: column; }

.sidebar-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.87rem;
}

.sidebar-row:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-row:first-child { padding-top: 0; }

.sidebar-row-label { color: #64748b; font-weight: 600; flex-shrink: 0; }
.sidebar-row-value { color: #e2e8f0; font-weight: 700; text-align: right; word-break: break-all; }
.sidebar-row-value--mono { font-family: monospace; font-size: 0.9em; }

/* Action buttons in sidebar */
.action-btn {
    width: 100%;
    padding: 11px 14px;
    border-radius: 11px;
    border: 1px solid;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.88rem;
    transition: all 0.2s;
    text-align: center;
    display: block;
    margin-bottom: 8px;
    background: transparent;
}

.action-btn:last-child { margin-bottom: 0; }

.action-btn--resolve  { background: rgba(16,185,129,0.1);  border-color: rgba(16,185,129,0.35); color: #6ee7b7; }
.action-btn--resolve:hover  { background: rgba(16,185,129,0.2); border-color: rgba(16,185,129,0.6); }

.action-btn--analiza  { background: rgba(59,130,246,0.1);  border-color: rgba(59,130,246,0.35); color: #93c5fd; }
.action-btn--analiza:hover  { background: rgba(59,130,246,0.2); border-color: rgba(59,130,246,0.6); }

.action-btn--discutie { background: rgba(139,92,246,0.1);  border-color: rgba(139,92,246,0.35); color: #c4b5fd; }
.action-btn--discutie:hover { background: rgba(139,92,246,0.2); border-color: rgba(139,92,246,0.6); }

.action-btn--reopen   { background: rgba(100,116,139,0.1); border-color: rgba(100,116,139,0.35); color: #94a3b8; }
.action-btn--reopen:hover   { background: rgba(100,116,139,0.2); }

/* Comments redesign */
.comments-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.comment {
    display: flex;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 13px;
    border-left: 3px solid #334155;
    padding: 14px 16px;
}

.comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.comment-body { flex: 1; min-width: 0; }

.comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85em;
    flex-wrap: wrap;
}

.comment-meta strong { color: #e2e8f0; }
.comment-meta span   { color: #475569; }

.comment p {
    margin: 0;
    line-height: 1.65;
    color: rgba(255,255,255,0.88);
    font-size: 0.93em;
}

/* Comment form */
.comment-form {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 13px;
    padding: 16px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0b1220;
    color: #e2e8f0;
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
    font-size: 0.93em;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.comment-form textarea:focus {
    outline: none;
    border-color: rgba(253,184,19,0.45);
    box-shadow: 0 0 0 3px rgba(253,184,19,0.08);
}

.comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-author-label {
    font-size: 0.85em;
    color: #64748b;
    font-weight: 700;
}

/* Responsive detail */
@media (max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; order: -1; }
    .detail-title-bar { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   DETAIL — fix conținut fără pre-wrap
   ========================================================= */

.d-card-body.feedback-content {
    white-space: normal;
    line-height: 1.75;
}

/* =========================================================
   FILTRU DATĂ + BUSINESS TABLE
   ========================================================= */

/* Filters bar — layout */
.table-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* Filtru dată grupat */
.filter-date-group {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #0b1220;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 0 14px;
    height: 40px;
    transition: border-color 0.2s;
}

.filter-date-group:focus-within {
    border-color: rgba(253,184,19,0.4);
}

.filter-date-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.filter-date-sep {
    color: #334155;
    font-size: 0.9em;
}

.filter-date-input {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 0.87em;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    width: 120px;
}

.filter-date-input::-webkit-calendar-picker-indicator {
    filter: invert(0.4) brightness(1.2);
    cursor: pointer;
    opacity: 0.7;
}

.filter-date-input::-webkit-datetime-edit { color: #cbd5e1; }

/* Reset button */
.btn-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
    padding: 0 14px;
    height: 40px;
    border-radius: 10px;
    font-size: 0.82em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.btn-clear-filters:hover {
    background: rgba(239,68,68,0.2);
    border-color: rgba(239,68,68,0.5);
}

/* Admin filters height consistency */
.admin-body .table-filters select,
.admin-body .table-filters input[type="text"] {
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0b1220;
    color: #e2e8f0;
    outline: none;
    font-size: 0.88em;
    min-width: 160px;
    transition: border-color 0.2s;
}

.admin-body .table-filters select:focus,
.admin-body .table-filters input[type="text"]:focus {
    border-color: rgba(253,184,19,0.4);
}

.admin-body .table-filters input::placeholder {
    color: rgba(226,232,240,0.4);
}

/* Business table improvements */
.table-section {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 22px 24px;
}

.table-responsive {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    margin-top: 4px;
}

th {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #64748b;
    padding: 11px 14px;
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

th:first-child { padding-left: 18px; }
th:last-child  { padding-right: 18px; }
td:first-child { padding-left: 18px; }
td:last-child  { padding-right: 18px; }

.feedback-row:nth-child(even) td {
    background: rgba(255,255,255,0.015);
}

.id-cell {
    font-size: 0.8em;
    font-weight: 800;
    color: #475569;
    font-variant-numeric: tabular-nums;
}

.date-cell {
    font-size: 0.82em;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.actions-cell {
    gap: 6px;
}

.view-btn {
    font-size: 0.8em;
    padding: 5px 11px;
    border-radius: 7px;
}

.delete-btn {
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 0.85em;
}

.status-select {
    font-size: 0.82em;
    padding: 5px 8px;
    min-width: 120px;
}

.category-badge {
    font-size: 0.72rem;
    padding: 3px 9px;
    letter-spacing: 0.5px;
}

.contact-mark, .anon-tag {
    font-size: 0.72rem;
    padding: 3px 8px;
}

@media (max-width: 768px) {
    .filter-date-group { width: 100%; }
    .filter-date-input { width: 100px; }
    .table-section { padding: 16px; }
}

/* =========================================================
   STATS PAGE
   ========================================================= */

.stats-cell-val {
    font-weight: 800;
    font-size: 0.95em;
    font-variant-numeric: tabular-nums;
}

/* Category progress bars */
.stats-category-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0;
}

.stats-cat-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stats-cat-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.stats-cat-label {
    font-weight: 800;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-cat-count {
    font-size: 0.82em;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

.stats-progress-track {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
    overflow: hidden;
}

.stats-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 2px;
}

/* =========================================================
   BADGE FEEDBACK NOI
   ========================================================= */

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #fff;
    font-size: 0.72em;
    font-weight: 900;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    margin-left: 5px;
    vertical-align: middle;
    line-height: 1;
}

.header-new-badge {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.35);
    color: #fca5a5;
    font-size: 0.78em;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.65; }
}

/* =========================================================
   BUTON COPIAZĂ LINK
   ========================================================= */

.detail-title-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-copy-link {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 0.8em;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.btn-copy-link:hover {
    background: rgba(255,255,255,0.1);
    color: #e2e8f0;
}

/* =========================================================
   CONTOR CARACTERE FORMULAR
   ========================================================= */

body:not(.admin-body) .label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

body:not(.admin-body) .label-row label {
    margin-bottom: 0;
}

.char-counter {
    font-size: 0.78em;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    transition: color 0.2s;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.char-counter--short { color: rgba(239,68,68,0.7);  }
.char-counter--ok    { color: rgba(16,185,129,0.7); }
.char-counter--warn  { color: rgba(245,158,11,0.9); }
.char-counter--over  { color: #ef4444; font-size: 0.82em; }

/* =========================================================
   AUDIT FILTERS
   ========================================================= */

.audit-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.audit-filters select,
.audit-filters input {
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0b1220;
    color: #e2e8f0;
    outline: none;
    font-size: 0.88em;
    min-width: 180px;
    transition: border-color 0.2s;
}

.audit-filters select:focus,
.audit-filters input:focus {
    border-color: rgba(253,184,19,0.4);
}

.audit-link {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 700;
}

.audit-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .audit-filters { flex-direction: column; }
    .audit-filters select,
    .audit-filters input { min-width: unset; width: 100%; }
    .detail-title-right { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* =========================================================
   1. ROW CLICK → cursor pointer (CSS only)
   2. PREVIEW TOOLTIP
   ========================================================= */

.feedback-row { cursor: pointer; }

.preview-tooltip {
    position: fixed;
    max-width: 320px;
    background: #0d1526;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 13px;
    padding: 13px 16px;
    font-size: 0.84em;
    line-height: 1.65;
    color: #cbd5e1;
    box-shadow: 0 20px 50px rgba(0,0,0,0.55);
    z-index: 9998;
    pointer-events: none;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Ascunde tooltip pe touch */
@media (hover: none) { .preview-tooltip { display: none !important; } }

/* =========================================================
   4. FLASH VERDE LA SCHIMBARE STATUS
   ========================================================= */

@keyframes rowFlash {
    0%   { background: rgba(16,185,129,0.18); }
    100% { background: transparent; }
}

.row-flash td {
    animation: rowFlash 0.7s ease forwards !important;
}

/* =========================================================
   6. BORDURĂ STÂNGĂ PER STATUS
   ========================================================= */

.row-status--new         td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }
.row-status--in_analiza  td:first-child { box-shadow: inset 3px 0 0 #3b82f6; }
.row-status--in_discutie td:first-child { box-shadow: inset 3px 0 0 #8b5cf6; }
.row-status--inchis      td:first-child { box-shadow: inset 3px 0 0 #10b981; }

/* =========================================================
   7. STAGGERED FADE-IN RÂNDURI
   ========================================================= */

@keyframes rowAppear {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0);   }
}

.row-appear {
    opacity: 0;
    animation: rowAppear 0.22s ease forwards;
}

/* =========================================================
   CAROUSEL + LIGHTBOX
   ========================================================= */

.carousel { width: 100%; }

.carousel-main {
    position: relative;
    background: #0b1220;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    user-select: none;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    z-index: 2;
    line-height: 1;
}

.carousel-btn--prev { left: 12px; }
.carousel-btn--next { right: 12px; }

.carousel-btn:hover {
    background: rgba(0,0,0,0.82);
    transform: translateY(-50%) scale(1.08);
}

/* Thumbs */
.carousel-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.carousel-thumb {
    width: 64px;
    height: 64px;
    border-radius: 9px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.08);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s, transform 0.15s;
    background: none;
    padding: 0;
}

.carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-thumb.active {
    border-color: var(--tarom-gold);
    transform: scale(1.06);
}

.carousel-thumb:hover:not(.active) {
    border-color: rgba(255,255,255,0.3);
}

/* Footer */
.carousel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.82em;
}

.carousel-filename { color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carousel-counter  { color: #475569; font-weight: 700; white-space: nowrap; margin-left: 12px; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox.open { display: flex; }

.lightbox-img {
    max-width: min(90vw, 1200px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.lightbox-close:hover { background: rgba(255,255,255,0.22); }

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 2.2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
    line-height: 1;
}

.lightbox-nav--prev { left: 16px; }
.lightbox-nav--next { right: 16px; }
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }

.lightbox-info {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: #94a3b8;
    font-size: 0.82em;
    padding: 6px 16px;
    border-radius: 999px;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   HAMBURGER MENU
   ========================================================= */

.header-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #94a3b8;
    border-radius: 2px;
    transition: all 0.2s;
}

/* =========================================================
   MOBILE — TABLE CARD VIEW
   ========================================================= */

@media (max-width: 640px) {

    /* Tabel → card view */
    #feedbackTable thead       { display: none; }
    #feedbackTable tbody       { display: flex; flex-direction: column; gap: 10px; padding: 12px; }

    .feedback-row {
        display: block !important;
        background: #1e293b;
        border: 1px solid rgba(255,255,255,0.07);
        border-radius: 14px;
        padding: 14px 16px;
        cursor: pointer;
    }

    /* Bordură stângă pe card */
    .row-status--new         { border-left: 4px solid #f59e0b !important; }
    .row-status--in_analiza  { border-left: 4px solid #3b82f6 !important; }
    .row-status--in_discutie { border-left: 4px solid #8b5cf6 !important; }
    .row-status--inchis      { border-left: 4px solid #10b981 !important; }

    .feedback-row td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 6px 0;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        box-shadow: none !important;
        font-size: 0.9em;
        vertical-align: middle !important;
    }

    .feedback-row td:last-child    { border-bottom: none; }
    .feedback-row td.id-cell       { display: none; }

    .feedback-row td[data-label]:not([data-label=""])::before {
        content: attr(data-label);
        font-weight: 700;
        color: #475569;
        font-size: 0.75em;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
        min-width: 70px;
    }

    .feedback-row .actions-cell {
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 6px;
    }

    .status-select  { min-width: 0; flex: 1; font-size: 0.82em; }
    .category-badge { font-size: 0.68rem; }
    .title-link     { font-size: 0.9em; }
}

/* =========================================================
   MOBILE — HAMBURGER + HEADER
   ========================================================= */

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-bottom: 20px;
    }

    .header-brand {
        padding-bottom: 12px;
    }

    .hamburger { display: flex; }

    .user-info {
        display: none;
        flex-direction: column;
        gap: 8px;
        padding-top: 12px;
        border-top: 1px solid rgba(255,255,255,0.07);
    }

    .user-info.nav-open { display: flex; }

    .user-info .btn-secondary,
    .user-info .btn-danger {
        text-align: center;
        width: 100%;
        padding: 12px;
    }

    .admin-user-badge { text-align: center; }
    .header-new-badge { text-align: center; }
}

@media (min-width: 769px) {
    .hamburger       { display: none !important; }
    .user-info       { display: flex !important; }
    .header-brand    { flex: 0 0 auto; }
}

/* =========================================================
   MOBILE — GENERAL POLISH
   ========================================================= */

@media (max-width: 640px) {

    .admin-container { padding: 12px; }

    /* Stats — 2 coloane pe mobil */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card  { padding: 16px 14px; gap: 12px; }
    .stat-value { font-size: 1.8em; }
    .stat-icon  { width: 42px; height: 42px; font-size: 1.4rem; }

    /* Charts — stacked */
    .charts-grid { grid-template-columns: 1fr !important; gap: 12px; }
    .chart-card  { padding: 16px; }
    .chart-card canvas { max-height: 200px !important; }

    /* Table section */
    .table-section { padding: 14px 0; border-radius: 14px; }
    .table-header-row { padding: 0 14px; margin-bottom: 10px; }
    .table-filters    { padding: 0 14px; gap: 8px; }

    .admin-body .table-filters select,
    .admin-body .table-filters input[type="text"] { min-width: unset; width: 100%; }

    .filter-date-group { width: 100%; }

    /* Pagination */
    .pagination { justify-content: center; gap: 4px; }
    .page-btn   { padding: 7px 11px; font-size: 0.85em; }

    /* Detail page */
    .detail-grid        { grid-template-columns: 1fr; gap: 14px; }
    .detail-sidebar     { position: static; }
    .d-card             { padding: 16px 18px; border-radius: 14px; }
    .detail-title-bar   { padding: 11px 14px; }

    /* Carousel pe mobil */
    .carousel-main  { aspect-ratio: 4 / 3; }
    .carousel-thumb { width: 52px; height: 52px; }
    .lightbox-nav   { width: 42px; height: 42px; font-size: 1.8rem; }
    .lightbox-nav--prev { left: 8px; }
    .lightbox-nav--next { right: 8px; }

    /* Comments */
    .comment { flex-direction: column; gap: 8px; }
    .comment-avatar { width: 28px; height: 28px; font-size: 0.75rem; }
}