/* Siddhivinayak Cab Services - Admin MVC Design System (Zero-Build Vanilla CSS) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
    --sv-primary-orange: #F4512A;
    --sv-orange-accent: #E83E20;
    --sv-dark-charcoal: #151515;
    --sv-dark-navy: #14243A;
    --sv-sidebar-bg: linear-gradient(180deg, #151515 0%, #14243A 100%);
    --sv-main-bg: #0F172A;
    --sv-content-bg: #090D16;
    --sv-card-bg: #1E293B;
    --sv-card-header: #172033;
    --sv-text-main: #F1F5F9;
    --sv-text-muted: #94A3B8;
    --sv-text-light: #64748B;
    --sv-border: rgba(255, 255, 255, 0.08);
    --sv-border-light: rgba(255, 255, 255, 0.12);
    --sv-input-bg: #0F172A;
    --sv-hover-bg: rgba(255, 255, 255, 0.05);

    /* Status Colors */
    --sv-status-pending: #F59E0B;
    --sv-status-checking: #0284C7;
    --sv-status-confirmed: #10B981;
    --sv-status-assigned: #64748B;
    --sv-status-started: #F4512A;
    --sv-status-completed: #059669;
    --sv-status-cancelled: #EF4444;
    --sv-status-unavailable: #DC2626;

    --sidebar-width: 270px;
    --topbar-height: 70px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--sv-content-bg);
    color: var(--sv-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

/* Headings with automotive bold styling */
h1, h2, h3, h4, h5, h6,
.font-heading {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

/* App Layout Structure */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--sv-content-bg);
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--sv-sidebar-bg);
    border-right: 1px solid var(--sv-border-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    transition: transform 0.3s ease;
}

.sidebar-header {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--sv-border-light);
}

.sidebar-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0.85rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.725rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748B;
    padding: 0.5rem 0.75rem 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(244, 81, 42, 0.4);
    transform: translateX(3px);
}

.nav-link.active {
    background: linear-gradient(135deg, #F4512A 0%, #E83E20 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(244, 81, 42, 0.4);
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-icon {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    color: #FFFFFF;
}

.nav-link:hover .nav-icon {
    color: var(--sv-primary-orange);
}

.nav-link.active .nav-icon {
    color: #FFFFFF;
}

.nav-badge {
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

.nav-badge-warning {
    background: #F59E0B;
    color: #000000;
}

.nav-badge-orange {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.sidebar-footer {
    padding: 1rem 0.85rem;
    border-top: 1px solid var(--sv-border-light);
}

/* User Card in Sidebar */
.user-brief {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0.75rem;
    border: 1px solid var(--sv-border);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sv-primary-orange);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.7rem;
    color: #94A3B8;
}

/* Main Content Wrapper */
.admin-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--sv-content-bg);
}

/* Topbar */
.admin-topbar {
    height: var(--topbar-height);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sv-border-light);
    padding: 0 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 0.5rem;
}

.page-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Workspace Container */
.admin-workspace {
    padding: 1.75rem;
    flex: 1;
}

/* Cards & Sections */
.admin-card {
    background: var(--sv-card-bg);
    border: 1px solid var(--sv-border-light);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.admin-card-header {
    background: var(--sv-card-header);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--sv-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
}

.admin-card-description {
    font-size: 0.8rem;
    color: var(--sv-text-muted);
    margin-top: 0.2rem;
}

.admin-card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 0.65rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    line-height: 1.2;
}

.btn-primary {
    background: var(--sv-primary-orange);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--sv-orange-accent);
    box-shadow: 0 4px 14px rgba(244, 81, 42, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border-color: var(--sv-border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-success {
    background: #059669;
    color: #FFFFFF;
}

.btn-success:hover {
    background: #047857;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-warning {
    background: #D97706;
    color: #FFFFFF;
}

.btn-warning:hover {
    background: #B45309;
}

.btn-danger {
    background: #DC2626;
    color: #FFFFFF;
}

.btn-danger:hover {
    background: #B91C1C;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.btn-info {
    background: #0284C7;
    color: #FFFFFF;
}

.btn-info:hover {
    background: #0369A1;
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.775rem;
    border-radius: 0.5rem;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 0.5rem;
}

/* Tabs */
.tabs-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--sv-border-light);
    padding: 0 1rem;
    background: var(--sv-card-header);
}

