/* Modern Green Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors (Curated Modern Palette) */
    --primary-color: #059669; /* Emerald 600 */
    --primary-light: #10b981; /* Emerald 500 */
    --primary-hover: #047857; /* Emerald 700 */
    --secondary-color: #3b82f6; /* Blue 500 */
    --accent-color: #f59e0b; /* Amber 500 */
    --danger-color: #ef4444; /* Red 500 */

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    --grad-primary-hover: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    --grad-danger: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    --grad-warning: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);

    /* Neutral / Dark Mode Base */
    --bg-body: #f8fafc; /* Slate 50 */
    --bg-card: rgba(255, 255, 255, 0.85); /* Glassmorphism base */
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #64748b; /* Slate 500 */
    --border-color: rgba(226, 232, 240, 0.8); /* Slate 200 with alpha */

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing & Layout */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.5rem;
    
    /* Modern soft shadows */
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 16px 32px rgba(15, 23, 42, 0.1), 0 8px 16px rgba(15, 23, 42, 0.05);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--bg-body);
    /* Subtle radial gradient background for dynamic depth */
    background-image: radial-gradient(circle at top right, rgba(16, 185, 129, 0.03) 0%, transparent 40%),
                      radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Premium Webkit Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.6);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.025em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.mt-4 {
    margin-top: 1rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.grid {
    display: grid;
}

.grid-responsive-cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.grid-action-cards {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

.btn-primary, .btn-success {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover, .btn-success:hover {
    background: var(--grad-primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:active, .btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.2);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: var(--grad-danger);
    color: white;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.3);
}

.btn-warning {
    background: var(--grad-warning);
    color: white;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #ecfdf5;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn-group {
    display: inline-flex;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.btn-group .btn {
    border-radius: 0;
    border: 1px solid var(--border-color);
    margin-left: -1px;
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
    margin-left: 0;
}

.btn-soft-primary {
    background-color: #ecfdf5;
    /* Green 50 */
    color: var(--primary-color);
}

.btn-soft-primary:hover {
    background-color: #d1fae5;
    /* Green 100 */
    color: var(--primary-hover);
}

.btn-soft-blue {
    background-color: #eff6ff;
    /* Blue 50 */
    color: var(--secondary-color);
}

.btn-soft-blue:hover {
    background-color: #dbeafe;
    /* Blue 100 */
}

.btn-soft-warning {
    background-color: #fffbeb;
    /* Amber 50 */
    color: var(--accent-color);
}

.btn-soft-warning:hover {
    background-color: #fef3c7;
    /* Amber 100 */
}

.card {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Form Elements */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: white;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

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

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

/* Custom Select Styling */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    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='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Modern Date Inputs */
input[type="date"],
input[type="datetime-local"] {
    position: relative;
    /* Ensure icon is visible and consistent */
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3e%3c/svg%3e");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    color: transparent;
    cursor: pointer;
    width: 1.25em;
    height: 1.25em;
    opacity: 0.6;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Select - JS Replacement Styles */
.custom-select-wrapper.open { z-index: 1000; }
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-search {
    padding: 8px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 10;
}

.custom-select-search input {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    outline: none;
}

.custom-select-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.custom-select-trigger span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
    flex: 1;
    min-width: 0;
}
.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-main);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.custom-select-trigger .arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    transform: rotate(45deg) translateY(-2px);
    transition: all 0.2s;
    margin-left: 10px;
}

.custom-select-wrapper.open .custom-select-trigger .arrow {
    transform: rotate(225deg) translateY(-2px);
    border-color: var(--primary-color);
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25);
    max-height: 250px;
    overflow-y: auto;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.custom-option {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background-color: #ecfdf5;
    /* Green 50 */
    color: var(--primary-color);
}

.custom-option.selected {
    background-color: var(--bg-body);
    font-weight: 600;
    color: var(--primary-color);
}

/* Responsive Design */
/* Hide mobile header on desktop */
.mobile-header {
    display: none;
}

/* Base table wrapper for responsiveness */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

@media (max-width: 768px) {

    /* Hide desktop toggle */
    #sidebar-toggle {
        display: none;
    }

    /* Mobile Header */
    .mobile-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        background: var(--bg-card);
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 100;
    }

    /* Off-canvas sidebar */
    #main-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1000;
        transform: translateX(-100%);
        width: 280px !important;
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-xl);
    }

    #main-sidebar.mobile-open {
        transform: translateX(0);
    }

    /* Ensure text and icons are visible on mobile */
    #main-sidebar .sidebar-text {
        display: inline !important;
    }

    #main-sidebar .btn-ghost {
        justify-content: flex-start !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #main-sidebar .btn-ghost i {
        margin-right: 0.5rem !important;
    }

    /* Overlay for mobile */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }

    /* Grids & Forms */
    .grid {
        grid-template-columns: 1fr !important;
    }

    /* Adjust Main Content padding */
    main {
        padding: 1rem !important;
    }

    /* Stack flex containers that are not explicitly row-oriented on mobile */
    .app-wrapper {
        flex-direction: column;
        display: block;
    }

    /* Make tables universally scrollable horizontally on mobile */
    .card {
        overflow-x: auto;
    }
}

