/*============================================*
 * LUNIONCOM Dashboard - Modern Design System
 * Theme: Blue/Cyan/Teal Gradient
 *============================================*/

:root {
    /* Primary Colors - Blue/Cyan/Teal Theme */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #06b6d4;
    --accent: #10b981;

    /* Gradient Definitions */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    --gradient-sidebar: #ffffff;
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;

    /* Neutral Colors */
    --dark: #111827;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.2s ease;
    --transition-slow: 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--gray-100);
    overflow-x: hidden;
    color: var(--gray-700);
    line-height: 1.6;
}

/*============================================*
 * Layout Structure
 *============================================*/
#wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

#page-content-wrapper {
    margin-left: 260px;
    margin-top: 0;
    padding-top: 0;
    width: calc(100% - 260px);
    transition: margin-left var(--transition-slow), width var(--transition-slow);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--gray-100);
    position: relative;
}

.main-content {
    flex: 1;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

.main-content>*:first-child {
    margin-top: 0;
}

/* Dashboard Container */
.dashboard-container {
    margin-top: 0 !important;
}

/* Page Title */
.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

/*============================================*
 * Sidebar - Modern Glass Design
 *============================================*/
#sidebar-wrapper {
    min-height: 100vh;
    max-height: 100vh;
    width: 260px;
    background: var(--gradient-sidebar);
    transition: margin-left var(--transition-slow), transform var(--transition-slow);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1050;
    box-shadow: none;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Sidebar Header */
.sidebar-heading {
    padding: 1.25rem 1.5rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.sidebar-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.sidebar-logo {
    max-height: 45px;
    width: auto;
    margin-bottom: 0.5rem;
}

.sidebar-heading .brand-text {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 0.5px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-heading .brand-subtitle {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.25rem;
}

/* Sidebar Navigation */
#sidebar-wrapper .list-group {
    padding: 0.4rem 0.65rem;
    flex: 1;
}

#sidebar-wrapper .list-group-item {
    background: transparent;
    border: none;
    color: var(--gray-600);
    padding: 0.45rem 0.9rem;
    margin-bottom: 0.1rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    font-weight: 500;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    position: relative;
    overflow: hidden;
}

#sidebar-wrapper .list-group-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient-accent);
    transform: scaleY(0);
    transition: transform var(--transition);
}

#sidebar-wrapper .list-group-item i {
    width: 22px;
    text-align: center;
    font-size: 1.1rem;
    transition: transform var(--transition);
}

#sidebar-wrapper .list-group-item:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    transform: translateX(4px);
}

#sidebar-wrapper .list-group-item:hover i {
    transform: scale(1.1);
}

#sidebar-wrapper .list-group-item.active {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

#sidebar-wrapper .list-group-item.active::before {
    transform: scaleY(1);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem 0.75rem;
    border-top: 1px solid var(--gray-200);
    background: #ffffff;
}

/* Privacy Toggle */
.privacy-toggle-wrapper {
    padding: 0.75rem 1rem;
}

.privacy-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.privacy-toggle-btn:hover {
    background: var(--gray-200);
    color: var(--dark);
}

.privacy-toggle-btn.active {
    background: var(--gradient-accent);
    border-color: transparent;
    color: #fff;
}

.privacy-toggle-btn i {
    width: 20px;
    text-align: center;
}

/* Privacy Blur Effect */
body.privacy-mode .privacy-blur {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    transition: filter var(--transition-slow);
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    display: none;
    backdrop-filter: blur(4px);
}

/* Toggle States */
#wrapper.toggled #sidebar-wrapper {
    margin-left: -260px;
}

#wrapper.toggled #sidebar-toggle-desktop {
    position: fixed;
    left: 0;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1060;
}

#wrapper.toggled #page-content-wrapper {
    margin-left: 0;
    width: 100%;
}

/*============================================*
 * Top Navigation Bar
 *============================================*/
.sticky-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: none;
    padding: 1rem 0;
    margin: 0;
    border-bottom: 1px solid var(--gray-200);
}

.sticky-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    z-index: 1021;
}

.btn-menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    font-size: 1rem;
}

.btn-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.45);
}

.btn-menu-toggle:active {
    transform: scale(0.98);
}

