/* Global Styles */
:root {
    --primary-blue: #2d4a7c;
    --secondary-blue: #4a6fa5;
    --light-blue: #e8f0f8;
    --accent-yellow: #f5d76e;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --border-color: #d0d0d0;
    --white: #ffffff;
    --gray-bg: #f5f5f5;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    /*background-color: var(--gray-bg);*/
    background-color: white;
}

/* Layout Container */
.layout-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    /*background: linear-gradient(180deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);*/
    background: #31468B;
    color: var(--white);
    flex-shrink: 0;
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 300;
}

.sidebar-nav {
    padding: 10px 0;
}

.nav-section {
    margin-bottom: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 10px;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background 0.2s;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.nav-item i {
    margin-right: 12px;
    font-size: 18px;
}

.icon-chevron {
    margin-left: auto;
    margin-right: 0;
    transition: transform 0.3s;
}

.nav-section.expandable.active .icon-chevron {
    transform: rotate(180deg);
}

.nav-submenu {
    list-style: none;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    margin-bottom: 0;
    padding-left: 0;
}

.nav-section.expandable.active .nav-submenu {
    max-height: 500px;
}

.nav-submenu li a {
    display: block;
    padding: 10px 20px 10px 52px;
    color: var(--white);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 13px;
    position: relative;
}

.nav-submenu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-submenu li a.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
    border-left: 4px solid var(--accent-yellow);
}

.nav-submenu li a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-yellow);
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--gray-bg);
    margin-left: 280px;
}

/* Top Header */
.top-header {
    background: #667096;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left .welcome-text h2 {
    font-size: 18px;
    margin-bottom: 4px;
    color: white;
}

.user-info {
    font-size: 12px;
    color: white;
}

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

.alerts-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    position: relative;
}

    .alerts-link:hover {
        color: lightgray;
    }

.alerts-link .icon-alert {
    color: var(--accent-yellow);
    font-size: 20px;
}

.badge {
    background: var(--accent-yellow);
    color: var(--text-dark);
    border-radius: 1px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: bold;
    color: white
}

.header-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.header-link:hover {
    color: lightgray;
}

.btn-logout {
    background: var(--accent-yellow);
    color: var(--text-dark);
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: #f0ca4d;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 32px;
    background-color:white
}

/* Page Container */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item {
    color: var(--primary-blue);
    text-decoration: none;
}

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

.breadcrumb-item.active {
    color: var(--text-medium);
    pointer-events: none;
}

.breadcrumb-separator {
    color: var(--text-light);
}

/* Case Info Grid */
.case-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 24px;
    background: var(--white);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    font-size: 14px;
    color: var(--text-dark);
}

/* Action Buttons */
.action-buttons-top,
.action-buttons-bottom {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.action-buttons-bottom {
    margin-top: 20px;
    margin-bottom: 0;
}

.btn {
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent-yellow);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: #f0ca4d;
}

.btn-secondary {
    background: var(--accent-yellow);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #f0ca4d;
}

/* Measure Card */
.measure-card {
    background: var(--light-blue);
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}

.measure-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--light-blue);
}

.measure-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.icon-info-circle {
    color: var(--primary-blue);
    font-size: 20px;
}

.measure-code {
    font-weight: 600;
    color: var(--text-dark);
}

.measure-title {
    color: var(--text-dark);
}

.measure-response {
    display: flex;
    gap: 20px;
    align-items: center;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-option span {
    user-select: none;
}

/* Measure Criteria */
.measure-criteria {
    background: var(--white);
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.criterion-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    gap: 12px;
}

.criterion-bullet {
    color: var(--text-dark);
    font-size: 16px;
}

.criterion-text {
    flex: 1;
    color: var(--text-dark);
    font-size: 13px;
}

.criterion-response {
    display: flex;
    gap: 20px;
}

/* Icons (using Unicode symbols as placeholders) */
.icon-link::before { content: "🔗"; }
.icon-checkbox::before { content: "☑"; }
.icon-medical::before { content: "⚕"; }
.icon-settings::before { content: "⚙"; }
.icon-reports::before { content: "📊"; }
.icon-help::before { content: "❓"; }
.icon-home::before { content: "🏠"; }
.icon-alert::before { content: "⚠"; }
.icon-info-circle::before { content: "ℹ"; }
.icon-chevron::before { content: "▼"; }

/* Responsive Design */
@media (max-width: 1200px) {
    .case-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .case-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .layout-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 280px;
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
    }
    
    .sidebar:not(.hidden) {
        transform: translateX(0);
    }
    
    .sidebar-toggle-btn {
        left: 10px !important;
        top: 10px;
    }
    
    .sidebar:not(.hidden) ~ * .sidebar-toggle-btn {
        left: 260px !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .top-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        padding-left: 60px;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .case-info-grid {
        grid-template-columns: 1fr;
    }
    
    .measure-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .criterion-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Overlay for mobile when sidebar is open */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .sidebar:not(.hidden) ~ .sidebar-overlay {
        display: block;
    }
}

.hrblue {
    color: #0040ff;
    border-color: #0040ff;
    display: block;
    height: 5px;
    border-top: 5px solid #0040ff;
    margin: 1em 0;
    padding: 0;
    opacity: 1;
}

.hrblues {
    color: #cccccc;
    border-color: #cccccc;
    display: block;
    height: 3px;
    border-top: 3px solid #cccccc;
    margin: 1em 0;
    padding: 0;
}

.control-label {
    font-weight: 500;
    font-size: 18px;
}

.form-control, .form-select {
    border-radius: 0 !important;
}

.small-h2 {
    font-size: 1.5em; /* Standard is 1.5em */
}

.breadcrumb-custom {
    font-size: 0.9rem; /* Slightly bigger than standard 1rem */
}

    .breadcrumb-custom a,
    .breadcrumb-custom .breadcrumb-item {
        color: #1226AA !important; /* Standard Bootstrap Blue */
        text-decoration: none;
    }

        .breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
            color: #1226AA; /* Makes the "/" separator blue as well */
        }

.dt-cust-head {
    color:white;
    background-color: gray
}


.all-caps-label {
    font-variant: small-caps;
    font-weight: 600
}

/* Base style for both buttons to match your 'Create New Case' look */
/*.btn-custom-gold {
    background-color: #fce391 !important;*/ /* The gold/yellow color */
    /*color: #333 !important;*/ /* Dark text */
    /*font-weight: bold;
    text-transform: uppercase;*/ /* Forces uppercase like your image */
    /*border: 1px solid transparent;*/ /* Placeholder border to prevent shifting */
    /*transition: all 0.2s ease;*/ /* Smooth transition for the border */
    /*padding: 8px 20px;
}*/

    /* Hover state: Adds the thin black border */
    /*.btn-custom-gold:hover {
        border: 1px solid black !important;*/ /* Thin black border on hover */
        /*background-color: #fce391 !important;*/ /* Keeps the color consistent */
        /*color: #000 !important;*/ /* Slightly darker text */
    /*}*/