:root {
    --kb-primary: #008080;
    /* Teal/Cyan base */
    --kb-secondary: #00ced1;
    --kb-bg-main: #f8fafc;
    --kb-bg-sidebar: #ffffff;
    --kb-text-main: #1e293b;
    --kb-text-muted: #64748b;
    --kb-white: #ffffff;
    --kb-border: #e2e8f0;
    --kb-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --kb-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --kb-radius: 12px;
}

.kb-dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--kb-bg-main);
    font-family: 'Inter', sans-serif;
    color: var(--kb-text-main);
}

/* Sidebar Styling */
.kb-sidebar {
    width: 260px;
    background: var(--kb-bg-sidebar);
    border-right: 1px solid var(--kb-border);
    display: flex;
    flex-direction: column;
    padding: 24px;
    height: calc(100vh - 70px);
    /* Adjusted for footer */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    bottom: 70px;
    /* Force it to end before footer */
}

.kb-sidebar-logo {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 60px;
}

.kb-sidebar-logo img {
    max-width: 100%;
    height: auto;
    max-height: 48px;
    object-fit: contain;
}

.kb-sidebar-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--kb-primary);
    font-size: 1.5rem;
    font-weight: 700;
    gap: 10px;
}

.kb-search-box {
    position: relative;
    margin-bottom: 24px;
    display: none;
}

.kb-search-box input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--kb-border);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

.kb-search-box input:focus {
    border-color: var(--kb-primary);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.kb-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.kb-nav-item {
    margin-bottom: 8px;
}

.kb-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    color: var(--kb-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.kb-nav-link:hover,
.kb-nav-link.active {
    background: rgba(0, 128, 128, 0.05);
    color: var(--kb-primary);
}

.kb-nav-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.kb-nav-link-wrapper .kb-nav-link {
    flex: 1;
}

.kb-submenu-toggle {
    background: none;
    border: none;
    color: var(--kb-text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.kb-nav-item.open .kb-submenu-toggle {
    transform: rotate(180deg);
}

.kb-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 28px;
    border-left: 1px dashed var(--kb-border);
    display: none;
}

.kb-nav-item.open .kb-submenu {
    display: block;
}

.kb-submenu-link {
    display: block;
    padding: 8px 16px;
    color: var(--kb-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    position: relative;
}

.kb-submenu-link::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    width: 12px;
    height: 1px;
    background: var(--kb-border);
}

.kb-submenu-link:hover,
.kb-submenu-link.active {
    color: var(--kb-primary);
}

.kb-submenu-link.active {
    font-weight: 600;
}

.kb-sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--kb-border);
}

.kb-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.2s;
}

.kb-user-profile:hover {
    background: rgba(0, 128, 128, 0.05);
}

.kb-user-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    min-width: 40px;
    border-radius: 50%;
    background: var(--kb-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    overflow: hidden;
}

.kb-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kb-user-info span {
    display: block;
    font-size: 0.85rem;
}

.kb-user-name {
    font-weight: 600;
    color: var(--kb-text-main);
}

/* Main Content Area */
.kb-main-content {
    flex: 1;
    margin-left: 260px;
    width: calc(100% - 260px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: 104px;
    /* Header 80px + 24px gap */
    padding-bottom: 24px;
    /* Reset padding since footer is hidden */
}

/* Desktop Sticky Header */
.kb-desktop-header {
    position: fixed;
    top: 0;
    left: 260px;
    width: calc(100% - 260px);
    background: var(--kb-bg-sidebar);
    border-bottom: 1px solid var(--kb-border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    height: 80px;
}

.kb-desktop-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.kb-desktop-search input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border-radius: 10px;
    border: 1px solid var(--kb-border);
    background: var(--kb-bg-main);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

.kb-desktop-search input:focus {
    border-color: var(--kb-primary);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.kb-header-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 12px;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.kb-header-profile:hover {
    background: var(--kb-bg-main);
}

.kb-header-user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.kb-header-user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--kb-text-main);
}

.kb-header-user-role {
    font-size: 0.75rem;
    color: var(--kb-text-muted);
}

.kb-header-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--kb-border);
}

.kb-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kb-tab-container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kb-tab-content {
    width: 100%;
    flex: 1;
}