.navbar-brand-mobile {
    color: var(--dark);
    font-size: 1rem;
    font-weight: 600;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* User Greeting */
.user-greeting {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.user-greeting strong {
    color: var(--dark);
    font-weight: 600;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.user-avatar:hover {
    transform: scale(1.05);
}

/*============================================*
 * Stat Cards - Modern Design
 *============================================*/
.stat-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    overflow: hidden;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

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

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

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: var(--gradient-accent);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.stat-card .stat-content .card-text {
    color: var(--gray-500);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-card .stat-content .card-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    margin: 0;
}

/*============================================*
 * Cards - General Styling
 *============================================*/
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    background: #fff;
    overflow: hidden;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/*============================================*
 * Tables - Clean Modern Style
 *============================================*/
#main-table-card,
#followup-table-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: #fff;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    vertical-align: middle;
    padding: 1rem 0.75rem;
    white-space: nowrap;
}

.table thead th a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition);
}

.table thead th a:hover {
    color: var(--primary);
}

.table td {
    vertical-align: middle;
    font-size: 0.85rem;
    color: var(--gray-600);
    text-align: center;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.table tbody tr {
    transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.04);
}

/*============================================*
 * Buttons - Enhanced Styling
 *============================================*/
.btn {
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
    padding: 0.5rem 1rem;
}

.btn-primary {
    background: var(--gradient-accent);
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    background: var(--gradient-accent);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--gradient-accent);
    border-color: transparent;
}

/* Action Buttons */
.action-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #fff !important;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.action-btn i {
    font-size: 0.7rem;
    color: #fff !important;
}

.followup-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--gradient-accent);
    color: #fff;
    transition: all var(--transition);
}

.followup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    color: #fff;
}

.followup-btn.ghost {
    background: #fff;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.followup-btn.ghost:hover {
    background-color: var(--gray-50);
    color: var(--gray-800);
}

/*============================================*
 * Badges - Modern Pills
 *============================================*/
.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.45em 0.85em;
    border-radius: var(--radius-full);
}

.followup-badge,
.followup-tag {
    padding: 0.4em 0.8em;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.2px;
    transition: all var(--transition);
}

.followup-badge.badge-success,
.followup-tag.tag-success {
    background-color: #dcfce7 !important;
    color: #166534 !important;
    border-color: #bbf7d0;
}

.followup-badge.badge-info,
.followup-tag.tag-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

.followup-badge.badge-warning,
.followup-tag.tag-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.followup-badge.badge-danger,
.followup-tag.tag-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.followup-badge.badge-muted,
.followup-tag.tag-muted {
    background-color: var(--gray-100);
    color: var(--gray-600);
    border-color: var(--gray-200);
}

/*============================================*
 * Forms - Clean Inputs
 *============================================*/
.form-control {
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/*============================================*
 * Modals - Modern Design
 *============================================*/
.modal-content {
    border-radius: var(--radius-lg) !important;
    border: none !important;
    box-shadow: var(--shadow-xl) !important;
    overflow: hidden !important;
}

.modal-header {
    background: linear-gradient(135deg, var(--dark) 0%, #1e3a8a 100%) !important;
    border-bottom: none !important;
    padding: 1.25rem 1.5rem !important;
}

.modal-title {
    font-weight: 600 !important;
    color: #fff !important;
    font-size: 1.1rem;
}

button.btn-close {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50%;
    opacity: 1;
    filter: brightness(0) invert(1);
    transition: background-color var(--transition);
}

button.btn-close:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

/*============================================*
 * Pagination - Modern Style
 *============================================*/
.pagination {
    gap: 4px;
}

.page-link {
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    transition: all var(--transition);
}

.page-link:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--dark);
}

.page-item.active .page-link {
    background: var(--gradient-accent);
    border-color: transparent;
    color: #fff;
}

.page-item.disabled .page-link {
    background-color: var(--gray-50);
    color: var(--gray-400);
}

/*============================================*
 * Alerts
 *============================================*/
.alert {
    border-radius: var(--radius);
    border: none;
}

.company-alert {
    font-size: 0.9rem;
}

/*============================================*
 * Company Pages Specific
 *============================================*/
.company-page-header {
    margin-bottom: 1.5rem;
}

.company-page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
}

.company-card {
    transition: all var(--transition);
}

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

.settings-card .card-header h5 {
    font-size: 1rem;
    font-weight: 600;
}

