/* Design System & Variables */
:root {
    --bg-base: hsl(222, 25%, 10%);
    --bg-sidebar: hsl(222, 28%, 7%);
    --glass-bg: hsla(222, 20%, 15%, 0.55);
    --glass-border: hsla(0, 0%, 100%, 0.08);
    --glass-highlight: hsla(0, 0%, 100%, 0.03);
    
    --primary: hsl(38, 95%, 55%); /* Sporty Amber */
    --primary-hover: hsl(38, 95%, 48%);
    --primary-glow: hsla(38, 95%, 55%, 0.15);
    
    --text-main: hsl(210, 20%, 98%);
    --text-muted: hsl(215, 12%, 72%);
    --text-dim: hsl(215, 8%, 50%);
    
    /* Semantic Colors */
    --color-blue: hsl(210, 85%, 55%);
    --color-blue-bg: hsla(210, 85%, 55%, 0.15);
    
    --color-green: hsl(145, 75%, 45%);
    --color-green-bg: hsla(145, 75%, 45%, 0.15);
    
    --color-amber: hsl(40, 85%, 55%);
    --color-amber-bg: hsla(40, 85%, 55%, 0.15);
    
    --color-red: hsl(5, 80%, 60%);
    --color-red-bg: hsla(5, 80%, 60%, 0.15);
    
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 6px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --sidebar-width: 260px;
    
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-inner: inset 0 2px 4px 0 rgba(255, 255, 255, 0.05);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: hsla(0, 0%, 100%, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: hsla(0, 0%, 100%, 0.2);
}

/* Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: fixed;
    height: 100vh;
    z-index: 10;
    transition: transform 0.3s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding-left: 8px;
}

.logo-icon {
    font-size: 24px;
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-btn i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-btn:hover {
    color: var(--text-main);
    background-color: var(--glass-highlight);
}

.nav-btn.active {
    color: var(--primary);
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-inner);
}

.nav-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 4px;
    background-color: var(--primary);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--primary);
}

.badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
}
.badge-red {
    background-color: var(--color-red-bg);
    color: var(--color-red);
}
.badge-amber {
    background-color: var(--color-amber-bg);
    color: var(--color-amber);
}

.sidebar-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
}
.user-info i {
    font-size: 20px;
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 40px;
    min-height: 100vh;
}

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

.content-header h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 32px;
    letter-spacing: -0.5px;
}

/* Tab Management */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* UI Elements: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.btn-primary {
    background-color: var(--primary);
    color: hsl(222, 28%, 7%);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 16px var(--primary-glow);
}
.btn-secondary {
    background-color: var(--glass-bg);
    color: var(--text-main);
    border-color: var(--glass-border);
}
.btn-secondary:hover {
    background-color: hsla(222, 20%, 25%, 0.7);
}
.btn-outline {
    background-color: transparent;
    color: var(--text-muted);
    border-color: var(--glass-border);
}
.btn-outline:hover {
    color: var(--text-main);
    background-color: var(--glass-highlight);
    border-color: var(--text-dim);
}
.btn-outline.active {
    background-color: var(--primary-glow);
    color: var(--primary);
    border-color: var(--primary);
}
.btn-full {
    width: 100%;
    justify-content: flex-start;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}
.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    transition: all 0.15s ease;
}
.btn-icon:hover {
    color: var(--text-main);
    background-color: var(--glass-highlight);
}
.btn-back {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}
.btn-back:hover {
    color: var(--primary);
}

/* UI Cards - Glassmorphism */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft), var(--shadow-inner);
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 24px;
}

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

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-soft);
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.icon-blue { background-color: var(--color-blue-bg); color: var(--color-blue); }
.icon-red { background-color: var(--color-red-bg); color: var(--color-red); }
.icon-amber { background-color: var(--color-amber-bg); color: var(--color-amber); }

.stat-details {
    display: flex;
    flex-direction: column;
}
.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
}

