:root {
    --primary: #1a56db;
    --primary-hover: #1e40af;
    --secondary: #f3f4f6;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --bg-main: #f9fafb;
    --white: #ffffff;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --sidebar-width: 260px;
    --header-height: 70px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #0b57d0; /* Royal blue matching the image */
    color: var(--white);
    border-bottom: none;
    height: var(--header-height);
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    color: white;
}

.sidebar-title span {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    margin-top: 2px;
}

.sidebar-nav {
    padding: 20px 15px;
    overflow-y: auto;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    color: #5f6368;
    font-weight: 500;
    font-size: 13.5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-left: 4px solid transparent;
}

.nav-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--text-main);
    transform: translateX(3px);
}

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

.nav-item.active {
    background-color: #e8f0fe;
    color: #0b57d0;
    font-weight: 600;
    border-left: 4px solid #0b57d0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.nav-item.active i {
    color: #0b57d0;
}

.nav-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 18px;
    text-align: center;
    color: #5f6368;
    transition: color 0.2s ease;
}

/* Main Content */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.top-header {
    height: var(--header-height);
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    flex-shrink: 0;
}

.header-search {
    position: relative;
    width: 300px;
}

.header-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background-color: var(--secondary);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.header-search input:focus {
    border-color: var(--primary);
    background-color: var(--white);
}

.header-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-filters {
    display: flex;
    gap: 15px;
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    font-size: 13px;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* Dashboard Content */
.dashboard-content {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.page-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-main);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 25px;
}

/* Metric Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.metric-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
}

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

.metric-card.accent-blue { border-bottom-color: #3b82f6; }
.metric-card.accent-green { border-bottom-color: #10b981; }
.metric-card.accent-purple { border-bottom-color: #8b5cf6; }
.metric-card.accent-danger { border-bottom-color: #ef4444; }

.metric-title {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.icon-blue { background-color: #eff6ff; color: #3b82f6; }
.icon-green { background-color: #ecfdf5; color: #10b981; }
.icon-purple { background-color: #f5f3ff; color: #8b5cf6; }

.metric-footer {
    font-size: 12px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }

/* Main Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

/* Common Card */
.card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 25px;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 16px;
    font-weight: 800;
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.btn-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

/* Table List */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--bg-main);
}

.table tbody tr:hover {
    background-color: var(--secondary);
}