.api-token-input {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.users-table th {
    font-size: 0.75rem;
}

.role-select {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    min-width: 100px;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

/*============================================*
 * Responsive - Mobile
 *============================================*/
@media (max-width: 991.98px) {
    #sidebar-wrapper {
        margin-left: -260px;
    }

    #page-content-wrapper {
        margin-left: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }

    .sidebar-overlay {
        display: none;
    }

    #wrapper.toggled .sidebar-overlay {
        display: block;
    }

    .user-greeting span {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .page-title {
        font-size: 1.25rem;
    }

    .stat-card .card-body {
        padding: 1rem;
    }

    .stat-card .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .stat-card .stat-content .card-title {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/*============================================*
 * Landing Page Specific Styles
 *============================================*/

/* Navbar Overrides */
.navbar-landing {
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-landing .navbar-brand img {
    height: 45px;
    width: auto;
}

.btn-login-nav {
    color: var(--dark);
    font-weight: 600;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
}

.btn-login-nav:hover {
    color: var(--primary);
}

.btn-request {
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-request:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    color: #fff;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gray-500);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.btn-cta-lg {
    background: var(--gradient-primary);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
    color: #fff;
}

/* Visuals */
.dashboard-preview {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.shape-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
}

.blob-1 {
    top: -100px;
    right: -50px;
}

.blob-2 {
    bottom: -50px;
    left: -100px;
}

/* Landing Footer */
.footer-landing {
    background: #fff;
    border-top: 1px solid var(--gray-200);
    padding: 2rem 0;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.footer-landing a {
    color: var(--gray-500);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s;
}

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

/*============================================*
 * Desktop Sidebar Toggle
 *============================================*/
#sidebar-toggle-desktop {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    /* Subtle shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1060;
    font-size: 0.7rem;
    color: var(--gray-500);
    transition: all 0.2s ease;
}

#sidebar-toggle-desktop:hover {
    color: var(--primary);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-50%) scale(1.1);
}

#sidebar-toggle-desktop i {
    transition: transform 0.3s ease;
}

/* Rotate arrow when sidebar is closed (toggled) */
#wrapper.toggled #sidebar-toggle-desktop i {
    transform: rotate(180deg);
}

/*============================================*
 * Dropdown Polish (Header)
 *============================================*/
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Premium shadow */
    padding: 0.5rem;
    font-size: 0.9rem;
    animation: fadeIn 0.15s ease-out;
    margin-top: 0.5rem !important;
    /* Spacing from trigger */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--primary);
    transform: translateX(3px);
}

.dropdown-header {
    color: var(--gray-400);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    padding: 0.5rem 1rem;
}


/*============================================*
 * Company Interface Styles (Global Port)
 *============================================*/
.company-interface {
    --corp-primary: #3b82f6;
    --corp-primary-dark: #1d4ed8;
    --corp-success: #10b981;
    --corp-danger: #ef4444;
    --corp-warning: #f59e0b;
    --corp-text: #1f2937;
    --corp-text-muted: #6b7280;
    --corp-bg: #f8fafc;
    --corp-white: #ffffff;
    --corp-border: #e2e8f0;
    --corp-border-dark: #cbd5e1;
    --corp-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    /* Standard shadow */
    --corp-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --corp-radius: 6px;
    /* Matched to app radius if needed, or kept unique */
}

.company-interface {
    background-color: var(--corp-bg);
    min-height: 100vh;
}

.company-interface .container-fluid {
    /* max-width: 1400px; Remove max-width constraint for dashboard to use full width if needed, or keep it */
}

/* Page Header & Breadcrumbs */
.company-interface .company-page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--corp-border);
}

.company-interface .company-page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--corp-text);
    margin: 0;
    letter-spacing: -0.025em;
}

.company-interface .breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
}

.company-interface .breadcrumb-item a {
    color: var(--corp-primary);
    text-decoration: none;
}

.company-interface .breadcrumb-item a:hover {
    text-decoration: underline;
}

.company-interface .breadcrumb-item.active {
    color: var(--corp-text-muted);
}

.company-interface .breadcrumb-item+.breadcrumb-item::before {
    color: var(--corp-text-muted);
}

/* LEAD STYLE STAT CARDS (Imported for Dashboard Consistency) */
.stat-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.stat-card-info {
    display: flex;
    flex-direction: column;
}

.stat-card-info .card-text {
    color: #6b7280;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-card-info .card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0;
    line-height: 1.2;
}