.kb-tab-content.active {
    display: flex;
    flex-direction: column;
}

.kb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.kb-title-area h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.kb-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.kb-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--kb-border);
    background: white;
    color: var(--kb-text-main);
}

.kb-btn-primary {
    background: var(--kb-primary);
    color: white;
    border: none;
}

.kb-btn-primary:hover {
    background: #006666;
}

/* Summary Cards */
.kb-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.kb-card {
    background: white;
    padding: 24px;
    border-radius: var(--kb-radius);
    box-shadow: var(--kb-shadow);
    border: 1px solid var(--kb-border);
    width: 100%;
}

.kb-card-full {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.kb-card-balance {
    background: linear-gradient(135deg, var(--kb-primary), var(--kb-secondary));
    color: white;
}

.kb-card-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 8px;
    display: block;
}

.kb-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.kb-trend {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kb-trend.up {
    color: #10b981;
}

.kb-trend.down {
    color: #ef4444;
}

/* Chart Section */
.kb-chart-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.kb-chart-container {
    height: 300px;
}

/* Table Section */
.kb-recent-activities {
    background: white;
    padding: 24px;
    border-radius: var(--kb-radius);
    box-shadow: var(--kb-shadow);
}

.kb-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.kb-table th {
    text-align: left;
    padding: 12px;
    color: var(--kb-text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--kb-border);
}

.kb-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--kb-border);
}

.kb-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.kb-status-success {
    background: #d1fae5;
    color: #065f46;
}

.kb-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.kb-status-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Sub-tabs Navigation */
.kb-sub-tabs-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding: 4px;
    scrollbar-width: none;
}

.kb-sub-tabs-nav::-webkit-scrollbar {
    display: none;
}

.kb-sub-tab-btn {
    padding: 8px 16px;
    border: 1px solid var(--kb-border);
    border-radius: 20px;
    background: white;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--kb-text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.kb-sub-tab-btn:hover {
    border-color: var(--kb-primary);
    color: var(--kb-primary);
}

.kb-sub-tab-btn.active {
    background: var(--kb-primary);
    color: white;
    border-color: var(--kb-primary);
}

/* Tab Content Visibility */
.kb-tab-content {
    display: none;
}

.kb-tab-content.active {
    display: block;
}

.kb-sub-tab-content {
    display: none;
}

.kb-sub-tab-content.active {
    display: block;
}

/* Mobile Header */
.kb-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    /* Increased height further */
    background: white;
    border-bottom: 1px solid var(--kb-border);
    padding: 0 16px;
    z-index: 99999 !important;
    align-items: center;
    justify-content: space-between;
}

.kb-mobile-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.kb-mobile-logo img,
.kb-sidebar-logo img,
.kb-mobile-logo .custom-logo,
.kb-sidebar-logo .custom-logo {
    max-width: 180px !important;
    height: auto !important;
    max-height: 75px !important;
    /* Adjusted for even taller header */
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

.kb-sidebar-logo {
    display: flex;
    justify-content: center;
    padding: 10px;
    margin-bottom: 24px;
    min-height: 60px;
}

.kb-menu-toggle {
    background: none;
    border: none;
    color: var(--kb-text-main);
    cursor: pointer;
    width: 40px;
    /* Fixed width for better centering of logo */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
    z-index: 2001;
}

.kb-menu-toggle:hover {
    background: var(--kb-bg-main);
}

.kb-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 2001;
    opacity: 0;
    transition: opacity 0.3s;
}

.kb-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Cart Icon Styles */
.kb-cart-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 40px;
    /* Match menu toggle width */
    z-index: 2001;
}

.kb-cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--kb-text-main);
    text-decoration: none;
    position: relative;
    border-radius: 8px;
    transition: background 0.2s;
}

.kb-cart-link:hover {
    background: var(--kb-bg-main);
}

.kb-support-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 40px;
    z-index: 2001;
}

.kb-support-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--kb-text-main);
    text-decoration: none;
    position: relative;
    border-radius: 8px;
    transition: background 0.2s;
}

.kb-support-link:hover {
    background: var(--kb-bg-main);
}

