/* Shared styles for both pages */
body, html {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* background-color: #e6e6e6; */
    min-height: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.floating-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    pointer-events: none;
    transition: all 0.2s ease;
}

.form-control:focus ~ .floating-label,
.form-control:not(:placeholder-shown) ~ .floating-label {
    top: 6px;
    font-size: 12px;
    color: #007bff;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.toggle-password svg {
    pointer-events: none;
}

.form-control {
    width: 100%;
    padding: 18px 12px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.2;
}

.btn {
    background-color: #065c7e; /* teal blue from mockup */
    color: #ffffff;
    padding: 14px 20px;
    border: none;
    border-radius: 28px; /* pill shape */
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.btn:hover {
    background-color: #003ecc;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background-color: #f5f5f5;
}

.table th, .table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #f8f9fa;
}

/* Escalated Tickets Table */
.table-responsive{
    width:100%;
    overflow-x:scroll; /* always show when needed */
    display:block;
    -webkit-overflow-scrolling:touch;
}
/* custom scrollbar for better visibility */
.table-responsive::-webkit-scrollbar{
    height:8px;
}
.table-responsive::-webkit-scrollbar-track{
    background:#f1f1f1;
}
.table-responsive::-webkit-scrollbar-thumb{
    background:#b7b7b7;
    border-radius:4px;
}
.table-responsive:hover::-webkit-scrollbar-thumb{
    background:#939393;
}
.small-avatar{
    width:24px;
    height:24px;
    border-radius:50%;
    object-fit:cover;
}