.stat-icon {
    font-size: 1.125rem;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.icon-total {
    background: #3b82f6;
}

.icon-treated {
    background: #10b981;
}

.icon-untreated {
    background: #f59e0b;
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .stat-card {
        padding: 0.875rem 1rem;
    }

    .stat-card-info .card-title {
        font-size: 1.5rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* LANDING PAGE - SCROLL FEATURES */
.features-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

/* Central Line */
.scroll-line-container {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    /* Removed grey background */
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    /* Grows via JS */
    background: var(--gradient-primary);
    /* Blue gradient */
    transition: height 0.1s linear;
}

/* Arrow Head at the bottom of the line */
.scroll-line-fill::after {
    content: '';
    position: absolute;
    bottom: -6px;
    /* Adjust based on size to center it */
    left: -6px;
    /* (16px width - 4px line) / 2 = 6px offset */
    width: 16px;
    height: 16px;
    background: #06b6d4;
    /* Match bottom of gradient */
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Feature Rows */
.feature-row {
    position: relative;
    z-index: 2;
    margin-bottom: 8rem;
    /* Space between steps */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.feature-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card-wrapper {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: transform 0.3s ease;
}

.feature-card-wrapper:hover {
    transform: translateY(-5px);
}

/* Branch Arrows */
.branch-arrow-container {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.branch-arrow {
    width: 100%;
    height: 100%;
    stroke: #3b82f6;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    /* Hidden by default */
    transition: stroke-dashoffset 0.5s ease-out;
}

.branch-arrow.active {
    stroke-dashoffset: 0;
    /* Draw animation */
}

.feature-text h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.feature-text p {
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .features-section {
        padding-top: 3rem;
    }

    .scroll-line-container {
        left: 20px;
    }

    /* Move line to left on mobile */
    .branch-arrow-container {
        display: none;
    }

    /* Hide arrows on mobile */
    .feature-row {
        flex-direction: column !important;
        margin-bottom: 4rem;
        text-align: left !important;
    }

    .feature-text,
    .col-md-5 {
        width: 100% !important;
        padding-left: 50px;
    }

    /* Offset for line */
    .feature-text {
        order: 1;
        margin-bottom: 1rem;
    }

    .col-md-2 {
        display: none;
    }

    .feature-card-wrapper {
        order: 2;
        margin-left: 40px;
    }
}

/* WHATSAPP SECTION */
.whatsapp-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.phone-mockup {
    background: #fff;
    border-radius: 35px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 12px solid #1e293b;
    /* Phone Bezel */
    max-width: 350px;
    /* Slightly narrower for phone feel */
    height: 600px;
    /* Fixed height for consistent look */
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Notion of a speaker/notch */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1e293b;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.whatsapp-header {
    background: #075e54;
    color: #fff;
    padding: 2.5rem 1rem 0.8rem;
    /* Extra top padding for notch */
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.whatsapp-body {
    background-color: #efe7dd;
    background-image: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png");
    /* Subtle pattern */
    background-blend-mode: overlay;
    padding: 1rem;
    flex: 1;
    /* Take remaining space */
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    overflow-y: auto;
}

.wa-message {
    padding: 0.5rem 0.75rem;
    border-radius: 7px;
    font-size: 0.82rem;
    /* Reduced font size */
    line-height: 1.4;
    position: relative;
    max-width: 85%;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.wa-received {
    align-self: flex-start;
    background: #fff;
    border-top-left-radius: 0;
}

.wa-sent {
    align-self: flex-end;
    background: #dcf8c6;
    border-top-right-radius: 0;
}

.wa-time {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    color: #999;
    margin-top: 2px;
}

.whatsapp-footer {
    background: #f0f2f5;
    padding: 0.5rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.wa-input-box {
    background: #fff;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    flex: 1;
    font-size: 0.85rem;
    color: #54656f;
    border: none;
    outline: none;
}

/* CLIENTS SECTION */
.clients-section {
    padding: 4rem 0;
    background: #fff;
}

.client-logo-wrapper {
    padding: 1.5rem 2rem;
}

.client-logo {
    max-height: 120px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* CTA SECTION */
.cta-section {
    padding: 6rem 0;
    background:
        radial-gradient(ellipse 80% 100% at 100% 0%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 110% 50%, rgba(6, 182, 212, 0.25) 0%, transparent 50%),
        #fff;
    color: #1e293b;
}

.cta-section h2 {
    font-weight: 700;
    color: #1e293b;
}

.cta-section .opacity-75 {
    color: #475569 !important;
}

.cta-section .opacity-50 {
    color: #64748b !important;
}

.btn-cta-main {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-cta-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
    color: #fff;
}

/* FOOTER */
.footer-landing {
    background: #1e293b;
    color: #fff;
    padding: 3rem 0 2rem;
}

.footer-landing h5 {
    color: #fff;
}

.footer-landing a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-landing a:hover {
    color: #fff;
}