.kb-support-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e53e3e;
    /* Professional Red for support alerts */
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.kb-cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #2b6cb0;
    /* Professional Blue */
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

#settings-support {
    padding: 0;
    min-height: 600px;
    background: var(--kb-white);
    border-radius: var(--kb-radius);
    overflow: visible;
}

/* Wallet Features */
.kb-wallet-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--kb-border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--kb-text-main);
    transition: all 0.2s;
}

.kb-wallet-badge:hover {
    border-color: var(--kb-primary);
    background: var(--kb-bg-main);
}

.kb-wallet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #f7931a;
    /* Bitcoin Orange */
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}

.kb-wallet-amount {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Sidebar Wallet Card (Mobile/Tablet) */
.kb-sidebar-wallet {
    margin: 0 16px 24px;
    padding: 20px;
    background: linear-gradient(135deg, #3182ce, #63b3ed);
    /* Blue gradient like image 2 */
    border-radius: 16px;
    color: white;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.2);
    transition: transform 0.2s;
}

.kb-sidebar-wallet:hover {
    transform: translateY(-2px);
}

.kb-wallet-card-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-bottom: 4px;
    display: block;
}

.kb-wallet-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}

.kb-wallet-card-balance-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.8;
    display: block;
    margin-bottom: 2px;
}

.kb-wallet-card-balance {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    display: block;
}

.kb-wallet-card-actions {
    display: flex;
    gap: 12px;
}

.kb-wallet-card-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Settings Tab Layout */
.kb-settings-container {
    display: flex;
    gap: 24px;
    min-height: 600px;
}

.kb-settings-nav {
    width: 240px;
    background: white;
    border-radius: var(--kb-radius);
    padding: 24px 16px;
    box-shadow: var(--kb-shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kb-settings-nav-header {
    padding: 0 8px 16px;
    border-bottom: 1px solid var(--kb-border);
    margin-bottom: 16px;
}

.kb-settings-nav-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--kb-text-main);
}

.kb-settings-nav-header p {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--kb-text-muted);
}

.kb-settings-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--kb-text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.kb-settings-item:hover {
    background: var(--kb-bg-main);
    color: var(--kb-primary);
}

.kb-settings-item.active {
    background: #ebf4ff;
    color: #2b6cb0;
    font-weight: 600;
}

.kb-settings-main-content {
    flex: 1;
    background: white;
    border-radius: var(--kb-radius);
    padding: 32px;
    box-shadow: var(--kb-shadow);
}

.kb-settings-sub-tab {
    display: none;
}

.kb-settings-sub-tab.active {
    display: block;
}

@media (max-width: 1024px) {
    .kb-settings-container {
        flex-direction: column;
        gap: 16px;
    }

    .kb-settings-nav {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 8px;
        gap: 8px;
        scrollbar-width: none;
    }

    .kb-settings-nav::-webkit-scrollbar {
        display: none;
    }

    .kb-settings-nav-header {
        display: none;
    }

    .kb-settings-item {
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .kb-settings-main-content {
        padding: 20px;
    }

    .kb-desktop-header {
        display: none;
    }

    .kb-sidebar-footer {
        display: block;
    }

    .kb-mobile-header {
        display: flex;
    }

    .kb-sidebar {
        position: fixed;
        left: -320px;
        top: 0;
        bottom: 0px;
        width: 320px;
        z-index: 999999 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 15px -3px rgba(0, 0, 0, 0.1);
        background: var(--kb-bg-sidebar);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .kb-sidebar.kb-sidebar-open {
        left: 0;
    }

    .kb-sidebar-logo {
        justify-content: center;
        margin-bottom: 24px;
    }

    .kb-sidebar-logo a {
        justify-content: center;
    }

    .kb-main-content {
        padding: 124px 16px 24px;
        /* Reset padding since footer is hidden */
        width: 100%;
        margin-left: 0;
    }

    .kb-card {
        padding: 16px;
    }

    .kb-grid-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .kb-chart-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .kb-nav-link span,
    .kb-sidebar-logo span,
    .kb-user-info,
    .kb-search-box,
    .kb-submenu-toggle {
        display: flex !important;
    }

    .kb-nav-link {
        white-space: nowrap;
        width: 100%;
    }

    .kb-submenu {
        display: none !important;
        flex-direction: column;
        padding-left: 20px;
        width: 100%;
    }

    .kb-nav-item.open .kb-submenu {
        display: flex !important;
    }

    .kb-submenu-link {
        white-space: normal;
        font-size: 0.9rem;
        display: block;
        padding: 10px 0;
        line-height: 1.4;
    }

    .kb-nav-list {
        width: 100%;
        overflow-y: auto;
    }
}

@media (min-width: 1025px) {
    .kb-sidebar-footer {
        display: none;
    }

    .kb-sidebar-wallet {
        display: none !important;
    }

    #settings-wallet {
        width: 100%;
        background: white;
        padding: 24px;
        border-radius: var(--kb-radius);
        box-shadow: var(--kb-shadow);
    }
}

/* Fixed Footer Menu */
.kb-mobile-footer {
    display: none !important;
    /* Total footer menu bar hidden from frontend */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--kb-primary);
    /* Matching dashboard theme teal */
    z-index: 10000;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.kb-footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    gap: 4px;
    flex: 1;
    font-size: 0.7rem;
    /* Increased slightly for 6 items */
    transition: transform 0.2s;
}