.col-name {
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.col-name i {
    color: var(--text-muted);
    font-size: 16px;
}

/* Status Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-success {
    background-color: #ecfdf5;
    color: var(--success);
}

.badge-warning {
    background-color: #fffbeb;
    color: var(--warning);
}

.badge-danger {
    background-color: #fef2f2;
    color: var(--danger);
}

/* Progress Bar */
.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    height: 6px;
    width: 100px;
    background-color: var(--secondary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
}

.progress-fill.success { background-color: var(--success); }
.progress-fill.warning { background-color: var(--warning); }
.progress-fill.danger { background-color: var(--danger); }

/* Alert List */
.alert-list {
    padding: 10px 20px;
}

.alert-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    gap: 15px;
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.alert-icon.danger { background-color: #fef2f2; color: var(--danger); }
.alert-icon.warning { background-color: #fffbeb; color: var(--warning); }
.alert-icon.info { background-color: #eff6ff; color: var(--info); }

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-main);
}

.alert-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.alert-action {
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
}

/* Button */
.btn-primary {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 10px 0;
    text-align: center;
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

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

/* 2-Column Equal Grid */
.dashboard-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

/* 3-Column Grid */
.dashboard-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

/* Sub-metrics inside cards */
.sub-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.sub-metric {
    text-align: center;
    padding: 15px 10px;
    background-color: var(--bg-main);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.sub-metric-icon {
    font-size: 18px;
    margin-bottom: 10px;
}

.sub-metric-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.sub-metric-title {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Simple Bar Chart UI */
.bar-chart-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.bar-label {
    width: 100px;
    font-size: 12px;
    color: var(--text-main);
}

.bar-wrapper {
    flex: 1;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 4px;
    margin: 0 15px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
}

.bar-value {
    width: 40px;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

/* Footer Quick Access */
.quick-access {
    background-color: var(--white);
    border-top: 1px solid var(--border);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}

.quick-access-title {
    font-weight: 600;
    font-size: 14px;
    margin-right: 10px;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover {
    background-color: var(--white);
    border-color: var(--primary);
}

/* Calendar Mini */
.calendar-mini {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
    font-size: 11px;
}

.cal-day {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 5px;
}

.cal-date {
    padding: 5px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.cal-date.active {
    background-color: var(--primary);
    color: white;
}

.cal-date.has-event {
    border-bottom: 2px solid var(--danger);
}

/* Modal / Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(17, 24, 39, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-out;
    backdrop-filter: blur(4px);
}

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

.modal-content {
    background-color: var(--bg-main);
    border-radius: var(--radius-md);
    width: 600px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95) translateY(10px);
    transition: all 0.2s ease-out;
    position: relative;
}

.modal-overlay.open .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    line-height: 1;
}

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

/* Allow cards inside modal to lose their margin */
.modal-content .card {
    margin-bottom: 0;
    border: none;
    box-shadow: none;
}

/* Fullscreen Enhancements */
.app-container.fullscreen-active .sidebar {
    display: none;
}

.app-container.fullscreen-active .top-header {
    padding: 0 40px;
}

.app-container.fullscreen-active .dashboard-content {
    padding: 40px 60px;
}

.app-container.fullscreen-active .page-title {
    font-size: 28px;
}

.app-container.fullscreen-active .metrics-grid {
    gap: 30px;
}

.app-container.fullscreen-active .metric-card {
    padding: 25px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: none;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.app-container.fullscreen-active .metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.app-container.fullscreen-active .metric-value {
    font-size: 38px;
}

.app-container.fullscreen-active .metric-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
}

.app-container.fullscreen-active .card {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 0.3s ease;
}

.app-container.fullscreen-active .card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.app-container.fullscreen-active .dashboard-grid,
.app-container.fullscreen-active .dashboard-grid-2,
.app-container.fullscreen-active .dashboard-grid-3 {
    gap: 35px;
}

/* Custom UI Additions for Screenshot Replicability */

/* Brand Header custom background */
.sidebar-header {
    background-color: #0b57d0 !important;
}

/* Top Header Date/Time Card */
.header-date-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px 12px;
}
.header-date-icon {
    width: 32px;
    height: 32px;
    background-color: #eff6ff;
    color: #0b57d0;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.header-date-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.header-date-time {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}
.header-date-day {
    font-size: 10px;
    color: var(--text-muted);
}

/* Menu Toggle Button */
.menu-toggle {
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

/* Pill Shaped Selects */
.filter-select {
    padding: 8px 32px 8px 16px !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
}

/* Header Action Buttons */
.btn-export {
    background-color: var(--white);
    border: 1px solid var(--border);
    color: #0b57d0;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-export:hover {
    background-color: var(--secondary);
    border-color: #0b57d0;
}

.btn-generate {
    background-color: #0b57d0;
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-generate:hover {
    background-color: #0842a0;
}

/* Layout Columns */
.dashboard-layout-main {
    display: grid;
    grid-template-columns: 1.9fr 1.15fr;
    gap: 25px;
    margin-bottom: 25px;
    align-items: start;
}
.left-column-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.right-column-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Chart Rows & Containers */
.bottom-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.donut-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 20px;
    height: 180px;
}
.donut-chart-svg {
    width: 130px;
    height: 130px;
}
.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}
.donut-legend-marker {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}
.donut-legend-label {
    font-weight: 500;
    color: var(--text-muted);
    width: 110px;
    text-align: left;
}
.donut-legend-value {
    font-weight: 700;
    color: var(--text-main);
    margin-left: auto;
}

/* Radar Chart styles */
.radar-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 15px;
    height: 180px;
}
.radar-chart-svg {
    width: 130px;
    height: 130px;
}
.radar-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 160px;
}
.radar-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}
.radar-legend-marker {
    width: 8px;
    height: 8px;
    border-radius: 1px;
}
.radar-legend-label {
    font-weight: 500;
    color: var(--text-muted);
    text-align: left;
    white-space: nowrap;
}
.radar-legend-value {
    font-weight: 700;
    color: var(--text-main);
    margin-left: auto;
}

/* Status Badges */
.badge-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
}
.badge-status.status-ready {
    background-color: #ecfdf5;
    color: #10b981;
}
.badge-status.status-not-connected {
    background-color: #fef2f2;
    color: #ef4444;
}

.health-score-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    margin: 0 auto;
}
.health-score-circle.green {
    border: 2px solid var(--success);
    color: var(--success);
}
.health-score-circle.red {
    border: 2px solid var(--danger);
    color: var(--danger);
}

.action-btn-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #eff6ff;
    color: #0b57d0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 12px;
}
.action-btn-circle:hover {
    background-color: #0b57d0;
    color: var(--white);
}

/* Quick Access in column grid */
.quick-access-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}
.quick-access-title-main {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.quick-access-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 105px;
    border: 1px solid transparent;
}
.quick-access-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.quick-access-card i {
    font-size: 22px;
    margin-bottom: 8px;
}
.quick-access-card span {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    display: block;
}

/* Pastel theme variations */
.quick-blue { background-color: #eff6ff; color: #1e40af; border-color: #dbeafe; }
.quick-blue i { color: #3b82f6; }
.quick-green { background-color: #ecfdf5; color: #065f46; border-color: #d1fae5; }
.quick-green i { color: #10b981; }
.quick-purple { background-color: #f5f3ff; color: #5b21b6; border-color: #eedeff; }
.quick-purple i { color: #8b5cf6; }
.quick-orange { background-color: #fff7ed; color: #9a3412; border-color: #ffedd5; }
.quick-orange i { color: #f97316; }

/* Help support box adjustment */
.sidebar-help-box {
    background-color: #eff6ff;
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
}
.sidebar-help-box i {
    font-size: 20px;
    color: #0b57d0;
    margin-bottom: 8px;
}
.sidebar-help-box .help-title {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--text-main);
}
.sidebar-help-box .help-desc {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.3;
}
.sidebar-help-box button {
    background-color: #0b57d0;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}
.sidebar-help-box button:hover {
    background-color: #0842a0;
}

/* Horizontal KPI Metric Cards Styles */
.metrics-grid-kpi {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    margin-bottom: 25px;
    width: 100%;
}

.metric-card-kpi {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 0; /* allows text truncation if needed */
}

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

.kpi-icon-container {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.kpi-text-container {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
    overflow: hidden;
}

.kpi-title {
    font-size: 11px;
    font-weight: 800;
    color: #111827; /* Darker slate-900 equivalent */
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-value {
    font-size: 22px;
    font-weight: 800;
    color: #111827; /* gray-900 */
    line-height: 1.1;
    margin-bottom: 2px;
}

.kpi-subtext {
    font-size: 9.5px;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Background Color variants for KPI Icon Boxes */
.kpi-bg-blue { background-color: #eff6ff; color: #2563eb; }
.kpi-bg-purple { background-color: #f5f3ff; color: #8b5cf6; }
.kpi-bg-green { background-color: #ecfdf5; color: #10b981; }
.kpi-bg-orange { background-color: #fff7ed; color: #ea580c; }
.kpi-bg-red { background-color: #fef2f2; color: #ef4444; }

/* Profile Dropdown Menu Card Styles */
.profile-menu-card {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    width: 170px;
    z-index: 100;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
}

.profile-menu-item {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-menu-item:hover {
    background-color: var(--secondary);
    color: #0b57d0;
}

.profile-menu-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
    color: var(--text-muted);
}

.profile-menu-item:hover i {
    color: #0b57d0;
}

/* Modal Screen Form Styles */
.modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    text-align: left;
}

.modal-form-label {
    font-size: 11px;
    font-weight: 700;
    color: #4b5563; /* slate-600 */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-form-input {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: var(--white);
    color: var(--text-main);
    width: 100%;
    box-sizing: border-box;
}

.modal-form-input:focus {
    border-color: #0b57d0;
    box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.15);
}

.modal-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.btn-modal-primary {
    background-color: #0b57d0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-modal-primary:hover {
    background-color: #0842a0;
}

.btn-modal-secondary {
    background-color: white;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-secondary:hover {
    background-color: var(--secondary);
    color: var(--text-main);
}

/* User Banner style for Profile screen */
.profile-banner-header {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0b57d0;
    color: white;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.profile-banner-info {
    text-align: left;
}

.profile-banner-name {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 2px;
}

.profile-banner-role {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Colleges view specific styling */
.colleges-search-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background-color: var(--white);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    outline: none;
    background-color: var(--bg-main);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.search-input-wrapper input:focus {
    border-color: #0b57d0;
    background-color: var(--white);
}

.filter-pills {
    display: flex;
    gap: 8px;
}

.filter-pill {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    background-color: var(--white);
    color: var(--text-muted);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-pill.active {
    background-color: #0b57d0;
    color: white;
    border-color: #0b57d0;
}

.filter-pill:hover:not(.active) {
    background-color: var(--secondary);
    color: var(--text-main);
}

/* Sidebar Toggle & Overlay styles */
.app-container.sidebar-hidden .sidebar {
    display: none !important;
}

.app-container.fullscreen-active:not(.sidebar-hidden) .sidebar {
    display: flex !important;
    position: absolute;
    left: 0;
    top: var(--header-height);
    bottom: 0;
    z-index: 1000;
    box-shadow: 4px 0 15px rgba(0,0,0,0.15);
    background-color: var(--white);
    border-right: 1px solid var(--border);
}

/* New Compliances Button styling */
.btn-new-compliance {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 30px;
    cursor: pointer;
    height: 32px;
    border: none;
    background: linear-gradient(135deg, #0b57d0, #0091ea);
    color: white;
    box-shadow: 0 4px 12px rgba(11, 87, 208, 0.25);
    transition: all 0.2s ease;
}

.btn-new-compliance:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(11, 87, 208, 0.35);
    background: linear-gradient(135deg, #094cb5, #0081d5);
}

.btn-new-compliance:active {
    transform: translateY(0);
}


