/* ============================================
   Ovi Motors — shared admin components
   ============================================ */

.sk-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    white-space: nowrap;
}
.sk-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.sk-pill-success { background: var(--sk-green-light); color: var(--sk-green-dark); }
.sk-pill-info    { background: var(--sk-blue-light);  color: var(--sk-blue); }
.sk-pill-warning { background: #fef3e2; color: #b8791a; }
.sk-pill-danger  { background: var(--sk-red-light);    color: var(--sk-red-dark); }
.sk-pill-purple  { background: #eef0fd; color: #5b6fd8; }
.sk-pill-neutral { background: var(--sk-gray-100); color: var(--sk-gray-500); }

.sk-toolbar {
    background: #fff;
    border: 1px solid var(--sk-gray-200);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}
.sk-toolbar .input-group-text {
    background: #fff;
    border-right: none;
    color: var(--sk-gray-500);
}
.sk-toolbar .form-control {
    border-left: none;
}
.sk-toolbar .form-control:focus,
.sk-toolbar .form-select:focus {
    box-shadow: none;
    border-color: var(--sk-gray-300);
}
.sk-toolbar .toolbar-spacer {
    flex: 1 1 auto;
    min-width: 0;
}
@media (max-width: 767px) {
    .sk-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .sk-toolbar > * {
        width: 100%;
    }
}

.sk-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--sk-gray-500);
}
.sk-empty-state i {
    font-size: 2.25rem;
    display: block;
    margin-bottom: 12px;
    opacity: .35;
}
.sk-empty-state p {
    margin: 0;
    font-size: .9rem;
}
.sk-empty-state .sk-empty-cta {
    margin-top: 14px;
}

.sk-icon-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sk-gray-200);
    border-radius: 7px;
    background: #fff;
    color: var(--sk-gray-600);
    font-size: .85rem;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.sk-icon-btn:hover {
    transform: translateY(-1px);
}
.sk-icon-btn--view:hover {
    color: var(--sk-blue);
    border-color: var(--sk-blue-light);
    background: var(--sk-blue-light);
}
.sk-icon-btn--edit:hover {
    color: #b8791a;
    border-color: #fde7c2;
    background: #fef3e2;
}
.sk-icon-btn--delete:hover {
    color: var(--sk-red);
    border-color: #fecaca;
    background: var(--sk-red-light);
}
.sk-icon-btn--approve:hover {
    color: var(--sk-green-dark);
    border-color: #c8e6c9;
    background: var(--sk-green-light);
}
.sk-icon-btn--favorite:hover,
.sk-icon-btn--favorite.is-active {
    color: #f5a524;
    border-color: #fde7c2;
    background: #fef3e2;
}
.sk-icon-btn-group {
    display: inline-flex;
    gap: 6px;
}

.sk-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--sk-blue-light);
    color: var(--sk-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.3);
        z-index: 999;
    }
    .sidebar-overlay.show {
        display: block;
    }
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #5a5a72;
    cursor: pointer;
    display: none;
}

@media (max-width: 991px) {
    .sidebar-toggle {
        display: block;
    }
}

.page-header {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
    border: 1px solid #e8e8e8;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a1a2e;
}

.page-header p {
    color: #8c8c9a;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    font-size: 0.88rem;
}

.breadcrumb-modern li {
    display: flex;
    align-items: center;
    color: #8c8c9a;
}

.breadcrumb-modern li a {
    color: #4caf50;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-modern li a:hover {
    text-decoration: underline;
}

.breadcrumb-modern li + li::before {
    content: '\203A';
    margin-right: 6px;
    color: #adb5bd;
    font-size: 1.1rem;
}

.breadcrumb-modern li.active {
    color: #1a1a2e;
    font-weight: 600;
}

.stat-card {
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    transition: box-shadow 0.2s;
    min-height: auto;
}

.stat-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-card .stat-icon {
    font-size: 2rem;
    margin-right: 16px;
    flex-shrink: 0;
    color: #4caf50;
}

.stat-card .stat-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1;
    color: #1a1a2e;
}

.stat-card .stat-content p {
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #8c8c9a;
}