.kb-footer-item:active {
    transform: scale(0.95);
}

.kb-footer-item span {
    white-space: nowrap;
    font-size: 0.6rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.kb-footer-item svg {
    width: 18px;
    /* Slightly smaller icons */
    height: 18px;
}

@media (max-width: 600px) {
    .kb-title-area h1 {
        font-size: 1.4rem;
    }

    .kb-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    .kb-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .kb-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .kb-recent-activities {
        padding: 16px;
    }
}

/* Dashboard Footer Styles */
.kb-dashboard-footer {
    margin-top: auto;
    padding: 32px 24px;
    background: white;
    border-top: 1px solid var(--kb-border);
    position: relative;
    overflow: hidden;
}

.kb-dashboard-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--kb-primary), var(--kb-secondary), var(--kb-primary));
    background-size: 200% 100%;
    animation: kb-gradient-move 5s linear infinite;
}

@keyframes kb-gradient-move {
    0% {
        background-position: 100% 0%;
    }

    100% {
        background-position: -100% 0%;
    }
}

.kb-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

.kb-footer-compliance {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--kb-text-main);
}

.kb-footer-links {
    font-size: 0.85rem;
    color: var(--kb-text-muted);
}

.kb-footer-links a {
    color: var(--kb-primary);
    text-decoration: none;
    font-weight: 600;
}

.kb-footer-links a:hover {
    text-decoration: underline;
}

.kb-footer-copyright {
    font-size: 0.85rem;
    color: var(--kb-text-muted);
}

.kb-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(0, 128, 128, 0.08);
    color: var(--kb-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}

@media (max-width: 1200px) {
    .kb-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .kb-chart-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .kb-dashboard-footer {
        padding: 24px 16px 120px;
        /* Extra padding for mobile bottom bar */
    }

    .kb-footer-compliance {
        font-size: 0.85rem;
    }

    .kb-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Skeleton Loading States */
.kb-skeleton-active .kb-skeleton-hide {
    display: none !important;
}

.kb-skeleton-active .kb-skeleton-show {
    display: block !important;
}

.kb-skeleton {
    background: #f1f5f9;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: kb-shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes kb-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.kb-skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    width: 100%;
}

.kb-skeleton-title {
    height: 24px;
    margin-bottom: 12px;
    width: 60%;
}

.kb-skeleton-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.kb-skeleton-card-value {
    height: 32px;
    width: 80%;
    margin-bottom: 8px;
}

.kb-skeleton-chart {
    height: 250px;
    width: 100%;
}

.kb-skeleton-list-item {
    height: 40px;
    margin-bottom: 12px;
    width: 100%;
}

.kb-skeleton-form-row {
    height: 50px;
    margin-bottom: 20px;
    width: 100%;
}

/* Chart Filters */
.kb-chart-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.kb-filter-btn {
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--kb-border);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.kb-filter-btn.active {
    background: var(--kb-primary);
    color: white;
    border-color: var(--kb-primary);
}