/* --- Ticket Detail Styles --- */
.ticket-detail{display:flex;flex-direction:column;gap:24px;}
.ticket-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;font-size:14px;}
.ticket-id-status{display:flex;align-items:center;gap:8px;font-weight:600;}
.ticket-id{font-weight:600;color:#0e5372;font-size:14px;}
.status-dot.open{background:#28a745;}
.status-dot.in-progress{background:#f1b90d;}

.ticket-meta-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:12px;font-weight:600;}
.badge.priority-high{background:#d1f1d1;color:#28a745;}
.badge.state-open{background:#d1f1d1;color:#28a745;}
.posted-time{font-size:12px;color:#777;}

.ticket-subject{margin:0;font-size:20px;font-weight:700;color:#222;}
.ticket-body{margin:0;font-size:14px;color:#555;line-height:1.6;}

.ticket-author{display:flex;align-items:center;gap:16px;}
.author-avatar{width:64px;height:64px;border-radius:50%;object-fit:cover;}
.author-name{margin:0;font-size:16px;font-weight:600;color:#0e5372;}
.author-email{font-size:12px;color:#777;}

.ticket-quick-info{display:flex;flex-wrap:wrap;gap:20px;margin-top:8px;}
.info-pill{background:#f5f5f5;border-radius:6px;padding:12px 16px;font-size:13px;min-width:180px;display:flex;flex-direction:column;gap:4px;}
.pill-label{font-size:11px;color:#666;text-transform:uppercase;letter-spacing:0.5px;}
.pill-value{font-size:13px;color:#000;font-weight:600;}
.status-pill .status-select{background:none;border:none;display:flex;align-items:center;gap:6px;padding:0;font-size:13px;cursor:pointer;}
.status-select .status-dot{width:10px;height:10px;border-radius:50%;display:inline-block;background:#f1b90d;}
.status-select .chevron{width:14px;height:14px;}

.ticket-reply textarea{width:90%;height:120px;border:1px solid #ccc;border-radius:6px;padding:12px;font-size:14px;resize:vertical;}
.ticket-actions{display:flex;gap:16px;margin-top:8px;flex-wrap:wrap;}
.btn-outline-primary{background:#fff;color:#0e5372;border:1px solid #0e5372;padding:10px 28px;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;}
.btn-outline-primary:hover{background:#d9e9f9;}

/* Pill field styles */
.info-pill input,
.info-pill select{width:90%;padding:8px 10px;border:1px solid #ccc;border-radius:4px;font-size:12px;background:#e9ecef;}
.info-pill input[disabled]{background:#e9ecef;color:#555;}
.info-pill select{appearance:none;background:#e9ecef url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%230e5372" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 10px center;background-size:12px 12px;padding-right:34px;cursor:pointer;}
.info-pill select:focus{outline:none;border-color:#0e5372;box-shadow:0 0 0 2px rgba(14,83,114,0.15);}
/* --- End Ticket Detail Styles --- */

/* Inventory Dashboard Styles */
.inventory-dashboard {
    padding: 24px;
}

.top-dashboard-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.kpi-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.kpi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #555;
    font-size: 14px;
}

.kpi-value {
    font-size: 36px;
    font-weight: bold;
    margin: 8px 0;
}

.kpi-subtext {
    font-size: 12px;
    color: #777;
}

.positive-change {
    color: #4CAF50;
}

.kpi-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-grow: 1;
}

.kpi-chart-bar {
    display: flex;
    align-items: flex-end;
    height: 40px;
    gap: 3px;
}

.kpi-chart-bar span {
    display: inline-block;
    width: 6px;
    background-color: #0e5372;
    border-radius: 2px;
}

.kpi-chart-line {
    width: 100px;
    height: 40px;
}

.campaign-card {
    background-color: #f0f4f8;
    justify-content: center;
}

.campaign-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.campaign-img {
    width: 60px;
    height: auto;
}

/* Aging Inventory Section */
.aging-inventory {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.aging-inventory-header {
    display: flex;
    justify-content: flex-end; /* Align filters to the right */
    margin-bottom: 24px;
}

.filters {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-btn {
    background-color: #f0f0f0;
    border: 1px solid #dcdcdc;
    border-radius: 16px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.filter-btn.active {
    background-color: #e7f3ff;
    color: #0e5372;
    border-color: #b3d7f9;
}

.filter-divider {
    width: 1px;
    height: 24px;
    background-color: #ccc;
    margin: 0 8px;
}

.charts-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.chart-item {
    width: 15%;
}

.chart-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stacked-bar {
    display: flex;
    flex-direction: column;
    height: 100px;
    width: 40px;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.bar-segment {
    width: 100%;
}

.chart-label {
    font-size: 14px;
    margin-top: 8px;
}

.chart-sublabel {
    font-size: 12px;
    color: #777;
}

/* Inventory List Section */
.inventory-list {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.inventory-item-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.inventory-filters {
    display: flex;
    gap: 8px;
}

/* Base Styles for a Single Inventory Item */
.inventory-item-redesigned {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 16px;
    background-color: #fff;
    /* NO overflow: hidden; here. This was the root cause of the problem. */
}

.item-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f9f9f9;
    padding: 12px 16px;
    gap: 16px;
    font-size: 12px;
    white-space: nowrap;
    border-bottom: 1px solid #e0e0e0;
}

.item-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 1;
    min-width: 0; /* Allows title to shrink and show ellipsis */
}

.item-top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.item-meta-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-status-badge { padding: 3px 10px; border-radius: 4px; color: #fff; font-weight: bold; font-size: 13px; flex-shrink: 0; }
.item-status-badge.hold { background-color: #f57c00; }
.certified-logo { height: 24px; flex-shrink: 0; }
.item-title { margin: 0; font-size: 13px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-vin, .item-stock, .item-miles { margin: 0; color: #555; }
.item-incentives-summary { background-color: #c8e6c9; padding: 7px 14px; border-radius: 4px; font-weight: bold; color: #2e7d32; flex-shrink: 0; }

.item-main-content {
    display: flex;
    flex-direction: row; /* Horizontal on desktop */
    align-items: flex-start;
    background-color: #fff;
    padding: 16px;
}

.item-image-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 16px;
    border-right: 1px solid #eee;
    flex-shrink: 0;
}

.vehicle-image { width: 100px; height: auto; border-radius: 8px; }

.days-in-stock-indicator { text-align: center; }
.days-circle { width: 60px; height: 60px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: conic-gradient(#d32f2f calc(var(--progress) * 1%), #e0e0e0 0); position: relative; }
.days-circle::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; background: #fff; border-radius: 50%; }
.days-circle-green { width: 60px; height: 60px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: conic-gradient(#2fd33d calc(var(--progress) * 1%), #e0e0e0 0); position: relative; }
.days-circle-green::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; background: #fff; border-radius: 50%; }
.days-number { font-size: 20px; font-weight: bold; z-index: 1; }
.days-label { font-size: 8px; font-weight: bold; color: #555; z-index: 1; }

.item-details-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px 24px;
    padding: 0 24px;
}

.detail-group p { margin: 0 0 4px 0; font-size: 12px; color: #555; }
.detail-group p.price, .detail-group p.mileage, .detail-group p.days-supply { font-size: 16px; font-weight: bold; color: #000; }


/* --- Responsive Styles --- */

/* For large tablets and small desktops */
@media (max-width: 1200px) {
    .right-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For tablets */
@media (max-width: 992px) {
    .top-dashboard-section { flex-direction: column; align-items: stretch; gap: 24px; }
    .left-kpi-column, .right-kpi-grid { width: 100%; }
    .aging-inventory .charts-container { flex-wrap: wrap; justify-content: center; gap: 16px; }
    .aging-inventory .chart-item { flex-basis: 45%; min-width: 140px; }
}

/* For mobile devices */
@media (max-width: 768px) {
    .sidebar { left: -250px; }
    .main-content { margin-left: 0; }
    .top-dashboard-section, .aging-inventory, .inventory-list { margin-bottom: 32px; }
    .right-kpi-grid { grid-template-columns: 1fr; }
    .aging-inventory .charts-container { flex-direction: column; gap: 24px; }
    .inventory-header { flex-direction: column; align-items: flex-start; gap: 16px; }

    /* --- Inventory Item Responsive Styles --- */
    .inventory-item-redesigned .item-top-bar,
    .inventory-item-redesigned .item-top-bar-right,
    .inventory-item-redesigned .item-title-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 12px;
        white-space: normal; /* Allow text to wrap */
    }

    .inventory-item-redesigned .item-meta-group { flex-direction: column; align-items: flex-start; gap: 4px; }

    .inventory-item-redesigned .item-incentives-summary { width: 100%; text-align: center; }

    .inventory-item-redesigned .item-main-content {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .inventory-item-redesigned .item-image-section {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 16px;
        margin-bottom: 16px;
        justify-content: center;
    }

    .inventory-item-redesigned .item-details-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); /* Allow items to wrap */
        gap: 24px;
        padding: 16px 0 0 0;
    }

    .inventory-item-redesigned .item-details-grid > div {
        white-space: nowrap; /* Prevent text wrapping inside grid cells */
    }

    .inventory-item-redesigned .item-actions-section {
        border-left: none;
        border-top: 1px solid #eee;
        padding: 16px 0 0 0;
        align-self: stretch;
    }
}

@media (max-width: 480px) {
    .topbar-right {
        gap: 8px; /* Reduce gap for smaller screens */
    }
    .user-name {
        display: none; /* Hide user name on very small screens */
    }
}

.detail-group small {
    font-size: 11px;
    color: #777;
}

.detail-group.price-details p span, 
.detail-group.book-values p span,
.detail-group.metrics p span,
.incentives-details p span {
    display: inline-block;
    width: 60px;
}

.item-actions-section {
    display: flex;
    align-items: center;
    padding-left: 16px;
    border-left: 1px solid #eee;
    flex-shrink: 0;
}

.incentives-details {
    font-size: 12px;
    margin-right: 8px;
}

.more-options-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .content {
        padding: 20px;
    }

    /* Signin responsive */
    .signin-wrapper {
        flex-direction: column;
        height: auto;
    }

    .signin-image {
        display: none;
    }

    .signin-form {
        flex: 1 1 auto;
        background-color: transparent;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 24px;
    }

    /* background image overlay */
    body {
        position: relative;
    }

    .landing_page_bg::before {
        content: "";
        position: fixed;
        inset: 0;
        background:#e6e6e6 url('images/car.png') center/contain no-repeat;
        opacity: 0.1;
        z-index: 0;
    }
}

/* Dashboard Styles */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 40px 24px 0;
    box-shadow: 2px 0 4px rgba(0,0,0,0.05);
}

.logo {
    width: 160px;
    height: auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
}

.nav-item {
    list-style: none; /* Remove bullet points */
    padding: 0; /* Remove default padding */
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
    color: #000;
    padding: 14px 20px;
    border-radius: 14px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.nav-item a:hover {
    background-color: #f0f4f8;
}

/* The .active class is on the li, so we target the a inside it */
.nav-item.active a {
    background-color: #d9e9f9;
    color: #0e5372;
    font-weight: 600;
}

.nav-item + .nav-item {
    margin-top: 32px;
}

.nav-icon svg {
    display:block;
}


.menu{list-style:none;padding:0;margin:40px 0 0;}
.menu-item{display:flex;align-items:center;gap:12px;font-size:18px;color:#000;padding:14px 20px;border-radius:14px;cursor:pointer;}
.section-header{display:flex;align-items:center;gap:12px;font-size:16px;color:#0e5372;font-weight:700;margin-top:24px;padding:0 20px;cursor:default;border:none;}
.menu-item:hover{background:#d9e9f9;color:#0e5372;}
.section-header{font-weight:600;color:#0e5372;}
.submenu{list-style:none;margin:8px 0 0 60px;padding:0;}
.submenu li{display:flex;justify-content:space-between;align-items:center;font-size:15px;color:#000;padding:6px 20px;cursor:pointer;border-radius:12px;}
.submenu li:hover{background:#e8eef8;}
.badge{background:#0e5372;color:#fff;font-size:11px;font-weight:700;padding:2px 8px;border-radius:12px;min-width:28px;text-align:center;}
.menu-item .nav-icon,.section-header .nav-icon{width:20px;display:flex;justify-content:center;}
.sidebar.collapsed .submenu{display:none;}

.topbar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:32px;
}
.topbar-left {display:flex;align-items:center;gap:16px;}
.menu-icon svg{display:block;}
.topbar-left h2{margin:0;font-size:22px;font-weight:600;}
.topbar-right{display:flex;align-items:center;gap:24px;}
.icon{position:relative;cursor:pointer;}
.dropdown{display:none;position:absolute;top:calc(100% + 8px);right:0;background:#ffffff;padding:12px 16px;border-radius:8px;box-shadow:0 4px 10px rgba(0,0,0,0.1);white-space:nowrap;z-index:100;}
.dropdown.show{display:block;}
.dropdown a{display:block;padding:8px 14px;color:#333;text-decoration:none;font-size:14px;border-radius:6px;}
.dropdown a:hover{background:#f2f2f2;}
.user-info{position:relative;}
.badge{background:#d1f1d1;color:#28a745;padding:2px 8px;border-radius:10px;font-size:12px;font-weight:600;display:inline-block;}
.notif-badge{position:absolute;top:-6px;right:-10px;background:#0e5372;color:#fff;font-size:10px;padding:2px 5px;border-radius:10px;}
.avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;}

/* Collapsed sidebar */
.sidebar.collapsed{width:80px;align-items:flex-start;}
.sidebar.collapsed .logo{width:40px;margin-bottom:20px;}
.sidebar.collapsed .nav-text{display:none;}
.sidebar.collapsed .nav-item{justify-content:center;padding:12px 0;}

.user-info{display:flex;align-items:center;gap:8px;}

.main-content {
    flex: 1;
    padding: 32px 40px;
}

.page-header h1 {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 600;
    color: #333333;
}

.widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.widget {
    display:flex;
    border:1px solid #d9d9d9;
    border-radius:8px;
    overflow:hidden;
    min-width:240px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.widget-side{width:72px;display:flex;align-items:center;justify-content:center;color:#fff;}
.widget-side svg{width:32px;height:32px;}
.widget-content{flex:1;padding:16px 20px;text-align:left;display:flex;flex-direction:column;justify-content:center;}
.widget-content h4{margin:0 0 4px;font-size:14px;font-weight:700;color:#0e5372;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
.widget-count{font-size:32px;font-weight:700;color:#0e5372;line-height:1;margin:4px 0;}
.widget-content p{margin:0;font-size:12px;color:#555;max-width:180px;}

/* Widget color variants */
.widget-blue{border-color:#4f7cc7;}
.widget-blue .widget-side{background:#4f7cc7;}

.widget-pink{border-color:#e5a1b1;}
.widget-pink .widget-side{background:#e5a1b1;}

.widget-teal{border-color:#5fa0a6;}
.widget-teal .widget-side{background:#5fa0a6;}

.widget-yellow{border-color:#d5b24f;}
.widget-yellow .widget-side{background:#d5b24f;}

/* hover effect */
.widget:hover{transform:none;box-shadow:none;}

.tickets {
    margin-top:40px;
}

.tickets-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;}
.tickets-header h2{margin:0;font-size:24px;font-weight:600;color:#333;}
.search-box{position:relative;}
.search-box input{padding:10px 36px 10px 16px;border:1px solid #ddd;border-radius:24px;font-size:14px;width:220px;}
.search-icon{position:absolute;right:12px;top:50%;transform:translateY(-50%);}



.ticket-card{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:24px;margin-bottom:24px;box-shadow:0 1px 3px rgba(0,0,0,0.05);}





.ticket-card-header{display:flex;align-items:center;gap:8px;font-size:14px;margin-bottom:12px;flex-wrap:wrap;}
.status-dot{width:10px;height:10px;border-radius:50%;display:inline-block;background:#28a745;}
.badge{padding:2px 8px;border-radius:10px;font-size:12px;font-weight:600;display:inline-block;}
.badge.priority{background:#d1f1d1;color:#28a745;}
.badge.state{background:#d1f1d1;color:#28a745;}
.posted-time{margin-left:auto;font-size:12px;color:#777;}
.ticket-title{margin:0 0 8px;font-size:18px;font-weight:600;color:#222;}
.ticket-desc{margin:0 0 16px;font-size:14px;color:#555;line-height:1.4;}
.ticket-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e0e0e0;padding-top:16px;}
.requester{display:flex;align-items:center;gap:12px;font-size:14px;color:#555;}
.req-name{font-weight:600;color:#000;}
.req-email{font-size:12px;color:#777;}
.btn-primary{background:#0e5372;color:#fff;border:none;padding:10px 28px;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;}
.btn-primary:hover{background:#09425a;}

.ticket-card + .ticket-card{margin-top:24px;}



@media (max-width: 768px) {
    /* sidebar behaves as slide-in */
    .sidebar{position:fixed;top:0;left:0;width:280px;height:100%;z-index:200;background:#fff;transform:translateX(-100%);transition:transform 0.3s ease;}
    .sidebar.mobile-show{transform:translateX(0);}
    

    .main-content{padding:24px 20px;}
    .menu-icon{display:block;cursor:pointer;}
    .menu-icon svg{display:block;}
    .topbar-left{gap:12px;}
    body{background:#ffffff;}

    .widgets{grid-template-columns:1fr;gap:16px;}
    .widget{min-width:auto;overflow:visible;flex:1;}
    .widget-side{width:72px;}

    .tickets-header{flex-direction:column;align-items:flex-start;gap:12px;}
    .search-box input{width:100%;}

    .ticket-card{padding:16px;}
    .ticket-title{font-size:16px;}
}

/* Signin Page Styles */
.signin-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.signin-image {
    flex: 1 1 37%;
    position: relative;
    overflow: hidden;
}

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

.image-caption {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.4;
    max-width: 300px;
}

.signin-form {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    overflow: hidden;
}

.form-box {
    width: 100%;
    max-width: 400px;
}

@media (max-width: 768px) {
    .form-box {
        max-width: 100%;
        width: 100%;
    }
}

.form-title {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    color: #333333;
}

.form-subtitle {
    margin: 8px 0 24px;
    color: #666666;
    font-size: 14px;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    color: #666666;
    font-size: 14px;
}

.link {
    color: #007bff;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* KPI Grid & Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}


.kpi-card {
    background: #fafbff;
    border: 1px solid #e4e9f4;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.kpi-card.kpi-emerald {
    background:#16d88c;
    border:none;
    background: #16d88c;
    color: #ffffff;
}

.kpi-card.kpi-blue {
    background:#5f7df8;
    border:none;
    background: #5f7df8;
    color: #ffffff;
}

.kpi-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color:#555;
}

.kpi-value {
    font-size: 24px;
    font-weight: 700;
    margin: 6px 0;
}

.kpi-meta {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    color:#7b7b7b;
}

.kpi-change.positive {
    color:#16b757;
}

.kpi-graph {
    margin-top: 12px;
    height: 36px;
}

.kpi-change.negative {
    color: #f44336;
}

.kpi-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--icon-bg, #ccc);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

/* Tabs */
.sales-tabs{margin-top:32px;}
.tab-header{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:16px;}
.tab-btn{background:#e8eef8;border:none;padding:8px 14px;border-radius:4px;font-size:12px;font-weight:600;cursor:pointer;color:#333;}
.tab-btn.active{background:#0e5372;color:#fff;}
.tab-search{margin-left:auto;}
.tab-search-input{padding:6px 12px;border:1px solid #d4d9e2;border-radius:4px;font-size:12px;}
.tab-content{display:none;}
.tab-content.active{display:block;}

/* Table */
.sales-table{width:100%;border-collapse:collapse;font-size:12px;}
.sales-table th,.sales-table td{padding:8px 10px;border-bottom:1px solid #e4e9f4;text-align:left;white-space:nowrap;}
.sales-table thead th{background:#0e5372;color:#fff;font-weight:600;font-size:12px;}
.pill{display:inline-block;padding:2px 6px;border-radius:12px;font-size:11px;font-weight:700;color:#fff;}
.pill.positive{background:#28a745;}
.pill.negative{background:#dc3545;}
.neg{color:#dc3545;font-weight:600;}

@media (max-width:768px){
  .tickets-header .search-box{display:none;}
  .tab-content.active{display:none;}
  .tab-content{display:none;}
  .tab-header{display:none;}
  .kpi-grid{grid-template-columns:1fr;gap:16px;}
  .kpi-card{padding:16px;}
  .tab-btn{flex:none;padding:6px 10px;font-size:11px;}
  .tab-search{display:none;}
  .sales-table{display:block;overflow-x:auto;}
  .sales-table th,.sales-table td{font-size:11px;padding:6px 8px;white-space:nowrap;}
}

/* checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 16px;
    width: 16px;
    background-color: #e6e6e6;
    border: 1px solid #ccc;
    border-radius: 2px;
    margin-right: 8px;
}

.checkbox-wrapper input:checked + .checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

.checkbox-wrapper input:checked + .checkmark:after {
    content: "";
    position: absolute;
    display: block;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
}

.btn-block {
    width: 100%;
}

.icon {
    position: relative;
    cursor: pointer;
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 12px;
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.dropdown.show {
    display: block;
}

/* Notification Bell Animation */
@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.bell-icon.has-notification {
    animation: flash 1.5s infinite;
}

/* Dashboard Charts Section Styles */
.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 30px;
    padding: 0 15px;
}

/* Make the Monthly Sales chart span full width */
.dashboard-charts > div:first-child {
    grid-column: 1 / -1;
}

.chart-widget {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e4e9f4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

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

.widget-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

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

.btn-widget-action {
    background: #f5f7fa;
    border: 1px solid #e4e9f4;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s;
}

.btn-widget-action:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.btn-widget-action:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Car Detail Page Styles */
.car-detail-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Tab Navigation Styles */
.tab-navigation, .vehicle-view-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tab-btn, .view-tab {
    padding: 10px 15px;
    border: none;
    background-color: #f1f2f6;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    white-space: nowrap;
}

.tab-btn:hover, .view-tab:hover {
    background-color: #e1e2e6;
}

.tab-btn.active {
    background-color: #4a5568;
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.view-tab.active {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

/* View Image Styles */
.view-image-container {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.view-specific-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

/* Modal Styles */
.info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.info-modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
    padding: 0;
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

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

.btn-cancel {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: #333;
    cursor: pointer;
}

.btn-submit {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background-color: #2563eb;
    color: white;
    cursor: pointer;
    font-weight: 500;
}

.add-view-btn {
    padding: 8px 15px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.add-view-btn:hover {
    background-color: #1d4ed8;
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e4e9f4;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.available {
    background-color: #4caf50;
    color: white;
}

.vehicle-title h1 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #333;
}

.vin-info {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.vehicle-image-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.main-vehicle-image {
    width: 80%;
    height: 400px;
    object-fit: cover;
}

.image-overlay-stats {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-circle {
    background: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-circle.days-stock {
    border: 3px solid #4caf50;
}

.stat-circle.test-drive {
    border: 3px solid #ff9800;
}

.stat-circle.website-traffic {
    border: 3px solid #f44336;
}

.stat-number {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
}

.stat-percent {
    font-size: 12px;
    font-weight: bold;
    color: #ff9800;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card.photos {
    background: #2196f3;
    color: white;
}

.stat-card.green {
    background: #4caf50;
}

.stat-card.red {
    background: #f44336;
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 4px;
}

.market-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.market-info h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 16px;
}

.pricing-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.price-item {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 8px;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 4px;
}

.price-item .label {
    font-size: 12px;
    color: #666;
}

.price-item .value {
    font-weight: bold;
    color: #333;
}

.price-item .change {
    font-size: 18px;
    font-weight: bold;
}

.price-item .change.up {
    color: #4caf50;
}

.price-item .change.down {
    color: #f44336;
}

.price-item .detail {
    grid-column: 1 / -1;
    font-size: 11px;
    color: #888;
}

.detailed-pricing {
    background: white;
    padding: 15px;
    border-radius: 4px;
}

.pricing-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 5px 0;
    font-size: 12px;
    border-bottom: 1px solid #eee;
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-row .label {
    color: #666;
}

.pricing-row .value {
    font-weight: bold;
    color: #333;
}

.tasks-notifications {
    margin-bottom: 40px;
}

.tasks-notifications h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.task-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.task-card {
    background: white;
    border: 1px solid #e4e9f4;
    border-radius: 8px;
    padding: 15px;
    position: relative;
}

.task-card.requested {
    border-left: 4px solid #ff9800;
}

.task-card.completed {
    border-left: 4px solid #4caf50;
}

.task-status {
    position: absolute;
    top: -8px;
    left: 15px;
    background: #ff9800;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    text-transform: uppercase;
}

.task-card.completed .task-status {
    background: #4caf50;
}

.task-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.task-assignee {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.task-time {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.priority {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.priority.high {
    background: #ffebee;
    color: #f44336;
}

.priority.medium {
    background: #fff3e0;
    color: #ff9800;
}

.status-badge.closed {
    background: #e8f5e8;
    color: #4caf50;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

.vehicle-tabs-section {
    margin-bottom: 40px;
}

.vehicle-tabs-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.tab-navigation {
    display: flex;
    border-bottom: 2px solid #e4e9f4;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #0e5372;
    border-bottom-color: #0e5372;
    font-weight: bold;
}

.tab-btn:hover {
    color: #0e5372;
    background: #f8f9fa;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.spec-item label {
    font-weight: bold;
    color: #666;
}

.spec-item span {
    color: #333;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.photo-item {
    text-align: center;
}

.photo-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.photo-label {
    font-size: 12px;
    color: #666;
}

.damage-section h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.damage-list {
    margin-bottom: 20px;
}

.damage-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #fff8e1;
    border-left: 4px solid #ff9800;
    margin-bottom: 8px;
    border-radius: 0 4px 4px 0;
}

.damage-number {
    font-weight: bold;
    color: #ff9800;
    flex-shrink: 0;
}

.damage-description {
    color: #333;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.market-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border: 1px solid #e4e9f4;
    border-radius: 4px;
}

.market-item label {
    font-weight: bold;
    color: #666;
}

.trend.up {
    color: #4caf50;
}

.competitive {
    color: #4caf50;
    font-weight: bold;
}

.add-info-btn, .add-view-btn {
    background: #0e5372;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.add-info-btn:hover, .add-view-btn:hover {
    background: #0a3f57;
}

.vehicle-views-section {
    margin-bottom: 40px;
}

.diagram-container {
    position: relative;
    margin-bottom: 20px;
}

.diagram-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.view-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* .marker {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #0e5372;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
} */
.marker 
 {
    position: absolute;
    width: 50px;
    height: 50px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    border: solid;
    FONT-SIZE: larger;
}
.marker:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.marker.front {
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
}

.marker.driver-side {
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
}

.marker.passenger-side {
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
}

.marker.rear {
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
}

.marker.top {
    top: 10%;
    right: 30%;
}

.view-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.view-tab {
    background: #f8f9fa;
    border: 1px solid #e4e9f4;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    transition: all 0.3s;
}

.view-tab.active {
    background: #0e5372;
    color: white;
    border-color: #0e5372;
}

.view-tab:hover {
    background: #e9ecef;
}

.view-section {
    display: none;
    background: white;
    border: 1px solid #e4e9f4;
    border-radius: 8px;
    padding: 20px;
}

.view-section.active {
    display: block;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e4e9f4;
}

.view-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.view-details {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.detail-title {
    font-weight: bold;
    color: #333;
    min-width: 150px;
}

.detail-description {
    color: #666;
}

.view-images {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.damage-image {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e4e9f4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.mobile-show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .task-cards {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .photos-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .market-grid {
        grid-template-columns: 1fr;
    }
    
    .view-images {
        flex-direction: column;
        align-items: center;
    }
    
    .damage-image {
        width: 100%;
        max-width: 300px;
    }
    
    .pricing-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
        font-size: 11px;
    }
    
    .topbar {
        padding: 15px;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .inventory-grid {
        grid-template-columns: 1fr;
    }
    
    .inventory-item {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    
    .item-main-content {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .topbar-left h2 {
        font-size: 18px;
    }
    
    .user-name {
        display: none;
    }
}
/* Top Models styling */
.model-rankings {
    padding: 5px 0;
}

.model-rank {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 5px 0;
}

.rank {
    width: 28px;
    height: 28px;
    background: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    font-size: 14px;
    color: #0e5372;
}

.model-info {
    flex-grow: 1;
    margin-right: 15px;
}

.model-name {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.progress-container {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    width: 100%;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0e5372, #36a2eb);
    border-radius: 3px;
}

.model-sales {
    font-size: 14px;
    font-weight: 600;
    color: #0e5372;
}

/* Dual widgets layout */
.dual-widgets {
    grid-column: 1 / -1;
    display: flex;
    gap: 24px;
}

.half-widget {
    flex: 1;
}

/* Customer satisfaction styling */
.satisfaction-score {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0e5372, #36a2eb);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.score-value {
    font-size: 36px;
    font-weight: bold;
}

.score-label {
    font-size: 12px;
    opacity: 0.8;
}

.satisfaction-metrics {
    margin-top: 20px;
}

.satisfaction-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.metric-label {
    font-size: 14px;
    color: #555;
}

.stars {
    display: flex;
}

.star {
    font-size: 18px;
    margin-left: 2px;
    color: #ddd;
}

.star.filled {
    color: #ffca28;
}

.star.half-filled {
    background: linear-gradient(90deg, #ffca28 50%, #ddd 50%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .dual-widgets {
        flex-direction: column;
    }
}