.tab-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.15rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--sv-text-muted);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-item:hover {
    color: #FFFFFF;
}

.tab-item.active {
    color: #FFFFFF;
    border-bottom-color: var(--sv-primary-orange);
}

.tab-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
}

.tab-badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.tab-badge-info {
    background: rgba(2, 132, 199, 0.2);
    color: #38BDF8;
}

/* Filters & Search Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid var(--sv-border);
}

.toolbar-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex: 1;
}

/* Form Inputs */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #E2E8F0;
    margin-bottom: 0.4rem;
}

.form-label.required::after {
    content: " *";
    color: var(--sv-primary-orange);
}

.form-control {
    width: 100%;
    background: var(--sv-input-bg);
    border: 1px solid var(--sv-border-light);
    border-radius: 0.65rem;
    padding: 0.65rem 0.95rem;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--sv-primary-orange);
    box-shadow: 0 0 0 3px rgba(244, 81, 42, 0.2);
}

.form-control::placeholder {
    color: #64748B;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
    appearance: none;
}

.form-help {
    font-size: 0.75rem;
    color: var(--sv-text-muted);
    margin-top: 0.35rem;
}

.form-error {
    font-size: 0.75rem;
    color: #EF4444;
    margin-top: 0.35rem;
    font-weight: 500;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.col-span-full {
    grid-column: 1 / -1;
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

.admin-table th {
    background: rgba(15, 23, 42, 0.7);
    color: #94A3B8;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--sv-border-light);
    white-space: nowrap;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--sv-border);
    vertical-align: middle;
}

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

.admin-table tbody tr:hover {
    background-color: var(--sv-hover-bg);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-checking {
    background: rgba(2, 132, 199, 0.15);
    color: #38BDF8;
    border: 1px solid rgba(2, 132, 199, 0.3);
}

.badge-confirmed {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-assigned {
    background: rgba(100, 116, 139, 0.2);
    color: #CBD5E1;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.badge-started {
    background: rgba(244, 81, 42, 0.15);
    color: #FA7A64;
    border: 1px solid rgba(244, 81, 42, 0.3);
}

.badge-completed {
    background: rgba(5, 150, 105, 0.2);
    color: #10B981;
    border: 1px solid rgba(5, 150, 105, 0.4);
}

.badge-cancelled, .badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-orange {
    background: rgba(244, 81, 42, 0.2);
    color: var(--sv-primary-orange);
    border: 1px solid rgba(244, 81, 42, 0.35);
}

.badge-gray {
    background: rgba(255, 255, 255, 0.08);
    color: #CBD5E1;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1.5rem;
}

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

.modal-dialog {
    background: var(--sv-card-bg);
    border: 1px solid var(--sv-border-light);
    border-radius: 1rem;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

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

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
}

.modal-close {
    background: transparent;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    background: var(--sv-card-header);
    border-top: 1px solid var(--sv-border-light);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Alerts & Flash */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34D399;
}

.alert-error, .alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #F87171;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #FBBF24;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--sv-border);
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--sv-text-muted);
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.page-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--sv-border);
    color: #FFFFFF;
    font-weight: 600;
}

.page-btn.active {
    background: var(--sv-primary-orange);
    border-color: var(--sv-primary-orange);
}

.page-btn:hover:not(.active):not([disabled]) {
    background: rgba(255, 255, 255, 0.12);
}

/* Login Page Styling */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #151515 0%, #14243A 100%);
    padding: 1.5rem;
}

.auth-card {
    background: var(--sv-card-bg);
    border: 1px solid var(--sv-border-light);
    border-radius: 1.25rem;
    max-width: 440px;
    width: 100%;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    max-height: 52px;
    width: auto;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.auth-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
}

.auth-subtitle {
    font-size: 0.825rem;
    color: var(--sv-text-muted);
    margin-top: 0.35rem;
}