/* Modal Window Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

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

.feature-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    text-align: left;
}

.feature-table th,
.feature-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.feature-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: var(--text-main);
    position: sticky;
    top: 0;
}

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

.feature-table td.text-center {
    text-align: center;
}

/* Premium Horizontal Navigation Pills */
.nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-pills .btn-ghost,
.nav-pills .nav-link,
.nav-pills .nav-tab {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    border-radius: 9999px;
    /* Fully rounded pill shape */
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

/* Premium Sidebar Navigation */
.sidebar-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    margin-bottom: 0.35rem;
    text-decoration: none;
}

.sidebar-link:hover {
    background-color: rgba(16, 185, 129, 0.08);
    color: var(--primary-color);
    transform: translateX(4px);
}

.sidebar-link.active {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
    font-weight: 600;
}

.sidebar-link.active i {
    color: white;
}

.sidebar-link i {
    width: 24px;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.sidebar-link.special {
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
    color: var(--secondary-color);
}
.sidebar-link.special:hover {
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.sidebar-link.text-muted {
    color: var(--text-muted);
}
.sidebar-link.text-muted:hover {
    color: var(--danger-color);
    background-color: rgba(239, 68, 68, 0.08);
    transform: translateX(4px);
}

/* Premium Tables */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.table th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 1rem 1.25rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.2s, transform 0.2s;
}

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

/* Premium Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: normal;
    white-space: nowrap;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background-color: #fee2e2;
    color: #b91c1c;
}

.badge-info {
    background-color: #e0f2fe;
    color: #075985;
}

.badge-primary {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-dark {
    background-color: #1e3a8a;
    color: white;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-secondary {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

/* -- Form Helpers -- */
.form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #475569;
    font-size: 0.85rem;
    white-space: nowrap;
}
.page-header {
    font-size: 1.8rem;
    color: #1e293b;
    margin: 0;
    display:flex;
    align-items:center;
    gap:0.5rem;
}

