/* ==========================================================================
   DESIGN SYSTEM & CORE STYLES - LIGHT GLASSMORPHISM
   ========================================================================== */

:root {
    /* Color Palette - Light Theme */
    --bg-dark: #ffffff;
    --bg-slate: #f8fafc;
    --panel-bg: rgba(255, 255, 255, 0.75);
    --panel-border: rgba(15, 23, 42, 0.08);
    --panel-border-glow: rgba(79, 70, 229, 0.2);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Brand Accents */
    --primary: #4f46e5;       /* Indigo */
    --primary-glow: rgba(79, 70, 229, 0.15);
    --secondary: #0891b2;     /* Cyan */
    --secondary-glow: rgba(8, 145, 178, 0.15);
    --accent: #9333ea;        /* Purple */
    --accent-glow: rgba(147, 51, 234, 0.15);
    
    /* Semantic Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #d97706;       /* Darker orange for light theme readability */
    --warning-bg: rgba(217, 119, 6, 0.1);
    --danger: #e11d48;
    --danger-bg: rgba(225, 29, 72, 0.08);
    --info: #2563eb;
    --info-bg: rgba(37, 99, 235, 0.08);
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;
    
    /* Layout Details */
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.1), 0 4px 15px -3px rgba(15, 23, 42, 0.04);
    --blur: blur(20px);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================================================
   DYNAMIC BACKGROUND DYNAMICS
   ========================================================================== */

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08; /* Lower opacity for light theme */
    z-index: -1;
    pointer-events: none;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: floatGlow 25s infinite alternate;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
    animation: floatGlow 20s infinite alternate-reverse;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    top: 40%;
    right: 15%;
    animation: floatGlow 15s infinite alternate;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 40px) scale(1.1); }
}

/* ==========================================================================
   UTILITY STYLES
   ========================================================================== */

.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.glass-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--panel-border-glow);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15), 0 0 20px 0 rgba(79, 70, 229, 0.04);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.hidden { display: none !important; }
.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.required { color: var(--danger); font-weight: bold; }

/* Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-status.în-așteptare {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(217, 119, 6, 0.2);
}
.badge-status.evaluat {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.badge-status.respins {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(225, 29, 72, 0.18);
}

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--panel-border);
    padding: 14px 0;
    margin-bottom: 30px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.brand-logo {
    height: 80px;
    object-fit: contain;
    margin-right: 4px;
    transition: var(--transition);
}

.brand-logo:hover {
    transform: scale(1.04);
}

.brand-text h1 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.brand-text h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-brand {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: var(--font-secondary);
}

.nav-switcher {
    display: flex;
    background: rgba(15, 23, 42, 0.05);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid var(--panel-border);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 20px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-btn:hover {
    color: var(--text-primary);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.badge-count {
    position: absolute;
    top: -6px;
    right: -2px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
}

/* ==========================================================================
   HERO / WELCOME SECTION
   ========================================================================== */

.hero-section {
    max-width: 800px;
    margin: 20px auto 40px auto;
}

.hero-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-section h2 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   VIEW TOGGLING
   ========================================================================== */

.view-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.view-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   CLIENT PORTAL: LAYOUT & FORM
   ========================================================================== */

.client-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 80px;
    align-items: start;
}

.card-header {
    border-bottom: 1px solid var(--panel-border);
    padding: 24px;
    margin-bottom: 24px;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.card-header h3 i {
    color: var(--primary);
}

.card-header p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

#buyback-form {
    padding: 0 24px 24px 24px;
}

.form-group-section {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 10px;
}

.step-num {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
}

.section-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: -12px;
    margin-bottom: 18px;
}

/* Form Controls */
.form-row {
    display: grid;
    gap: 20px;
    margin-bottom: 16px;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.field-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

input[type="text"],
input[type="number"],
select,
textarea {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--text-primary);
    font-family: var(--font-secondary);
    padding: 10px 14px;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
    width: 100%;
}

input[type="text"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.12);
    background-color: #fff;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

select option {
    background-color: #fff;
    color: var(--text-primary);
}

/* Input Addon */
.input-with-addon {
    display: flex;
    position: relative;
    align-items: center;
}

.input-with-addon input {
    padding-right: 50px;
}

.input-with-addon .addon {
    position: absolute;
    right: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    pointer-events: none;
}

/* Rating Stars */
.rating-stars-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.04);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.rating-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.stars {
    display: flex;
    gap: 6px;
    color: var(--text-muted);
}