/* Footer */
.admin-footer {
    padding: 1.5rem 1.75rem;
    border-top: 1px solid var(--sv-border-light);
    text-align: center;
    font-size: 0.75rem;
    color: var(--sv-text-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-footer {
        flex-direction: column;
        text-align: center;
    }
}

/* Stat Cards for Dashboard */
.stat-card {
    background: var(--sv-card-bg);
    border: 1px solid var(--sv-border-light);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--sv-primary-orange);
    opacity: 0.9;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(244, 81, 42, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.stat-card-warning::before { background: var(--sv-status-pending); }
.stat-card-info::before { background: var(--sv-status-checking); }
.stat-card-success::before { background: var(--sv-status-confirmed); }
.stat-card-revenue::before { background: #10B981; }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-orange { background: rgba(244, 81, 42, 0.15); color: var(--sv-primary-orange); }
.stat-icon-amber { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.stat-icon-blue { background: rgba(2, 132, 199, 0.15); color: #38BDF8; }
.stat-icon-emerald { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.stat-icon-purple { background: rgba(139, 92, 246, 0.15); color: #A78BFA; }

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Montserrat', sans-serif;
}

.stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
    margin: 0.25rem 0;
}

.stat-subtext {
    font-size: 0.75rem;
    color: var(--sv-text-light);
}

.quick-action-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--sv-border);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--sv-text-main);
}

.quick-action-item:hover {
    background: var(--sv-hover-bg);
    border-color: var(--sv-primary-orange);
    color: #FFFFFF;
    transform: translateX(3px);
}

/* Circle Graph / Donut Chart Styles */
.chart-card-body {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    flex-wrap: wrap;
}

.donut-chart-container {
    position: relative;
    width: 170px;
    height: 170px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-chart {
    width: 170px;
    height: 170px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
    min-width: 170px;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--sv-border);
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--sv-text-main);
}

.chart-legend-item:hover {
    background: var(--sv-hover-bg);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}

.legend-label-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-stats {
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.775rem;
    color: #FFFFFF;
}

/* Three Dots Action Dropdown */
.action-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.action-dots-btn {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--sv-border);
    color: #CBD5E1;
    cursor: pointer;
    transition: all 0.15s ease;
}

.action-dots-btn:hover, .action-dots-btn.active {
    background: rgba(244, 81, 42, 0.15);
    color: #FFFFFF;
    border-color: var(--sv-primary-orange);
    box-shadow: 0 0 10px rgba(244, 81, 42, 0.25);
}

.action-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: 230px;
    background: #111C2E;
    border: 1px solid var(--sv-border-light);
    border-radius: 0.75rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
    z-index: 999;
    padding: 0.4rem;
    display: none;
    text-align: left;
}

.action-dropdown-menu.show {
    display: block;
    animation: dropdownFade 0.15s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #E2E8F0;
    text-decoration: none;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.action-dropdown-item:hover {
    background: rgba(244, 81, 42, 0.15);
    color: #FFFFFF;
    transform: translateX(2px);
}

.action-dropdown-item.item-success:hover {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
}

.action-dropdown-item.item-warning:hover {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
}

.action-dropdown-item.item-info:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
}

.action-dropdown-item.item-danger {
    color: #F87171;
}

.action-dropdown-item.item-danger:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #EF4444;
}

.action-dropdown-divider {
    height: 1px;
    background: var(--sv-border);
    margin: 0.35rem 0;
}

/* Message Status Pill */
.msg-status-pill {
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.725rem;
}

.msg-status-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Message History Card & Content */
.msg-history-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--sv-border);
    border-radius: 0.65rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
}

.msg-history-card:last-child {
    margin-bottom: 0;
}

.msg-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
    font-size: 0.75rem;
}

.msg-history-content {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.775rem;
    white-space: pre-wrap;
    color: #CBD5E1;
    font-family: inherit;
    line-height: 1.5;
    max-height: 220px;
    overflow-y: auto;
}

/* Direct Table WhatsApp Button */
.btn-table-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF !important;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
    transition: all 0.15s ease;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-table-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    filter: brightness(1.08);
}