/* Layout for Dashboard Sections */
.dashboard-sections {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.quick-actions-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Search Controls */
.registry-controls {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.search-bar {
    position: relative;
    flex-grow: 1;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

#search-input {
    width: 100%;
    background-color: hsla(222, 20%, 8%, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 12px 16px 12px 48px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.2s ease;
}

#search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Cars Grid View */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.car-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px -10px rgba(0,0,0,0.5), 0 0 10px var(--primary-glow);
}

.car-card-header {
    padding: 20px 20px 12px 20px;
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.car-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
}

.car-card-client {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.badge-plate {
    display: inline-block;
    background-color: #f0f0f0;
    color: #111;
    font-family: 'Inter', monospace;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    border: 2px solid #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.car-card-body {
    padding: 16px 20px;
    flex-grow: 1;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.car-card-row {
    display: flex;
    justify-content: space-between;
}

.car-card-row span:first-child {
    color: var(--text-dim);
}

.car-card-row span:last-child {
    font-weight: 500;
    color: var(--text-main);
}

.car-card-footer {
    padding: 12px 20px 20px 20px;
    border-top: 1px solid hsla(0, 0%, 100%, 0.05);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Status Badges */
.status-pill {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.status-green { background-color: var(--color-green-bg); color: var(--color-green); }
.status-amber { background-color: var(--color-amber-bg); color: var(--color-amber); }
.status-red { background-color: var(--color-red-bg); color: var(--color-red); }
.status-blue { background-color: var(--color-blue-bg); color: var(--color-blue); }

/* Tables Design */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.table th {
    padding: 14px 16px;
    color: var(--text-dim);
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
    font-family: var(--font-heading);
}

.table td {
    padding: 16px;
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.05);
    color: var(--text-muted);
}

.table tbody tr:hover td {
    background-color: var(--glass-highlight);
    color: var(--text-main);
}

.table-car-link {
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.15s ease;
}
.table-car-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Car Details Subview Grid */
.car-details-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    align-items: start;
}

.spec-container, .history-container {
    display: flex;
    flex-direction: column;
}

.owner-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.owner-contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.owner-notes {
    background-color: hsla(222, 20%, 8%, 0.4);
    border-radius: var(--border-radius-md);
    padding: 12px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
    border: 1px dashed var(--glass-border);
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.03);
    padding-bottom: 10px;
    font-size: 14px;
}
.spec-item.full-width {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: none;
}

.spec-label {
    color: var(--text-dim);
}

.spec-value {
    font-weight: 500;
}

.text-mono {
    font-family: monospace;
}

.spec-notes {
    width: 100%;
    margin-top: 6px;
    background-color: hsla(222, 20%, 8%, 0.4);
    border-radius: var(--border-radius-md);
    padding: 12px;
    font-size: 13px;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    min-height: 50px;
}

/* Timeline/History Log */
.timeline {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid var(--glass-border);
    margin-left: 8px;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: -33px;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-base);
    border: 3px solid var(--glass-border);
    transition: all 0.2s ease;
}

.timeline-item:hover .timeline-badge {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.timeline-badge.badge-maintenance { border-color: var(--color-blue); }
.timeline-badge.badge-repair { border-color: var(--color-green); }
.timeline-badge.badge-reclamation { border-color: var(--color-red); }

.timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.timeline-date {
    font-size: 12px;
    color: var(--text-dim);
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
}

.timeline-mileage {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.timeline-content {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.timeline-notes-box {
    background-color: hsla(222, 20%, 8%, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 8px 12px;
    margin-bottom: 10px;
    border-left: 3px solid var(--text-dim);
}
.timeline-notes-box.notes-complaint {
    border-left-color: var(--color-red);
}
.timeline-notes-box.notes-diagnosis {
    border-left-color: var(--color-amber);
}

.notes-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}
.notes-label.complaint { color: var(--color-red); }
.notes-label.diagnosis { color: var(--color-amber); }

.timeline-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-dim);
}
.timeline-meta span i {
    margin-right: 4px;
}

.timeline-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Schedules Sub-list on Car Detail */
.schedules-list-sub {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-sub-item {
    background-color: hsla(222, 20%, 8%, 0.3);
    border-radius: var(--border-radius-md);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--glass-border);
}

.sched-sub-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.sched-sub-info {
    flex-grow: 1;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
}

.sched-sub-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
}

.sched-sub-due {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.sched-sub-due strong {
    color: var(--text-main);
}

.sched-sub-actions {
    display: flex;
    gap: 8px;
}

/* Modals / Dialogs Style */
.modal {
    border: none;
    background: transparent;
    padding: 0;
    margin: auto;
    max-width: 90vw;
    width: 600px;
    outline: none;
}

.modal::backdrop {
    background: rgba(8, 11, 16, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: zoomIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 20px;
    transition: color 0.15s ease;
}
.btn-close:hover {
    color: var(--text-main);
}

form {
    padding: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

input, select, textarea {
    background-color: hsla(222, 20%, 8%, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Communication Channels Panel */
.communication-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.communication-link:hover {
    transform: scale(1.15);
}

.com-call { background-color: var(--color-blue); }
.com-sms { background-color: hsl(200, 75%, 50%); }
.com-wa { background-color: #25D366; }
.com-viber { background-color: #7360F2; }

/* Responsive Adjustments */
@media (max-width: 900px) {
    .app-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 16px;
    }
    
    .sidebar-header {
        margin-bottom: 16px;
    }
    
    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .nav-btn.active::before {
        display: none;
    }
    
    .sidebar-footer, .user-info {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .car-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Helpers */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: center;
}
.lang-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.lang-btn.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

/* Login Screen */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-main);
    padding: 20px;
}
.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.login-header {
    text-align: center;
    margin-bottom: 30px;
}
.login-header h2 {
    font-size: 24px;
    margin: 0;
}
.login-error {
    color: var(--color-red);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
    text-align: center;
}
.mt-2 {
    margin-top: 12px;
}

/* Clients Grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.client-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.client-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.client-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.client-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.client-card-info {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.client-card-notes {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
    margin-top: 5px;
}