.stat-card.stat-primary {
    background: #fff;
    border-left: 3px solid #667eea;
}
.stat-card.stat-primary .stat-icon { color: #667eea; }

.stat-card.stat-success {
    background: #fff;
    border-left: 3px solid #4caf50;
}
.stat-card.stat-success .stat-icon { color: #4caf50; }

.stat-card.stat-info {
    background: #fff;
    border-left: 3px solid #1e88e5;
}
.stat-card.stat-info .stat-icon { color: #1e88e5; }

.stat-card.stat-warning {
    background: #fff;
    border-left: 3px solid #ff9800;
}
.stat-card.stat-warning .stat-icon { color: #ff9800; }

.stat-card.stat-danger {
    background: #fff;
    border-left: 3px solid #e53935;
}
.stat-card.stat-danger .stat-icon { color: #e53935; }

.stat-card.stat-purple {
    background: #fff;
    border-left: 3px solid #8e24aa;
}
.stat-card.stat-purple .stat-icon { color: #8e24aa; }

.stat-card.stat-dark {
    background: #fff;
    border-left: 3px solid #434343;
}
.stat-card.stat-dark .stat-icon { color: #434343; }

.stat-card.stat-secondary {
    background: #fff;
    border-left: 3px solid #6c757d;
}
.stat-card.stat-secondary .stat-icon { color: #6c757d; }

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8e8;
}

.section-header i {
    font-size: 1.2rem;
    color: #4caf50;
}

.section-header h4,
.section-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a2e;
}

.section-header.section-success i { color: #4caf50; }
.section-header.section-info i { color: #1e88e5; }
.section-header.section-warning i { color: #ff9800; }
.section-header.section-purple i { color: #8e24aa; }
.section-header.section-danger i { color: #e53935; }
.section-header.section-dark i { color: #434343; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
    margin-bottom: 10px;
}

.cms-card {
    background: #fff;
    border-radius: 12px;
    transition: box-shadow 0.2s;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.cms-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cms-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px 20px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.cms-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.cms-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.cms-card-icon.icon-primary { background: #e8eaf6; color: #667eea; }
.cms-card-icon.icon-success { background: #e8f5e9; color: #4caf50; }
.cms-card-icon.icon-info { background: #e3f2fd; color: #1e88e5; }
.cms-card-icon.icon-warning { background: #fff3e0; color: #ff9800; }
.cms-card-icon.icon-danger { background: #fce4ec; color: #e53935; }
.cms-card-icon.icon-purple { background: #f3e5f5; color: #8e24aa; }
.cms-card-icon.icon-dark { background: #f5f5f5; color: #434343; }

.cms-card-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: #1a1a2e;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cms-card-desc {
    font-size: 0.75rem;
    color: #8c8c9a;
    margin: 0;
    line-height: 1.3;
}

.action-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px 16px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a2e;
    border: 1px solid #e8e8e8;
    transition: box-shadow 0.2s;
    min-width: 0;
}

.action-tile:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: #1a1a2e;
    text-decoration: none;
}

.action-tile .action-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.action-tile .action-label {
    font-weight: 600;
    font-size: 0.85rem;
}

.data-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.data-table .data-table-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.data-table .data-table-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a2e;
}

.data-table .data-table-header i {
    color: #4caf50;
    font-size: 1.1rem;
}

.data-table .table {
    margin-bottom: 0;
    border: none;
}

.data-table .table thead th {
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
    font-weight: 600;
    font-size: 0.8rem;
    color: #8c8c9a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-top: none;
}

.data-table .table tbody tr {
    transition: background 0.15s ease;
}

.data-table .table tbody tr:hover {
    background-color: #f8f9fa;
}

.data-table .table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-color: #f0f0f0;
    font-size: 0.88rem;
    color: #3a3a4a;
}

.cms-nav-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 24px;
    overflow-x: auto;
    flex-wrap: nowrap;
    border: 1px solid #e8e8e8;
}

.cms-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #5a5a72;
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.15s;
}

.cms-nav-item:hover {
    background: #f0f7f0;
    color: #2d6a2d;
    text-decoration: none;
}

.cms-nav-item.active {
    background: #e8f5e9;
    color: #2d6a2d;
    font-weight: 600;
}

.cms-nav-item i {
    font-size: 1rem;
}

.dashboard-section {
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .page-header {
        padding: 18px;
        border-radius: 10px;
    }
    .page-header h1 {
        font-size: 1.3rem;
    }
    .dashboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    .stat-card {
        padding: 16px;
    }
    .stat-card .stat-icon {
        font-size: 1.6rem;
        margin-right: 12px;
    }
    .stat-card .stat-content h3 {
        font-size: 1.3rem;
    }
    .cms-nav-bar {
        border-radius: 10px;
    }
    .section-header {
        padding-bottom: 10px;
    }
    .action-tile {
        padding: 14px 10px 12px;
    }
}

