/* 
 * YerimeSat CRM - Core Premium Style Sheet
 * Built using CSS Variables, modern layout practices, and responsive design.
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #39B54A;
    --primary-hover: #2e9b3b;
    --primary-light: rgba(57, 181, 74, 0.1);
    --primary-glow: rgba(57, 181, 74, 0.25);
    
    --bg-dark-start: #042d13;
    --bg-dark-end: #011307;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    
    /* System Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    
    /* Layout & Spacing */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* Auth Layout */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    background-color: var(--bg-main);
}

.auth-side-brand {
    flex: 1.2;
    background: radial-gradient(circle at center, var(--bg-dark-start) 0%, var(--bg-dark-end) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* Decorative background light */
.auth-side-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(57, 181, 74, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.brand-logo-white {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.logo-green-text {
    color: var(--primary);
}

.logo-white-text {
    color: #ffffff;
}

.brand-hero-content {
    margin: auto 0;
    max-width: 580px;
    z-index: 10;
}

.brand-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: rgba(57, 181, 74, 0.2);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.brand-hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
}

/* Interactive features preview in Login */
.brand-preview-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.preview-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, background 0.3s ease;
}

.preview-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.preview-card .icon-box {
    width: 42px;
    height: 42px;
    background-color: rgba(57, 181, 74, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1rem;
}

.preview-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.preview-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.brand-footer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    z-index: 10;
}

/* Right form side */
.auth-side-form {
    flex: 0.9;
    background-color: var(--bg-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 6rem;
    position: relative;
}

.login-form-container {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
}

.alert-message {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-danger {
    background-color: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

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

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

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-main);
    transition: all 0.25s ease;
    color: var(--text-main);
}

.input-wrapper input:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.error-text {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 0.4rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.remember-me input {
    cursor: pointer;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.forgot-password {
    color: var(--primary);
    font-weight: 600;
}

.forgot-password:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 0.95rem;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    box-shadow: 0 4px 12px rgba(57, 181, 74, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(57, 181, 74, 0.3);
}

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

/* Dashboard Core Layout */
.dashboard-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

/* Sidebar navigation */
.sidebar {
    width: 280px;
    background-color: #0f172a; /* Premium dark background slate-900 */
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1rem;
    flex-shrink: 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    will-change: width, padding;
}

.sidebar.collapsed {
    margin-left: -280px;
}

/* Slim Sidebar on Desktop */
@media (min-width: 769px) {
    .sidebar.collapsed {
        margin-left: 0 !important;
        width: 80px;
        padding: 2rem 0.5rem;
    }
    
    .sidebar.collapsed:hover {
        width: 280px;
        padding: 2rem 1rem;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
        position: relative;
        z-index: 100;
    }
    
    /* Adjust logo background and padding when collapsed */
    .sidebar.collapsed .sidebar-logo {
        padding: 0.4rem;
        margin: 1rem 0.25rem 2.5rem 0.25rem;
    }
    
    .sidebar.collapsed:hover .sidebar-logo {
        padding: 0.5rem 1rem;
        margin: 1.5rem 0.75rem 2.5rem 0.75rem;
    }
    
    /* Collapse menu item spans */
    .sidebar.collapsed .sidebar-item a span {
        display: none;
    }
    
    .sidebar.collapsed:hover .sidebar-item a span {
        display: inline-block;
        margin-left: 0.25rem;
    }
    
    .sidebar.collapsed .sidebar-item a {
        justify-content: center;
        gap: 0;
    }
    
    .sidebar.collapsed:hover .sidebar-item a {
        justify-content: flex-start;
        gap: 0.75rem;
    }
    
    /* Collapse user card */
    .sidebar.collapsed .sidebar-user {
        justify-content: center;
        padding: 0.75rem 0;
    }
    
    .sidebar.collapsed:hover .sidebar-user {
        justify-content: flex-start;
        padding: 0.75rem;
    }
    
    .sidebar.collapsed .sidebar-user .user-details-col,
    .sidebar.collapsed .sidebar-user .chevron-icon {
        display: none;
    }
    
    .sidebar.collapsed:hover .sidebar-user .user-details-col,
    .sidebar.collapsed:hover .sidebar-user .chevron-icon {
        display: flex;
    }
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff; /* White background to make the black logo visible */
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0.75rem 2.5rem 0.75rem;
    transition: all 0.3s ease;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: auto;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding-right: 0.25rem;
}

/* Custom scrollbar for sidebar menu */
.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}
.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.sidebar-item.active a {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.sidebar-item.active a svg {
    color: #ffffff !important;
}

.sidebar-item a:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.sidebar-item a:hover svg {
    color: #ffffff;
}

.sidebar-item svg {
    width: 20px;
    height: 20px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

/* Sidebar User Card */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    position: relative;
    margin-top: auto;
    user-select: none;
    transition: background-color 0.2s ease;
}

.sidebar-user:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.user-avatar-circle {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.user-details-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.user-details-col .company-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.user-details-col .user-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-details-col .user-role {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 1px;
}

.sidebar-user .chevron-icon {
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.sidebar-user.active .chevron-icon {
    transform: rotate(180deg);
}

/* Sidebar User Dropdown (Upward Opening) */
.sidebar-user-dropdown {
    display: none;
    position: absolute;
    bottom: 110%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    margin-bottom: 6px;
}

.sidebar-user-dropdown.show {
    display: block;
}

.sidebar-user-dropdown-header {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-user-dropdown-header h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.sidebar-user-dropdown-header span {
    font-size: 0.75rem;
    color: #94a3b8;
}

.sidebar-user-dropdown-body {
    padding: 0.35rem 0;
}

.sidebar-user-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.sidebar-user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.sidebar-user-dropdown-item.logout {
    color: #f87171;
}

.sidebar-user-dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

/* Dashboard Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);
    height: 100%;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.top-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    min-height: 72px;
}

.top-bar-title {
    display: flex;
    align-items: center;
    gap: 0.85rem !important;
}

.top-bar-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(57, 181, 74, 0.08);
    border: 1px solid rgba(57, 181, 74, 0.15);
    border-radius: 10px;
    color: var(--primary);
    flex-shrink: 0;
}

.top-bar-icon-box svg {
    width: 20px;
    height: 20px;
}

.top-bar h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem !important;
}

/* Global Widgets */
.top-bar-date-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-bar-date-filter:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.top-bar-date-filter svg {
    color: var(--text-muted);
}

.top-bar-notification {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-main);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-bar-notification:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.top-bar-notification .notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
}

/* Redesign Top Action Buttons */
.top-bar-actions .btn-pill {
    padding: 0.55rem 1.1rem;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px; /* Square/modern edges like screenshot */
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.top-bar-actions .btn-pill:hover {
    background-color: var(--primary-hover);
}

.top-bar-actions .btn-pill svg {
    color: #ffffff;
}

.btn-pill {
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--primary);
    color: var(--primary);
    background: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-pill:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.content-body {
    padding: 2.5rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
    max-width: 100%;
}

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

.stat-card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

.stat-icon.cars { background-color: rgba(57, 181, 74, 0.1); color: var(--primary); }
.stat-icon.ads { background-color: rgba(14, 165, 233, 0.1); color: var(--info); }
.stat-icon.customers { background-color: rgba(245, 158, 11, 0.1); color: var(--warning); }
.stat-icon.sales { background-color: rgba(16, 185, 129, 0.1); color: var(--success); }

/* Dashboard Tables/Lists */
.dashboard-card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2.5rem;
    overflow: hidden;
}

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

.card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table th {
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
}

table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.yayinda { background-color: rgba(16, 185, 129, 0.1); color: var(--success); }
.status-badge.beklemede { background-color: rgba(245, 158, 11, 0.1); color: var(--warning); }
.status-badge.satildi { background-color: rgba(100, 116, 139, 0.1); color: var(--text-muted); }

/* Responsive adjustments */
@media (max-width: 1200px) {
    .auth-side-brand {
        display: none;
    }
    .auth-side-form {
        flex: 1;
        padding: 4rem;
    }
}

@media (max-width: 768px) {
    .dashboard-wrapper {
        flex-direction: row;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 10000;
        width: 280px;
        height: 100vh;
        margin-left: -280px;
        box-shadow: var(--shadow-lg);
    }
    .sidebar.active {
        margin-left: 0;
    }
    .sidebar.collapsed {
        margin-left: -280px;
    }
    .top-bar {
        padding: 1.2rem 1.5rem;
    }
    .content-body {
        padding: 1.5rem;
    }
    
    .sidebar-mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 9999;
        display: none;
        backdrop-filter: blur(3px);
    }
    .sidebar-mobile-overlay.active {
        display: block;
    }
}

.btn-sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s, color 0.2s;
}

.btn-sidebar-toggle:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* --- New Dashboard Yenileme Styles --- */

/* Welcome Banner */
.welcome-banner {
    background: radial-gradient(circle at 20% 50%, var(--bg-dark-start) 0%, var(--bg-dark-end) 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(57, 181, 74, 0.2);
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(57, 181, 74, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-banner h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.welcome-banner p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.welcome-banner .quick-info {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.welcome-banner .info-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.welcome-banner .info-tag svg {
    color: var(--primary);
}

/* Dashboard Layout Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Section Cards */
.section-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 1.8rem;
    margin-bottom: 2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-card:hover {
    box-shadow: var(--shadow-md);
}

.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.section-card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Today's Appointments List */
.appointment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.appointment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-main);
    cursor: pointer;
    transition: all 0.25s ease;
}

.appointment-item:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.appointment-item .client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.appointment-item .client-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(57, 181, 74, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.appointment-item .client-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.appointment-item .client-details span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.appointment-item .appointment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.appointment-item .time-badge {
    background-color: var(--bg-dark-start);
    color: #ffffff;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Appointment Item Status Colors */
.appointment-item.status-active {
    border-left: 4px solid var(--warning); /* Yellow */
    background-color: rgba(245, 158, 11, 0.05);
}
.appointment-item.status-completed {
    border-left: 4px solid var(--success); /* Green */
    background-color: rgba(16, 185, 129, 0.05);
}
.appointment-item.status-cancelled {
    border-left: 4px solid var(--danger); /* Red */
    background-color: rgba(239, 68, 68, 0.05);
}
.appointment-item.status-waiting {
    border-left: 4px solid var(--border-color); /* Default / White equivalent */
    background-color: var(--bg-main);
}

/* Weekly Plan Calendar Styling */
.weekly-calendar-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.weekday-row {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-card);
}

.weekday-label {
    width: 110px;
    background-color: var(--bg-main);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    text-align: center;
    flex-shrink: 0;
}

.weekday-label.today {
    background: radial-gradient(circle, var(--bg-dark-start) 0%, var(--bg-dark-end) 100%);
    color: #ffffff;
    border-right-color: var(--bg-dark-end);
}

.weekday-events {
    flex: 1;
    padding: 0.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    justify-content: center;
}

.week-event-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.week-event-item .event-time {
    font-weight: 700;
    color: var(--primary);
    min-width: 45px;
}

.week-event-item .event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    flex-shrink: 0;
}

.week-event-item.meeting .event-dot { background-color: var(--info); }
.week-event-item.sale .event-dot { background-color: var(--success); }
.week-event-item.valuation .event-dot { background-color: var(--warning); }
.week-event-item.notary .event-dot { background-color: var(--danger); }
.week-event-item.off .event-dot { background-color: var(--text-muted); }

.week-event-item .event-title {
    font-weight: 500;
    color: var(--text-main);
}

/* Today's Tasks Styling */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.task-card-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-main);
    transition: all 0.2s ease;
}

.task-card-item:hover {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.task-card-item input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.task-card-item.completed {
    opacity: 0.65;
}

.task-card-item.completed .task-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-card-item .task-text {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.4;
}

.task-priority-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.task-priority-badge.yuksek { background-color: rgba(239, 68, 68, 0.1); color: var(--danger); }
.task-priority-badge.orta { background-color: rgba(245, 158, 11, 0.1); color: var(--warning); }
.task-priority-badge.dusuk { background-color: rgba(14, 165, 233, 0.1); color: var(--info); }

/* Premium Glassmorphic Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(1, 19, 7, 0.45);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(57, 181, 74, 0.15);
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    background: radial-gradient(circle at 10% 50%, var(--bg-dark-start) 0%, var(--bg-dark-end) 100%);
    padding: 1.5rem 2rem;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background-color: var(--danger);
    color: #ffffff;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.modal-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
    color: var(--bg-dark-start);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section-title svg {
    color: var(--primary);
}

/* Detail Lists in Modal */
.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
}

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

.detail-item span.label {
    color: var(--text-muted);
    font-weight: 500;
}

.detail-item span.value {
    color: var(--text-main);
    font-weight: 600;
}

/* Modal Car Styling */
.modal-car-preview {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.modal-car-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.modal-car-preview h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.modal-car-preview .price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

/* --- Leads (Müşteri Adayları) Modülü Stilleri --- */

/* Filter Bar Styling */
.leads-filter-bar {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.filter-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.filter-row.bottom {
    justify-content: space-between;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.filter-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.filter-control:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-reset-filters {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    align-self: flex-end;
    transition: all 0.2s ease;
}

.btn-reset-filters:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Leads Main Layout Grid */
.leads-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .leads-main-grid {
        grid-template-columns: 1fr;
    }
}

/* Source Badges */
.source-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.source-badge.web-sitesi { background-color: rgba(57, 181, 74, 0.1); color: var(--primary); }
.source-badge.sahibinden { background-color: rgba(245, 158, 11, 0.1); color: var(--warning); }
.source-badge.instagram { background-color: rgba(239, 68, 68, 0.1); color: var(--danger); }
.source-badge.telefon { background-color: rgba(14, 165, 233, 0.1); color: var(--info); }
.source-badge.tavsiye { background-color: rgba(16, 185, 129, 0.1); color: var(--success); }

/* Status Badges */
.status-badge.yeni-basvuru { background-color: rgba(14, 165, 233, 0.1); color: var(--info); }
.status-badge.gorusuluyor { background-color: rgba(245, 158, 11, 0.1); color: var(--warning); }
.status-badge.teklif-verildi { background-color: rgba(57, 181, 74, 0.1); color: var(--primary); }
.status-badge.noter-bekliyor { background-color: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-badge.kazanildi { background-color: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid var(--success); }
.status-badge.kaybedildi { background-color: rgba(239, 68, 68, 0.1); color: var(--danger); }

/* Reporting Visual Components */
.reporting-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.report-item {
    margin-bottom: 1.2rem;
}

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

.report-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.report-info .count-percent {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.progress-bar-bg {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    height: 10px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: 100%;
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 0.8s ease-out;
}

.progress-bar-fill.web { background-color: var(--primary); }
.progress-bar-fill.sahibinden { background-color: var(--warning); }
.progress-bar-fill.instagram { background-color: var(--danger); }
.progress-bar-fill.telefon { background-color: var(--info); }
.progress-bar-fill.tavsiye { background-color: var(--success); }

.progress-bar-fill.yeni { background-color: var(--info); }
.progress-bar-fill.gorusme { background-color: var(--warning); }
.progress-bar-fill.teklif { background-color: var(--primary); }
.progress-bar-fill.noter { background-color: var(--success); }
.progress-bar-fill.won { background-color: var(--success); }

/* --- Calendar (Takvim) Modülü Stilleri --- */

.calendar-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 2rem;
    height: calc(100% - 10px);
}

@media (max-width: 1024px) {
    .calendar-main-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.calendar-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
}

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

.calendar-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bg-dark-start);
}

.calendar-nav-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-cal-nav {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s;
}

.btn-cal-nav:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Calendar Grid */
.calendar-days-label-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    text-align: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.calendar-day-cell {
    background-color: #ffffff;
    min-height: 90px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.calendar-day-cell:hover {
    background-color: var(--primary-light);
}

.calendar-day-cell.today {
    background-color: rgba(57, 181, 74, 0.05);
}

.calendar-day-cell.today::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
}

.calendar-day-cell.active {
    background-color: rgba(57, 181, 74, 0.12) !important;
    box-shadow: inset 0 0 0 1.5px var(--primary);
}

.calendar-day-cell.other-month {
    background-color: #f1f5f9;
    color: var(--text-muted);
    opacity: 0.5;
    pointer-events: none;
}

.calendar-day-number {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    align-self: flex-end;
}

.calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    margin-top: 0.25rem;
    overflow: hidden;
}

.mini-event-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 3px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
    color: #ffffff;
}

.mini-event-pill.meeting { background-color: var(--info); color: #ffffff; }
.mini-event-pill.sale { background-color: var(--primary); color: #ffffff; }
.mini-event-pill.valuation { background-color: var(--warning); color: var(--text-main); }
.mini-event-pill.notary { background-color: var(--danger); color: #ffffff; }

/* Timeline Side Panel */
.calendar-timeline-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.timeline-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.timeline-header h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--bg-dark-start);
}

.timeline-header span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.2rem;
    display: block;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

/* Timeline Vertical Line */
.timeline-list::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 4px;
    bottom: 5px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Timeline Event Dot */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -22px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px var(--border-color);
    z-index: 2;
}

.timeline-item.meeting::before { background-color: var(--info); box-shadow: 0 0 0 1px var(--info); }
.timeline-item.sale::before { background-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.timeline-item.valuation::before { background-color: var(--warning); box-shadow: 0 0 0 1px var(--warning); }
.timeline-item.notary::before { background-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }

.timeline-time {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.timeline-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: all 0.2s;
}

.timeline-card:hover {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.timeline-card h5 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.timeline-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    white-space: normal;
}

/* --- Interactive Vehicle Management Module CSS --- */

.vehicle-row-img {
    transition: transform 0.25s ease;
}

.vehicle-row:hover .vehicle-row-img {
    transform: scale(1.05);
}

.vehicle-modal-container {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    max-height: 850px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1001;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.vehicle-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #f8fafc;
}

.modal-title-input {
    font-size: 1.6rem;
    font-weight: 800;
    border: none;
    border-bottom: 2px dashed var(--border-color);
    padding: 0.2rem 0;
    color: var(--text-main);
    background: transparent;
    width: 100%;
    max-width: 500px;
    transition: border-bottom-color 0.2s;
}

.modal-title-input:focus {
    border-bottom-color: var(--primary);
}

.modal-location-input {
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-bottom: 1.5px dashed var(--border-color);
    padding: 0.1rem 0;
    color: var(--primary);
    background: transparent;
    width: 250px;
    transition: border-bottom-color 0.2s;
}

.modal-location-input:focus {
    border-bottom-color: var(--primary);
}

.vehicle-modal-header-actions {
    display: flex;
    align-items: center;
}

.modal-price-input {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    border: none;
    border-bottom: 2px dashed var(--border-color);
    padding: 0.2rem 0;
    background: transparent;
    text-align: right;
    width: 180px;
    transition: border-bottom-color 0.2s;
}

.modal-price-input:focus {
    border-bottom-color: var(--primary);
}

.vehicle-modal-close-btn {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    padding: 0.5rem;
    line-height: 1;
    margin-left: 1.5rem;
}

.vehicle-modal-close-btn:hover {
    color: var(--danger);
}

.vehicle-modal-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.vehicle-modal-left-col {
    display: flex;
    flex-direction: column;
}

.vehicle-modal-right-col {
    display: flex;
    flex-direction: column;
}

/* Image Gallery Style */
.vehicle-gallery-card {
    position: relative;
    width: 100%;
}

.gallery-main-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #f1f5f9;
}

.gallery-main-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease-in-out;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    transition: background 0.2s;
    z-index: 10;
}

.gallery-nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-nav-btn.prev {
    left: 1rem;
}

.gallery-nav-btn.next {
    right: 1rem;
}

.gallery-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.gallery-thumbnails-container {
    margin-top: 0.8rem;
    overflow-x: auto;
    padding: 0.2rem 0;
}

.gallery-thumbnails-inner {
    display: flex;
    gap: 0.5rem;
}

.gallery-thumb-item {
    width: 78px;
    height: 58px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    opacity: 0.75;
}

.gallery-thumb-item:hover, .gallery-thumb-item.active {
    opacity: 1;
}

.gallery-thumb-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

/* ============================================================
   Photo Manager Panel
   ============================================================ */
.photo-manager-panel {
    margin-top: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.photo-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.photo-manager-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.photo-count-badge {
    background: var(--primary-glow, rgba(57,181,74,0.15));
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    border: 1px solid var(--primary-glow, rgba(57,181,74,0.25));
}

/* Editable thumbnail grid */
.photo-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.5rem;
    min-height: 0;
}

.photo-edit-grid:empty {
    display: none;
}

.photo-edit-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.photo-edit-item.is-cover {
    border-color: var(--primary);
}

.photo-edit-item.is-cover::after {
    content: '⭐ Kapak';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.62rem;
    font-weight: 700;
    background: rgba(57,181,74,0.88);
    color: white;
    text-align: center;
    padding: 2px 0;
}

.photo-edit-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.photo-edit-item img:hover {
    opacity: 0.75;
}

.photo-edit-item .photo-delete-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    background: rgba(220,38,38,0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
    font-weight: 700;
    backdrop-filter: blur(2px);
}

.photo-edit-item:hover .photo-delete-btn {
    opacity: 1;
}

.photo-edit-item .photo-set-cover-btn {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: rgba(57,181,74,0.88);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 0.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
    font-weight: 700;
    title: 'Kapak Fotoğrafı Yap';
}

.photo-edit-item:hover .photo-set-cover-btn {
    opacity: 1;
}

/* Upload drop zone */
.photo-upload-zone {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    text-decoration: none;
}

.photo-upload-zone:hover,
.photo-upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(57, 181, 74, 0.05);
}

.photo-upload-zone.drag-over {
    border-style: solid;
    transform: scale(1.01);
}

.photo-upload-icon {
    color: var(--primary);
    flex-shrink: 0;
    opacity: 0.8;
}

.photo-upload-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.photo-upload-text strong {
    color: var(--text-main);
    font-size: 0.85rem;
}

.photo-upload-hint {
    font-size: 0.73rem;
    opacity: 0.7;
}

/* URL row */
.photo-url-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.photo-url-row .form-control {
    flex: 1;
    font-size: 0.82rem;
    padding: 0.4rem 0.65rem;
}


/* Expertise Car paint selector card */
.expertise-diagram-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: #fdfdfd;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.expertise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.expertise-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

.expertise-color-legend {
    display: flex;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    transition: all 0.2s;
    user-select: none;
}

.legend-item.pointer {
    cursor: pointer;
}

.legend-item.active {
    border-color: var(--text-main);
    background-color: var(--border-color);
}

.legend-box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}

.legend-box.original { background-color: #9ca3af; }
.legend-box.local-paint { background-color: #f97316; }
.legend-box.paint { background-color: #2563eb; }
.legend-box.replace { background-color: #dc2626; }

.expertise-diagram-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.car-svg-container {
    background: #fffcf0; /* Warm premium light cream background matching image 1 */
    border: 1px solid #fef08a;
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.car-part {
    transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease, opacity 0.15s ease;
}

.car-part:hover {
    filter: brightness(0.88);
    stroke: #374151;
    stroke-width: 2.5px;
}

/* Detail modal active paint-mode indicator on SVG container */
#vehicle-details-modal .car-svg-container {
    position: relative;
}

#vehicle-details-modal .car-svg-container::after {
    content: attr(data-active-mode);
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.7;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.expertise-list-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.exp-list-section h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.exp-title-orange { color: #f97316; }
.exp-title-blue { color: #2563eb; }
.exp-title-red { color: #dc2626; }

.bullet-box {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}
.bullet-box.local-paint { background-color: #f97316; }
.bullet-box.paint { background-color: #2563eb; }
.bullet-box.replace { background-color: #dc2626; }

.exp-bullet-list {
    list-style: none;
    padding-left: 0.2rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.exp-bullet-list li {
    position: relative;
    padding-left: 0.8rem;
}

.exp-bullet-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.exp-bullet-list li.empty-placeholder {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.82rem;
}

.exp-bullet-list li.empty-placeholder::before {
    content: '';
}

/* --- Modern Form Elements & Modal Inputs --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.15rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.1rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-main);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    outline: none;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

select.form-control {
    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='%2364748b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 0.9rem;
    padding-right: 2.25rem;
}

/* Modal Actions Alignments */
.modal-actions-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.modal-actions-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-actions-left label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-actions-right {
    display: flex;
    gap: 0.75rem;
}

/* Specs Edit Form Grid */
.specs-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.specs-edit-grid .form-group {
    margin-bottom: 0;
}

.specs-edit-grid label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.specs-edit-grid .form-control {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-main);
    transition: all 0.2s;
    font-size: 0.88rem;
    color: var(--text-main);
    font-weight: 500;
}

.specs-edit-grid .form-control:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.vehicle-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    background: #ffffff;
    color: var(--text-main);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: var(--bg-main);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .vehicle-modal-body {
        grid-template-columns: 1fr;
    }
    .vehicle-modal-container {
        height: 95vh;
        max-height: none;
    }
}

@media (max-width: 576px) {
    .specs-edit-grid {
        grid-template-columns: 1fr;
    }
    .expertise-diagram-content {
        flex-direction: column;
        align-items: center;
    }
    .expertise-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Müşteri Adayları Kanban View CSS --- */

.view-toggle-switcher {
    display: flex;
    background: var(--bg-main);
    padding: 0.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.switcher-btn {
    padding: 0.45rem 1rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.switcher-btn svg {
    transition: transform 0.2s;
}

.switcher-btn:hover svg {
    transform: scale(1.05);
}

.switcher-btn.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Layout Toggle State Selectors */
.leads-main-grid[data-active-view="list"] #leads-list-container { display: block; }
.leads-main-grid[data-active-view="list"] #leads-kanban-container { display: none; }

.leads-main-grid[data-active-view="kanban"] #leads-list-container { display: none; }
.leads-main-grid[data-active-view="kanban"] #leads-kanban-container { display: block; }
.leads-main-grid[data-active-view="kanban"] { display: block !important; }
.leads-main-grid[data-active-view="kanban"] .reporting-container { display: none !important; }
.leads-main-grid[data-active-view="kanban"] #leads-card-wrapper { width: 100% !important; max-width: 100% !important; }

/* Kanban Board scroll layout */
.kanban-board {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    padding: 0.5rem 0 1.5rem 0;
    margin-top: 1rem;
    scroll-behavior: smooth;
    min-height: 560px;
    width: 100%;
}
.leads-main-grid[data-active-view="kanban"] { 
    display: block !important; 
    overflow: hidden; 
}

/* Custom scrollbar for kanban board */
.kanban-board::-webkit-scrollbar {
    height: 8px;
}
.kanban-board::-webkit-scrollbar-track {
    background: var(--bg-main);
    border-radius: var(--radius-sm);
}
.kanban-board::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-sm);
}
.kanban-board::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.kanban-column {
    flex: 1;
    min-width: 275px;
    max-width: 320px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: 530px;
    padding: 0.9rem;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow-sm);
}

.kanban-column:hover {
    border-color: #cbd5e1;
}

.kanban-column-header {
    padding-bottom: 0.8rem;
    border-bottom: 1.5px solid var(--border-color);
    margin-bottom: 0.8rem;
}

.kanban-column-header h4 {
    font-size: 0.85rem;
    font-weight: 750;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

.kanban-card-count {
    background: var(--border-color);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-xl);
}

.kanban-column-cards {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.3rem 0.2rem;
    min-height: 100px;
    transition: background-color 0.2s ease, outline 0.2s ease;
}

.kanban-column-cards::-webkit-scrollbar {
    width: 4px;
}
.kanban-column-cards::-webkit-scrollbar-track {
    background: transparent;
}
.kanban-column-cards::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
}

/* Kanban column dragover state highlight */
.kanban-column-cards.drag-over {
    background-color: rgba(57, 181, 74, 0.04);
    border-radius: var(--radius-md);
    outline: 2px dashed rgba(57, 181, 74, 0.4);
}

/* Kanban Cards styling */
.kanban-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.04);
    cursor: grab;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, opacity 0.2s;
    user-select: none;
}

.kanban-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card.dragging {
    opacity: 0.4;
    cursor: grabbing;
    transform: scale(0.96);
    box-shadow: var(--shadow-sm);
}

.kanban-card-priority-line {
    height: 4px;
    width: 100%;
}
.kanban-card-priority-line.yuksek { background-color: var(--danger); }
.kanban-card-priority-line.orta { background-color: var(--warning); }
.kanban-card-priority-line.dusuk { background-color: #94a3b8; }

.kanban-card-body {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.kanban-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.kanban-card-car {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kanban-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.4rem;
    margin-bottom: 0.2rem;
}

.kanban-card-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.15rem;
}

.kanban-card-badges .source-badge, 
.kanban-card-badges .task-priority-badge {
    font-size: 0.68rem;
    padding: 0.12rem 0.4rem;
}

.kanban-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.3rem;
}

.btn-kanban-edit {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-kanban-edit:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.kanban-empty-placeholder {
    border: 1.5px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-style: italic;
    background-color: #ffffff;
    user-select: none;
}

/* --- Customers Müşterilerim View & Spreadsheet CSS --- */

.customers-main-grid[data-active-view="list"] #customers-list-container { display: block; }
.customers-main-grid[data-active-view="list"] #customers-kanban-container { display: none; }

.customers-main-grid[data-active-view="kanban"] #customers-list-container { display: none; }
.customers-main-grid[data-active-view="kanban"] #customers-kanban-container { display: block; }
.customers-main-grid[data-active-view="kanban"] { display: block !important; }

/* Spreadsheet table style */
.green-spreadsheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    background-color: #ffffff;
}

.green-spreadsheet-table th {
    background: linear-gradient(135deg, #39B54A 0%, #2e9a3b 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.05em;
    padding: 0.75rem 0.9rem !important;
    text-transform: uppercase;
    border: 1px solid #23802e !important;
    text-align: left;
    white-space: nowrap;
}

.green-spreadsheet-table td {
    padding: 0.65rem 0.9rem !important;
    border: 1px solid #e2e8f0 !important;
    vertical-align: middle;
    white-space: nowrap;
}

.green-spreadsheet-table tbody tr:nth-child(even) {
    background-color: #f7fdf9;
}

.green-spreadsheet-table tbody tr:hover {
    background-color: #edfcf1;
}

/* Phone link styling */
.phone-link:hover {
    color: #2e9a3b !important;
    text-decoration: underline !important;
}

/* Statistics widgets spacing */
.q-stat-item {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

/* Multi-Vehicle Select & Tag System Styles */
.mini-vehicle-tag {
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.mini-vehicle-tag:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.interested-vehicle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.interested-vehicle-item:hover {
    border-color: var(--primary);
    background-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.interested-vehicle-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}

.interested-vehicle-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.88rem;
}

.interested-vehicle-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-remove-vehicle {
    background-color: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.btn-remove-vehicle:hover {
    background-color: var(--danger);
    color: #ffffff;
    border-color: var(--danger);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.interested-vehicles-empty {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.82rem;
    text-align: center;
    padding: 1.5rem 0;
}

/* Vehicles Page Side-by-Side Filter Layout */
.vehicles-main-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .vehicles-main-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar filter panel */
.filter-panel-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.filter-panel-section {
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-panel-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.filter-panel-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: center;
}

.filter-input-divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.filter-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
}

.filter-checkbox-label input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter-currency-toggle {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.filter-currency-btn {
    background: none;
    border: none;
    padding: 0.4rem 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    text-align: center;
    background-color: var(--bg-main);
    transition: all 0.2s;
}

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

.btn-filter-action {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.btn-filter-apply {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(57, 181, 74, 0.2);
    margin-bottom: 0.6rem;
}

.btn-filter-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(57, 181, 74, 0.3);
}

.btn-filter-clear {
    background-color: var(--bg-main);
    color: var(--text-muted);
    border: 1.5px solid var(--border-color);
}

.btn-filter-clear:hover {
    background-color: #fee2e2;
    color: var(--danger);
    border-color: #fca5a5;
}

/* Calendar View Switcher Tabs */
.calendar-view-toggle {
    display: inline-flex;
    background-color: var(--bg-main);
    padding: 0.25rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    margin-right: 1rem;
}

.calendar-view-toggle .toggle-btn {
    border: none;
    background: none;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-view-toggle .toggle-btn.active {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Visibility of view panes */
.calendar-view-pane {
    display: none;
    height: 100%;
}

.calendar-view-pane.active {
    display: flex;
    flex-direction: column;
}

/* Week View Layout (Columns) */
.calendar-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.75rem;
    height: 100%;
    margin-top: 1rem;
    overflow-y: auto;
}

.calendar-week-day-col {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    transition: all 0.2s ease;
}

.calendar-week-day-col.active-day {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
    background-color: white;
}

.calendar-week-day-header {
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.calendar-week-day-header .day-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
}

.calendar-week-day-header .day-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--bg-dark-start);
    display: block;
    margin-top: 0.1rem;
}

.calendar-week-day-col.active-day .calendar-week-day-header .day-number {
    color: var(--primary);
}

.calendar-week-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    overflow-y: auto;
}

.calendar-week-event-card {
    background-color: white;
    border-left: 3px solid var(--primary);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-size: 0.8rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.calendar-week-event-card:hover {
    transform: translateY(-1px);
}

.calendar-week-event-card.valuation { border-left-color: var(--info); }
.calendar-week-event-card.sale { border-left-color: var(--primary); }
.calendar-week-event-card.meeting { border-left-color: var(--warning); }
.calendar-week-event-card.notary { border-left-color: var(--success); }

.calendar-week-event-card h6 {
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    color: var(--bg-dark-start);
}

.calendar-week-event-card span.event-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Day View Layout (Hourly Timeline) */
.calendar-day-view-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-top: 1rem;
    overflow-y: auto;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.calendar-day-hour-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    border-bottom: 1px solid var(--border-color);
    min-height: 60px;
}

.calendar-day-hour-row:last-child {
    border-bottom: none;
}

.calendar-day-hour-label {
    padding: 0.75rem;
    border-right: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: right;
    background-color: white;
}

.calendar-day-hour-slot {
    padding: 0.5rem 1rem;
    position: relative;
    background-color: white;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

.calendar-day-hourly-event-card {
    background-color: var(--bg-main);
    border-left: 4px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.calendar-day-hourly-event-card.valuation { border-left-color: var(--info); }
.calendar-day-hourly-event-card.sale { border-left-color: var(--primary); }
.calendar-day-hourly-event-card.meeting { border-left-color: var(--warning); }
.calendar-day-hourly-event-card.notary { border-left-color: var(--success); }

.calendar-day-hourly-event-card h6 {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 0.1rem 0;
    color: var(--bg-dark-start);
}

.calendar-day-hourly-event-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}
.swal2-container {
    z-index: 100000 !important;
}
#vehicle-edit-modal.active {
    z-index: 20000 !important;
}

/* Sidebar Submenu */
.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}
.sidebar-submenu.open {
    max-height: 1000px; /* arbitrary large value for transition */
    transition: max-height 0.3s ease-in;
}
.sidebar-submenu li a {
    padding-left: 2.75rem !important; /* Indent submenu items */
    font-size: 0.85rem;
    color: #94a3b8;
}
.sidebar-submenu li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03) !important;
}
.sidebar-submenu li.active a {
    color: var(--primary) !important;
    background: transparent !important;
    font-weight: 600;
}
.sidebar-item.has-submenu > a {
    justify-content: space-between;
}
.sidebar-item.has-submenu > a .submenu-icon {
    transition: transform 0.3s ease;
}
.sidebar-item.has-submenu.open > a .submenu-icon {
    transform: rotate(180deg);
}

/* Multiselect Dropdown */
.multiselect-container {
    position: relative;
    flex: 1;
}
.multiselect-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    height: 100%;
    min-height: 38px;
    font-size: 0.85rem;
    color: var(--text-main);
    user-select: none;
    transition: border-color 0.2s ease;
}
.multiselect-btn:hover {
    border-color: #cbd5e1;
}
.multiselect-options {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    padding: 0.5rem 0;
}
.multiselect-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    user-select: none;
    transition: background-color 0.2s ease;
}
.multiselect-option:hover {
    background-color: #f1f5f9;
}
.multiselect-option input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
    cursor: pointer;
}
.multiselect-footer {
    padding: 0.4rem 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    margin-top: 0.25rem;
}