/* -- Alerts -- */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}
.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* -- Stat Cards (Widgety nahoře) -- */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    display:flex;
    align-items:center;
    border-left: 4px solid var(--border-color);
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 1.5rem;
    margin-right: 1rem;
}
.stat-label {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.stat-value {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
}
.stat-unit {
    font-size: 1rem;
    color: #94a3b8;
    font-weight:500;
}
.stat-primary   { border-left-color: #3b82f6; }
.stat-primary .stat-icon { background: #eff6ff; color: #3b82f6; }
.stat-success   { border-left-color: #10b981; }
.stat-success .stat-value { color: #10b981; }
.stat-success .stat-icon { background: #ecfdf5; color: #10b981; }
.stat-danger    { border-left-color: #ef4444; }
.stat-danger .stat-value { color: #ef4444; }
.stat-danger .stat-icon  { background: #fef2f2; color: #ef4444; }
.stat-warning   { border-left-color: #f59e0b; }
.stat-warning .stat-icon { background: #fffbeb; color: #f59e0b; }

/* -- Modals -- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-container {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.modal-title {
    margin: 0;
    font-size: 1.25rem;
    color: #1e293b;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
}

/* -- Pagination -- */
.pagination-container {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 0 0 8px 8px;
}
.pagination-controls {
    display: flex;
    gap: 0.25rem;
}

/* Cash Table Styling */
.table-cash {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.table-cash th,
.table-cash td {
    padding: 1rem;
    font-size: 0.85rem;
}
.table-cash th {
    font-weight: 600;
}
.table-cash td.description {
    font-size: 0.9rem;
}
.table-cash td.amount {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
}
.table-cash td.actions {
    text-align: center;
    white-space: nowrap;
}

/* Segmented Controls */
.segmented-control {
    display: flex;
    background: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.25rem;
    gap: 0.25rem;
}
.segmented-control label {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0.25rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
    user-select: none;
}
.segmented-control input[type="radio"] {
    display: none;
}
.segmented-control input[type="radio"]:checked + label {
    background: #fff;
    color: var(--text-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-pills .btn-ghost:hover,
.nav-pills .nav-link:hover,
.nav-pills .nav-tab:hover {
    background-color: #f3f4f6;
    /* Light gray */
    color: var(--text-main);
}

.nav-pills .active,
.nav-pills .btn-ghost.active,
.nav-pills .nav-link.active,
.nav-pills .nav-tab.active {
    background-color: #ecfdf5 !important;
    /* Light emerald / primary 50 */
    color: var(--primary-color) !important;
    border-color: #a7f3d0 !important;
    /* Emerald 200 */
    font-weight: 600 !important;
    box-shadow: var(--shadow-sm);
}

/* ========================================= */
/*       RESPONSIVE MOBILE ADJUSTMENTS       */
/* ========================================= */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }

    /* Stack grid elements vertically */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Override span 2 to span 1 */
    .grid-col-2,
    [style*="grid-column: span 2"],
    [style*="grid-column: span 3"] {
        grid-column: span 1 !important;
    }

    /* Stack flex containers that are usually side-by-side */
    .flex.justify-between,
    .flex.items-center.justify-between {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    /* Buttons inside stacked flex containers should be full width */
    .flex.items-center.justify-between .btn,
    .flex.justify-between .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Tables should scroll horizontally on small screens */
    table, 
    .history-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    /* Tabs should scroll horizontally */
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
    }

    /* Headers / Titles */
    h1, h2 {
        font-size: 1.5rem !important;
    }

    header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    header .btn {
        width: 100%;
    }
}

/* ========================================= */
/*       HORIZONTAL NAVBAR STYLES            */
/* ========================================= */

.app-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* subtle shadow */
}

.app-navbar-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-right: 2.5rem;
    white-space: nowrap;
}

.brand-text {
    color: var(--text-main);
}

.navbar-nav {
    display: flex;
    align-items: center;
    flex: 1;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    height: 100%;
    transition: color 0.2s, background-color 0.2s;
    border-bottom: 3px solid transparent; 
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(16, 185, 129, 0.05);
}

.nav-item:hover .nav-link {
    color: var(--text-main);
}

.nav-link.active,
.nav-item:hover .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

/* Nav Dropdown styling */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    display: none; 
    flex-direction: column;
    z-index: 1050;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-item:hover .nav-dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
}

.dropdown-item i {
    width: 1.25rem;
    text-align: center;
    color: var(--text-muted);
    transition: color 0.2s;
}

.dropdown-item:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

.dropdown-item.active {
    background-color: rgba(16, 185, 129, 0.08);
    color: var(--primary-color);
}
.dropdown-item.active i {
    color: var(--primary-color);
}

/* User Profile Section */
.navbar-user {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 1.5rem;
}

.mobile-nav-toggle {
    display: none;
}

/* Mobile responsive Navbar */
@media (max-width: 1024px) {
    .app-navbar-container {
        justify-content: space-between;
    }
    .navbar-user {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-main);
        cursor: pointer;
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        height: auto;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0;
    }
    
    .navbar-nav.mobile-open {
        display: flex;
    }

    .nav-item {
        width: 100%;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-color) !important;
    }

    .nav-dropdown-menu {
        position: static;
        display: flex;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        opacity: 1;
        transform: none;
        background: #f8fafc;
    }

    .dropdown-item {
        padding: 0.75rem 1.5rem 0.75rem 2.5rem;
        border-bottom: 1px solid #f1f5f9;
    }
}

/* ========================================= */
/*       DASHBOARD GLASSMORPHISM UI          */
/* ========================================= */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-welcome h1 {
    font-size: 1.875rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.dashboard-welcome p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.kpi-card {
    position: relative;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.kpi-watermark {
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 6rem;
    opacity: 0.1;
    transform: rotate(-15deg);
    transition: transform 0.5s ease;
}

.kpi-card:hover .kpi-watermark {
    transform: rotate(0deg) scale(1.1);
}

.kpi-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.kpi-blue {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--secondary-color);
}
.kpi-blue .kpi-title { color: #1e3a8a; }

.kpi-emerald {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: var(--primary-color);
}
.kpi-emerald .kpi-title { color: #064e3b; }

.kpi-red {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: var(--danger-color);
}
.kpi-red .kpi-title { color: #7f1d1d; }

.kpi-amber {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: var(--accent-color);
}
.kpi-amber .kpi-title { color: #78350f; }


/* General Glass Card Base */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 19px;
    width: 2px;
    background: #e2e8f0;
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: white;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #e2e8f0;
}

.timeline-icon i {
    font-size: 1rem;
}

.timeline-gray i { color: var(--text-muted); }
.timeline-blue i { color: var(--secondary-color); }
.timeline-blue.timeline-icon { box-shadow: 0 0 0 2px var(--secondary-color); }
.timeline-emerald i { color: var(--primary-color); }
.timeline-emerald.timeline-icon { box-shadow: 0 0 0 2px var(--primary-color); }
.timeline-red i { color: var(--danger-color); }
.timeline-red.timeline-icon { box-shadow: 0 0 0 2px var(--danger-color); }
.timeline-amber i { color: var(--accent-color); }
.timeline-amber.timeline-icon { box-shadow: 0 0 0 2px var(--accent-color); }

.timeline-content {
    background: #f8fafc;
    padding: 1rem;
    border-radius: var(--radius-md);
    flex: 1;
    border: 1px solid var(--border-color);
}

.timeline-text {
    font-weight: 500;
    color: var(--text-main);
}

.timeline-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Ticket Widgets */
.ticket-widget-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: background 0.2s;
}

.ticket-widget-row:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.ticket-widget-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ticket-widget-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.ticket-widget-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ticket-widget-count {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.2s;
}

.quick-action-item:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.qa-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    transition: transform 0.2s;
}

.quick-action-item:hover .qa-icon {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .dashboard-actions {
        width: 100%;
    }
    .dashboard-actions .btn {
        flex: 1;
        justify-content: center;
    }
}
/* ==========================================================================
   Kanban Board Styles
   ========================================================================== */
.kanban-board-wrapper {
    overflow-x: auto;
    padding-bottom: 2rem;
}

.kanban-board {
    display: flex;
    gap: 1.5rem;
    min-width: max-content;
}

.kanban-column {
    width: 320px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 200px);
    border: 1px solid var(--border-color);
}

.kanban-header {
    padding: 1rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.kanban-header .badge {
    color: white;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
}

.kanban-cards-container {
    padding: 0.75rem;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 100px;
}

.kanban-card {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    cursor: grab;
    position: relative;
    background: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

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

.kanban-ghost {
    opacity: 0.4;
    background-color: #f8fafc;
}

.kanban-drag {
    cursor: grabbing !important;
}

/* ==========================================================================
   Status Badges (Orders & Projects)
   ========================================================================== */
.status-select-badge {
    border: none;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 9999px;
    padding: 0.25rem 1.5rem 0.25rem 0.75rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
}

.status-select-badge option {
    background: white;
    color: #1e293b;
    font-weight: 400;
}

/* Status variants using variables and fallback colors */
.status-select-badge[data-variant="new"] { background-color: #dbeafe; color: #1e40af; background-image: url("data:image/svg+xml;utf8,<svg fill=\"%231e40af\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7 10l5 5 5-5z\"/></svg>"); }
.status-select-badge[data-variant="in_progress"] { background-color: #fef3c7; color: #92400e; background-image: url("data:image/svg+xml;utf8,<svg fill=\"%2392400e\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7 10l5 5 5-5z\"/></svg>"); }
.status-select-badge[data-variant="completed"] { background-color: #d1fae5; color: #065f46; background-image: url("data:image/svg+xml;utf8,<svg fill=\"%23065f46\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7 10l5 5 5-5z\"/></svg>"); }
.status-select-badge[data-variant="cancelled"] { background-color: #f3f4f6; color: #374151; background-image: url("data:image/svg+xml;utf8,<svg fill=\"%23374151\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7 10l5 5 5-5z\"/></svg>"); }

/* ==========================================================================
   Layout Helpers & Sticky Action Bars
   ========================================================================== */
.sticky-footer-actions {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    z-index: 100;
    margin: 2rem -1.5rem -1.5rem -1.5rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.responsive-flex-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.responsive-flex-main {
    flex: 2;
    min-width: 300px;
}

.responsive-flex-side {
    flex: 1;
    min-width: 300px;
}

.responsive-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grid-col-2 {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .grid-col-2 {
        grid-column: span 1;
    }
}

/* ==========================================================================
   Tabs & Embedded Tables (from edit.php)
   ========================================================================== */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: #f1f5f9; /* Slate 100 */
    padding: 0.5rem;
    border-radius: var(--radius-lg);
}

.tab-link {
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.tab-link:hover {
    color: var(--text-main);
    background: rgba(0,0,0,0.03);
}

.tab-link.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
}

.tab-content {
    display: none;
}

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

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.history-table th,
.history-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.history-table th {
    font-weight: 600;
    color: var(--text-muted);
    background: #f9fafb;
}

/* ==========================================================================
   Spacing & Utility Layouts (Phase 11 Refactor)
   ========================================================================== */
.container-md {
    max-width: 1000px;
}
.page-title {
    margin: 0;
    font-size: 1.875rem;
    color: var(--text-main);
}
.page-subtitle {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
}
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 2rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2rem !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-4 { margin-right: 1.5rem !important; }
.mr-5 { margin-right: 2rem !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-4 { margin-left: 1.5rem !important; }
.ml-5 { margin-left: 2rem !important; }

.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 2rem !important; }

/* ==========================================================================
   Split View (PDF + Form)
   ========================================================================== */
.split-view-container {
    display: flex;
    gap: 2rem;
    height: calc(100vh - 150px);
    overflow: hidden;
}
.split-pdf-viewer {
    flex: 1 1 45%;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.split-form-viewer {
    flex: 1 1 55%;
    overflow-y: auto;
    padding-right: 0.5rem;
    height: 100%;
}
@media (max-width: 1024px) {
    .split-view-container {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    .split-pdf-viewer {
        height: 600px;
    }
    .split-form-viewer {
        overflow-y: visible;
        height: auto;
    }
}
.split-form-viewer::-webkit-scrollbar {
    width: 8px;
}
.split-form-viewer::-webkit-scrollbar-track {
    background: transparent; 
}
.split-form-viewer::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 4px;
}

/* ==========================================================================
   Expense Form Elements
   ========================================================================== */
.expense-item-row {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.2s;
}
.expense-item-row:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-sm);
}
.remove-item-btn {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}
.expense-item-row:hover .remove-item-btn {
    opacity: 1;
    transform: scale(1);
}
.remove-item-btn:hover {
    background: #dc2626;
    transform: scale(1.1) !important;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}
.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

/* ==========================================================================
   Global Drop Zone for Uploads
   ========================================================================== */
.global-dropzone {
    background: rgba(14, 165, 233, 0.95);
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-direction: column;
    backdrop-filter: blur(4px);
}
.global-dropzone i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}
.global-dropzone h2 {
    font-size: 2.25rem;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.global-dropzone-status {
    margin-top: 1rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* ==========================================================================
   Phases 18 Utils: Inbox & Vytěžování
   ========================================================================== */
.badge-info {
    background-color: #e0f2fe;
    color: #0369a1;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background-color: #fef08a;
    color: #854d0e;
}

.badge-secondary {
    background-color: #e2e8f0;
    color: #475569;
}

.upload-dropzone {
    margin-bottom: 2rem;
    padding: 3rem 2rem;
    border: 2px dashed var(--border-color);
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.upload-dropzone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.upload-dropzone:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.1), 0 8px 10px -6px rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

.upload-dropzone:hover::before {
    opacity: 1;
}

.upload-dropzone .dropzone-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.upload-dropzone:hover .dropzone-icon {
    transform: scale(1.1) translateY(-5px);
}

/* ==========================================================================
   Utility Classes (Formátování, Text, Rozložení)
   ========================================================================== */
.d-none { display: none !important; }
.d-inline-block { display: inline-block !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.whitespace-nowrap { white-space: nowrap !important; }
.text-muted { color: var(--text-muted) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-success { color: var(--success-color) !important; }
.m-0 { margin: 0 !important; }

.text-truncate-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Úprava DropZony pro JS Toggle */
.upload-dropzone.drag-active {
    border-color: var(--primary-color);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: inset 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.upload-dropzone.drag-active .dropzone-icon {
    transform: scale(1.1) translateY(-5px);
}

/* --- Nové globální komponenty (Sales apod.) --- */
.content-container {
    max-width: 1000px;
    margin: 0 auto;
}

.sticky-footer-bar {
    position: sticky;
    bottom: 0;
    padding: 1rem 1.5rem;
    margin: 0 -1.5rem -1.5rem -1.5rem;
    border-radius: 0 0 8px 8px;
    gap: 2rem;
    z-index: 50;
    box-shadow: 0 -4px 6px -1px rgba(0,0,0,0.05);
}

/* Vynucení elegantní mezery mezi všemi ikonkami a textem u Flex elementů (Tlačítka, štítky) */
.btn {
    gap: 0.5rem;
}
.badge {
    gap: 0.4rem;
}

/* ==========================================================================
   Repairs Module Styles (Kanban & Index)
   ========================================================================== */
/* Kanban Board */
.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
}
.kanban-header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.kanban-header-title h1 {
    font-size: 1.875rem;
    margin: 0;
}
.kanban-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    min-height: 60vh;
}
.kanban-column {
    background: #f8fafc;
    border-radius: 12px;
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}
.kanban-column-header {
    padding: 1.25rem 1rem;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid transparent; /* modified dynamically */
}
.kanban-column-title {
    margin: 0;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.kanban-column-indicator {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
}
.kanban-column-count {
    background: #f1f5f9;
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.kanban-dropzone {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.kanban-card {
    padding: 1.25rem;
    cursor: grab;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}
.kanban-card.overdue {
    border-left: 4px solid var(--danger-color);
}
.kanban-card:active {
    cursor: grabbing;
}
.kanban-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    align-items: center;
}
.kanban-card-id {
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
    background: #f8fafc;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}
.kanban-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.4;
}
.kanban-card-customer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.kanban-card-customer-text {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #e2e8f0;
    padding-top: 0.75rem;
}
.kanban-tech-info {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.kanban-tech-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: bold;
}
.kanban-tech-avatar.assigned {
    background: #e0e7ff;
    color: #4f46e5;
}
.kanban-tech-avatar.unassigned {
    background: #f1f5f9;
    color: #94a3b8;
}

/* Quick Filters (Index) */
.stat-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.stat-card.primary { border-left: 4px solid var(--primary-color); }
.stat-card.success { border-left: 4px solid var(--primary-light); }
.stat-card.danger { border-left: 4px solid var(--danger-color); }

.stat-card h3 {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.stat-card p {
    margin: 0.5rem 0 0;
    font-size: 2rem;
    font-weight: 700;
}
.stat-card.primary p { color: var(--text-main); }
.stat-card.success p { color: var(--text-main); }
.stat-card.danger p { color: var(--danger-color); }

/* Edit / History / Photos */
.history-container {
    margin-top: 1.5rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid #e2e8f0;
    margin-left: 1rem;
}
.history-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.history-indicator {
    position: absolute;
    left: -0.4rem;
    top: 0.25rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--primary-color);
}
.history-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.history-meta strong {
    color: #64748b;
}
.history-action {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.4;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.photo-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
}
.photo-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}
.photo-delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.photo-upload-zone {
    margin-top: 2rem;
    padding: 2rem;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
}
.photo-upload-zone:hover, .photo-upload-zone.dragover {
    background: #f1f5f9;
}
.photo-upload-icon {
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}
.photo-upload-title {
    margin: 0;
    font-weight: 500;
    color: #475569;
    font-size: 1.1rem;
}
.photo-upload-subtitle {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.status-select {
    border: none;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 9999px;
    padding: 0.25rem 1.5rem 0.25rem 0.75rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-repeat: no-repeat;
    background-position-x: 95%;
    background-position-y: 5px;
}
.select-option-default {
    background: white;
    color: black;
    font-weight: 400;
}
.badge-paid {
    background: #d1fae5;
    color: #065f46;
    font-size: 0.65rem;
    border: 1px solid #34d399;
}
.badge-unpaid {
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.65rem;
    border: 1px solid #f87171;
}

@media (max-width: 768px) {
    .kanban-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .kanban-column {
        width: 300px; /* Slightly narrower on mobile */
    }
}

/* --- Inventory Module Styles --- */
.inventory-table {
    width: 100%;
    border-collapse: collapse;
}

.inventory-table th {
    background-color: #f9fafb;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    font-weight: 500;
    text-align: left;
    color: var(--text-main);
    white-space: nowrap;
}

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

.inventory-table tr:hover td {
    background-color: #f8fafc;
}

.inventory-text-muted { color: var(--text-muted); }
.inventory-item-name { font-weight: 500; }
.inventory-item-sku { font-size: 0.75rem; color: var(--text-muted); }
.inventory-text-right { text-align: right; }
.inventory-text-center { text-align: center; }

@media (max-width: 768px) {
    .inventory-mobile-hidden {
        display: none !important;
    }
    .inventory-table th, .inventory-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* --- Assets & Shared Form Grid Styles --- */
.assets-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.assets-edit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .assets-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .assets-edit-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* --- Stat Cards (vylepšený Dashboard widget) --- */
.stat-card__icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card__icon-wrapper--primary { background: rgba(37, 99, 235, 0.1); color: var(--primary-color); }
.stat-card__icon-wrapper--success { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.stat-card__icon-wrapper--warning { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); }
.stat-card__icon-wrapper--muted { background: rgba(100, 116, 139, 0.1); color: var(--text-muted); }

.stat-card__label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Lokální pomocné utility pro Assets */
.flex-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flex-start-center {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.w-100 {
    width: 100%;
}
.border-b {
    border-bottom: 1px solid var(--border-color);
}
/* Forms & Control Elements */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus {
    color: var(--text-main);
    background-color: #fff;
    border-color: #93c5fd;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}
.form-control:read-only, .form-control:disabled {
    background-color: #f1f5f9;
    opacity: 1;
}

/* Badges / Minimalist Tags */
.badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--radius-xl);
}
.badge-gray { background-color: #64748b; color: #fff; }
.badge-amber { background-color: #f59e0b; color: #fff; }
.badge-blue { background-color: #3b82f6; color: #fff; }
.badge-emerald { background-color: #10b981; color: #fff; }
.badge-red { background-color: #ef4444; color: #fff; }

table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text-main);
    border-collapse: collapse;
}

table th, table td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid #e2e8f0;
}

table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
}

table tbody tr {
    transition: background-color 0.15s ease-in-out;
}

table tbody tr:hover {
    background-color: #f8fafc;
}

/* --- FORM GRIDS --- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* --- PAGE HEADERS --- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-size: 1.875rem;
    margin: 0;
}

.page-header .actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}

/* --- ALERTS --- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #059669;
}

.alert i {
    font-size: 1.2rem;
}

/* --- UTILITIES --- */
hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* --- LANDING PAGE ENHANCEMENTS --- */
/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ Accordion */
.faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.faq-item:hover {
    box-shadow: var(--shadow-sm);
}
.faq-question {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: none;
    width: 100%;
    text-align: left;
}
.faq-question i {
    transition: transform 0.3s;
    color: var(--primary-color);
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}
.faq-answer-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Hero Mockup */
.hero-mockup-container {
    margin: 3rem auto 0;
    max-width: 900px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    background: #fff;
}
.hero-mockup-img {
    width: 100%;
    height: auto;
    display: block;
}
.hero-mockup-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 500;
}

/* CTA Banner */
.cta-banner {
    background: var(--grad-primary);
    padding: 5rem 1rem;
    text-align: center;
    color: white;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.cta-banner h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.cta-banner p {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.btn-white {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-white:hover {
    background: #f8fafc;
    color: var(--primary-hover);
}

/* --- LANDING 2.0 ADVANCED FEATURES --- */
/* Sticky Navbar */
.navbar {
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
    width: 100%;
}
.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    padding: 1rem !important;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}
.whatsapp-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.6);
    color: white;
}

/* Use Cases Columns */
.use-case-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.use-case-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    text-align: left;
}
.use-case-card ul li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}
.use-case-card ul li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Pricing Interactive Toggles */
.addon-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.9rem;
}
.addon-toggle:last-child {
    border-bottom: none;
}
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--primary-color);
}
input:checked + .slider:before {
    transform: translateX(20px);
}