.stars i {
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, color 0.2s;
}

.stars i:hover {
    transform: scale(1.2);
}

.stars i.active {
    color: #d97706; /* readable dark gold/orange */
}

/* ==========================================================================
   ADVANCED UPLOAD AREA
   ========================================================================== */

.upload-area {
    border: 2px dashed rgba(79, 70, 229, 0.25);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(79, 70, 229, 0.02);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
    box-shadow: inset 0 0 20px rgba(79, 70, 229, 0.03);
}

.upload-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 12px;
}

.cloud-icon {
    font-size: 2.2rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.img-small-icon,
.pdf-small-icon {
    position: absolute;
    font-size: 0.9rem;
    bottom: -4px;
    opacity: 0.8;
}

.img-small-icon {
    color: var(--accent);
    left: calc(50% - 25px);
}

.pdf-small-icon {
    color: var(--secondary);
    right: calc(50% - 25px);
}

.upload-area:hover .cloud-icon {
    transform: translateY(-4px);
}

.upload-area h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.upload-limits {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.upload-limits strong {
    color: var(--text-primary);
}

.upload-size-info {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Upload Queue Items */
.upload-queue-container {
    margin-top: 20px;
    background: rgba(15, 23, 42, 0.02);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--panel-border);
}

.upload-queue-container h6 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.upload-queue {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

.queue-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--panel-border);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    gap: 12px;
    box-shadow: 0 2px 5px rgba(15,23,42,0.02);
    animation: slideInLeft 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

.file-preview {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-slate);
    border: 1px solid rgba(15, 23, 42, 0.04);
    flex-shrink: 0;
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview i {
    font-size: 1.3rem;
}

.file-preview i.fa-file-pdf { color: #e11d48; }
.file-preview i.fa-file-word { color: #2563eb; }
.file-preview i.fa-file-lines { color: #64748b; }

.file-details {
    flex-grow: 1;
    min-width: 0;
}

.file-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.file-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.file-size {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: var(--font-secondary);
}

/* File progress */
.file-progress-bar {
    height: 4px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-fill.complete {
    background: var(--success);
}

.btn-remove-file {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-remove-file:hover {
    color: var(--danger);
    background: rgba(225, 29, 72, 0.08);
}

/* ==========================================================================
   FORM BUTTONS
   ========================================================================== */

.form-actions {
    margin-top: 10px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    color: #fff;
    padding: 14px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4), 0 0 15px rgba(147, 51, 234, 0.15);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   SIDE TRACKING PANEL
   ========================================================================== */

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.instruction-card {
    padding: 24px;
}

.instruction-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.instruction-card h4 i {
    color: var(--primary);
}

.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.steps-list li {
    display: flex;
    gap: 14px;
}

.steps-list .bullet {
    width: 24px;
    height: 24px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid var(--panel-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.steps-list li:hover .bullet {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.steps-list strong {
    display: block;
    font-size: 0.82rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.steps-list p {
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Tracker styling */
.status-card {
    padding: 24px;
}

.status-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-card h4 i {
    color: var(--secondary);
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-bottom: 16px;
}

.tracker-search {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.search-input-wrapper {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-input-wrapper input {
    padding-left: 36px;
}

.search-btn {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: #3b82f6;
}

/* My Cars list tag buttons */
.my-cars-selector {
    margin-top: 14px;
    border-top: 1px solid rgba(15,23,42,0.06);
    padding-top: 14px;
}

.my-cars-selector .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.cars-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-btn {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--panel-border);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 500;
    transition: var(--transition);
}

.tag-btn:hover {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.07);
    border-color: var(--text-secondary);
}

/* Live Tracker Result details */
.tracker-result-area {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    border: 1px solid var(--panel-border);
    padding: 16px;
    box-shadow: 0 4px 15px rgba(15,23,42,0.02);
    animation: fadeIn 0.3s ease;
}

.tracker-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.tracker-car-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tracker-car-vin {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: var(--font-secondary);
}

.tracker-body-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tracker-step-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 10px 0;
}

.tracker-step-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: rgba(15, 23, 42, 0.06);
    z-index: 1;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.node-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 2px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.step-node.completed .node-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px var(--primary-glow);
}

.step-node.active .node-dot {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
    box-shadow: 0 0 10px var(--secondary-glow);
}

.step-node.rejected .node-dot {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.node-text {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 6px;
    text-transform: uppercase;
}

.step-node.active .node-text,
.step-node.completed .node-text {
    color: var(--text-primary);
}

.step-node.rejected .node-text {
    color: var(--danger);
}

/* Offer box */
.offer-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(8, 145, 178, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-top: 6px;
    text-align: center;
}

.offer-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.offer-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--success);
    margin: 4px 0;
    letter-spacing: -0.02em;
}

.offer-comments {
    font-size: 0.76rem;
    color: var(--text-primary);
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    margin-top: 8px;
    text-align: left;
    border-left: 3px solid var(--success);
    border-right: 1px solid rgba(15,23,42,0.04);
    border-top: 1px solid rgba(15,23,42,0.04);
    border-bottom: 1px solid rgba(15,23,42,0.04);
}

.offer-decisions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.offer-action-btn {
    border: none;
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: var(--transition);
}

.offer-action-btn.accept {
    background: var(--success);
    color: #fff;
}

.offer-action-btn.accept:hover {
    background: #059669;
}

.offer-action-btn.decline {
    background: rgba(225, 29, 72, 0.06);
    color: var(--danger);
    border: 1px solid rgba(225, 29, 72, 0.15);
}

.offer-action-btn.decline:hover {
    background: var(--danger-bg);
}

.rejection-box {
    background: rgba(225, 29, 72, 0.03);
    border: 1px solid rgba(225, 29, 72, 0.15);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 6px;
}

.rejection-title {
    font-size: 0.75rem;
    color: var(--danger);
    font-weight: 700;
    text-transform: uppercase;
}

.rejection-reason {
    font-size: 0.76rem;
    color: var(--text-primary);
    margin-top: 4px;
}

/* ==========================================================================
   ADMIN PORTAL: LAYOUT & INTERACTIVE DASHBOARD
   ========================================================================== */

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-header-row h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.admin-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.mock-btn {
    background: rgba(8, 145, 178, 0.06);
    border: 1px solid rgba(8, 145, 178, 0.2);
    color: var(--secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.mock-btn:hover {
    background: var(--secondary);
    color: #fff;
}

/* Stats Row */
.stats-row {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.stats-row.col-4 {
    grid-template-columns: repeat(4, 1fr);
}

.stat-card {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 2px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.stat-icon.bg-blue { background: rgba(37, 99, 235, 0.08); color: #2563eb; }
.stat-icon.bg-warning { background: rgba(217, 119, 6, 0.08); color: #d97706; }
.stat-icon.bg-success { background: rgba(16, 185, 129, 0.08); color: #10b981; }
.stat-icon.bg-accent { background: rgba(147, 51, 234, 0.08); color: #9333ea; }

/* Grid columns for admin content */
.admin-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    min-height: 550px;
    align-items: start;
    margin-bottom: 80px;
}

/* Admin List Panel Left Side */
.admin-list-panel {
    display: flex;
    flex-direction: column;
    max-height: 650px;
}

.panel-header {
    padding: 16px;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-btn {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--panel-border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.05);
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.filter-btn .badge {
    background: #d97706;
    color: #fff;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 10px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.search-bar input {
    padding: 8px 12px 8px 34px;
    font-size: 0.8rem;
    background: rgba(15,23,42,0.03);
}

/* Submissions scrolling list */
.submissions-list {
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    max-height: 520px;
}

.list-item {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border-bottom: 1px solid var(--panel-border);
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.list-item:hover {
    background: rgba(15, 23, 42, 0.02);
}

.list-item.selected {
    background: rgba(79, 70, 229, 0.06);
    border-left-color: var(--primary);
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.car-title-primary {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.car-meta-subtitle {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
}

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

.list-item-date {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.list-item-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
}

.empty-list-state {
    padding: 50px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-list-state i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: rgba(15, 23, 42, 0.05);
}

.empty-list-state p {
    font-size: 0.8rem;
}

/* Admin Detail Panel Right Side */
.admin-detail-panel {
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.detail-placeholder-content {
    margin: auto;
    text-align: center;
    max-width: 420px;
    padding: 40px;
}

.detail-placeholder-content i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.detail-placeholder-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.detail-placeholder-content p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Detail Panel loaded content */
.admin-detail-header {
    border-bottom: 1px solid var(--panel-border);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-title h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.detail-title p {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-secondary);
}

.admin-detail-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 520px;
}

.detail-grid-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-box-group {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.info-box-group h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.damage-detail-highlight {
    background: rgba(225, 29, 72, 0.04);
    border: 1px solid rgba(225, 29, 72, 0.15);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 12px;
}

.damage-detail-highlight label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 2px;
}

.damage-detail-highlight p {
    font-size: 0.78rem;
    color: var(--text-primary);
}

/* Files analysis component */
.files-preview-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.gallery-thumbnail-card {
    height: 80px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--panel-border);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.gallery-thumbnail-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-thumbnail-card:hover img {
    transform: scale(1.1);
}

.doc-thumbnail-card {
    height: 80px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--panel-border);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    padding: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.doc-thumbnail-card:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.02);
}

.doc-thumbnail-card i {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.doc-thumbnail-card i.fa-file-pdf { color: #e11d48; }
.doc-thumbnail-card i.fa-file-word { color: #2563eb; }
.doc-thumbnail-card i.fa-file-lines { color: #64748b; }

.doc-name-small {
    font-size: 0.6rem;
    color: var(--text-secondary);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Evaluation assessment form panel */
.evaluation-action-box {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03) 0%, rgba(147, 51, 234, 0.03) 100%);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: var(--radius-md);
    padding: 20px;
}

.evaluation-action-box h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.evaluation-action-box h4 i {
    color: var(--accent);
}

.eval-decision-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.03);
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--panel-border);
    margin-bottom: 16px;
}

.eval-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.eval-tab-btn.active.approve {
    background: var(--success);
    color: #fff;
}

.eval-tab-btn.active.reject {
    background: var(--danger);
    color: #fff;
}

.eval-inputs-area {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.market-calculator-badge {
    background: rgba(8, 145, 178, 0.05);
    border: 1px solid rgba(8, 145, 178, 0.15);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.72rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary);
}

.market-calculator-badge strong {
    color: var(--text-primary);
    font-size: 0.8rem;
}

.quick-templates-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.template-tag {
    background: #fff;
    border: 1px solid var(--panel-border);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.68rem;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.template-tag:hover {
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary);
    border-color: var(--primary);
}

.eval-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
    border-top: 1px solid rgba(15,23,42,0.06);
    padding-top: 14px;
}

.eval-submit-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.eval-submit-btn.success {
    background: var(--success);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.eval-submit-btn.success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

.eval-submit-btn.danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.2);
}

.eval-submit-btn.danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.3);
}

/* ==========================================================================
   PHOTO LIGHTBOX MODAL
   ========================================================================== */

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1002;
}

.lightbox-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 85%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

.lightbox-caption {
    color: #fff;
    font-size: 0.88rem;
    margin-top: 14px;
    text-align: center;
    background: rgba(0,0,0,0.6);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
}

.lightbox-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.lightbox-nav.prev { left: 40px; }
.lightbox-nav.next { right: 40px; }

/* ==========================================================================
   TOAST SYSTEM (NOTIFICATIONS)
   ========================================================================== */

.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
    max-width: 350px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--panel-border);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 30px rgba(15,23,42,0.08);
    backdrop-filter: var(--blur);
    color: var(--text-primary);
    animation: toastSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.25);
    border-left: 4px solid var(--primary);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast.success { border-left-color: var(--success); }
.toast.warning { border-left-color: var(--warning); }
.toast.danger { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--info); }

.toast-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--success); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.danger .toast-icon { color: var(--danger); }
.toast.info .toast-icon { color: var(--info); }

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-size: 0.85rem;
    font-weight: 700;
}

.toast-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
    .client-grid {
        grid-template-columns: 1fr;
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .admin-list-panel {
        max-height: 350px;
    }
    .submissions-list {
        max-height: 230px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .stats-row.col-4 {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row.col-2,
    .form-row.col-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .detail-grid-section {
        grid-template-columns: 1fr;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
}

@media (max-width: 480px) {
    .stats-row.col-4 {
        grid-template-columns: 1fr;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
    
    .brand-text h1 {
        font-size: 1.1rem;
    }
}

/* Ascundere implicită a portalului de evaluator pentru vizitatorii obișnuiți */
#btn-admin-view {
    display: none !important;
}

/* Custom User Management & Editing Styles */
.tab-btn {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--panel-border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.05);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.admin-panel-content.hidden {
    display: none !important;
}

.table-responsive table th, .table-responsive table td {
    border-bottom: 1px solid var(--panel-border);
    font-family: var(--font-secondary);
    font-size: 0.84rem;
}
