/* HRH Brand Colors and Variables */
:root {
    --hrh-blue: #003366;
    --hrh-teal: #0085a3;
    --hrh-light-blue: #e6f2ff;
    --hrh-light-teal: #e6f7f9;
    --hrh-border: #d1d1d1;
    --hrh-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --hrh-text: #333333;
    --hrh-text-light: #666666;
    --hrh-white: #ffffff;
    --hrh-gray: #f8f9fa;
    --hrh-success: #28a745;
    --hrh-warning: #ffc107;
    --hrh-danger: #dc3545;
    --hrh-info: #17a2b8;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--hrh-text);
    background-color: var(--hrh-white);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.hrh-header {
    background-color: var(--hrh-white);
    border-bottom: 1px solid var(--hrh-border);
    box-shadow: var(--hrh-shadow);
}

.header-top {
    background-color: var(--hrh-blue);
    color: var(--hrh-white);
    padding: 15px 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-link {
    text-decoration: none;
    color: var(--hrh-white);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: bold;
}

.logo i {
    font-size: 32px;
}

.site-title h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.header-links {
    display: flex;
    gap: 20px;
}

.header-link {
    color: var(--hrh-white);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.header-link:hover {
    opacity: 0.8;
}

/* Navigation */
.main-nav {
    background-color: var(--hrh-white);
    border-bottom: 1px solid var(--hrh-border);
    padding: 0;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    color: var(--hrh-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background-color: var(--hrh-light-blue);
    color: var(--hrh-blue);
}

.nav-link.active {
    color: var(--hrh-teal);
    border-bottom-color: var(--hrh-teal);
}

.nav-link i {
    font-size: 16px;
}

/* Main Content */
.hrh-main {
    min-height: calc(100vh - 200px);
    padding: 20px 0;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
}

.breadcrumb {
    font-size: 14px;
    color: var(--hrh-text-light);
    margin-bottom: 10px;
}

.breadcrumb a {
    color: var(--hrh-teal);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .current {
    color: var(--hrh-text);
}

.page-header h1 {
    color: var(--hrh-blue);
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 600;
}

.page-header p {
    color: var(--hrh-text-light);
    margin: 0;
    font-size: 16px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--hrh-blue) 0%, var(--hrh-teal) 100%);
    color: var(--hrh-white);
    padding: 60px 0;
    margin-bottom: 40px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.hero-subtitle {
    font-size: 24px;
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
}

/* Modules Section */
.modules-section {
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
    color: var(--hrh-blue);
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 40px 0;
}

.modules-table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 30px;
}

.modules-table td {
    padding: 0;
    vertical-align: top;
}

/* Module Tiles */
.module-tile {
    background: var(--hrh-white);
    border: 1px solid var(--hrh-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--hrh-shadow);
    position: relative;
    overflow: hidden;
}

.module-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--hrh-teal);
}

.tile-icon {
    font-size: 48px;
    color: var(--hrh-teal);
    margin-bottom: 20px;
}

.tile-content h3 {
    color: var(--hrh-blue);
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
}

.tile-content p {
    color: var(--hrh-text-light);
    margin: 0;
    line-height: 1.5;
}

.tile-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--hrh-teal);
    opacity: 0;
    transition: opacity 0.3s;
}

.module-tile:hover .tile-arrow {
    opacity: 1;
}

/* Patient Flow Layout */
.patient-flow-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.patient-journey-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--hrh-border);
}

.patient-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.patient-row {
    display: grid;
    grid-template-columns: 200px 1fr 200px 120px;
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--hrh-border);
    background: var(--hrh-gray);
    transition: all 0.3s;
}

.patient-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.patient-row.priority-critical {
    border-left: 4px solid var(--hrh-danger);
    background: rgba(220, 53, 69, 0.05);
}

.patient-row.priority-urgent {
    border-left: 4px solid #ff6b35;
    background: rgba(255, 107, 53, 0.05);
}

.patient-row.priority-normal {
    border-left: 4px solid var(--hrh-warning);
    background: rgba(255, 193, 7, 0.05);
}

.patient-row.priority-low {
    border-left: 4px solid var(--hrh-info);
    background: rgba(23, 162, 184, 0.05);
}

.patient-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.patient-id {
    display: flex;
    align-items: center;
    gap: 12px;
}

.triage-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.triage-1 { background-color: var(--hrh-danger); }
.triage-2 { background-color: #ff6b35; }
.triage-3 { background-color: var(--hrh-warning); color: black; }
.triage-4 { background-color: var(--hrh-info); }
.triage-5 { background-color: var(--hrh-text-light); }

.patient-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--hrh-text-light);
}

.wait-time.long-wait {
    color: var(--hrh-danger);
    font-weight: 600;
}

.journey-flow {
    display: flex;
    align-items: center;
    gap: 12px;
}

.journey-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--hrh-text-light);
}

.journey-step i {
    font-size: 16px;
}

.journey-step.completed {
    color: var(--hrh-success);
}

.journey-step.active {
    color: var(--hrh-teal);
    font-weight: 600;
}

.journey-step.pending {
    color: var(--hrh-text-light);
}

.journey-arrow {
    color: var(--hrh-border);
    font-size: 12px;
}

.waiting-for {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.waiting-label {
    font-size: 12px;
    color: var(--hrh-text-light);
    text-transform: uppercase;
    font-weight: 500;
}

.waiting-item {
    font-size: 14px;
    color: var(--hrh-text);
    font-weight: 500;
}

.patient-actions {
    display: flex;
    align-items: center;
}

/* Suggestions Section */
.suggestions-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--hrh-border);
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.suggestion-card {
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--hrh-border);
    transition: all 0.3s;
}

.suggestion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.suggestion-card.priority-critical {
    border-left: 4px solid var(--hrh-danger);
    background: rgba(220, 53, 69, 0.05);
}

.suggestion-card.priority-urgent {
    border-left: 4px solid #ff6b35;
    background: rgba(255, 107, 53, 0.05);
}

.suggestion-card.priority-normal {
    border-left: 4px solid var(--hrh-warning);
    background: rgba(255, 193, 7, 0.05);
}

.suggestion-card.priority-low {
    border-left: 4px solid var(--hrh-info);
    background: rgba(23, 162, 184, 0.05);
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.suggestion-priority {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--hrh-text);
}

.suggestion-time {
    color: var(--hrh-text-light);
    font-size: 12px;
}

.suggestion-content {
    margin-bottom: 16px;
}

.suggestion-action {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--hrh-text);
}

.suggestion-reason {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--hrh-text-light);
}

.suggestion-reason i {
    color: var(--hrh-teal);
}

.suggestion-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.no-suggestions {
    text-align: center;
    padding: 40px;
    color: var(--hrh-text-light);
}

.no-suggestions i {
    font-size: 48px;
    color: var(--hrh-success);
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 1200px) {
    .patient-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .journey-flow {
        order: -1;
    }
}

/* Enhanced Swap Requests */
.enhanced-requests-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.enhanced-request-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--hrh-border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.enhanced-request-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.enhanced-request-card.eligible {
    border-left: 4px solid var(--hrh-success);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.enhanced-request-card.not-eligible {
    border-left: 4px solid var(--hrh-danger);
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.request-id {
    font-weight: 600;
    color: var(--hrh-blue);
    font-size: 14px;
}

.eligibility-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.eligibility-badge.eligible {
    background: rgba(40, 167, 69, 0.1);
    color: var(--hrh-success);
}

.eligibility-badge.not-eligible {
    background: rgba(220, 53, 69, 0.1);
    color: var(--hrh-danger);
}

.request-date {
    color: var(--hrh-text-light);
    font-size: 12px;
}

.request-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.nurse-exchange {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--hrh-gray);
    border-radius: 8px;
}

.nurse-from, .nurse-to {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.nurse-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--hrh-teal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.exchange-arrow {
    color: var(--hrh-teal);
    font-size: 20px;
}

.nurse-name {
    font-weight: 600;
    color: var(--hrh-text);
    font-size: 16px;
}

.nurse-label {
    color: var(--hrh-text-light);
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 2px;
}

.nurse-experience {
    color: var(--hrh-text-light);
    font-size: 12px;
    margin-top: 2px;
}

.shift-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shift-details, .reason-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--hrh-text);
    font-size: 14px;
}

.shift-details i, .reason-info i {
    color: var(--hrh-teal);
    width: 16px;
}

.eligibility-reason {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
    color: var(--hrh-danger);
    font-size: 14px;
}

.eligibility-reason i {
    color: var(--hrh-danger);
}

.request-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.modern-btn.success {
    background: var(--hrh-success);
    color: white;
}

.modern-btn.success:hover {
    background: #28a745;
    transform: translateY(-1px);
}

.modern-btn.secondary {
    background: var(--hrh-gray);
    color: var(--hrh-text);
}

.modern-btn.secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.modern-btn.disabled {
    background: var(--hrh-text-light);
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

.modern-btn.outline {
    background: transparent;
    color: var(--hrh-teal);
    border: 1px solid var(--hrh-teal);
}

.modern-btn.outline:hover {
    background: var(--hrh-teal);
    color: white;
    transform: translateY(-1px);
}

/* Alternatives Section */
.alternatives-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(23, 162, 184, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(23, 162, 184, 0.2);
}

.alternatives-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--hrh-teal);
    font-weight: 600;
    font-size: 14px;
}

.alternatives-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alternative-nurse {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--hrh-border);
    transition: all 0.3s;
}

.alternative-nurse:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alt-nurse-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hrh-teal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.alt-nurse-info {
    flex: 1;
}

.alt-nurse-name {
    font-weight: 600;
    color: var(--hrh-text);
    font-size: 14px;
}

.alt-nurse-details {
    color: var(--hrh-text-light);
    font-size: 12px;
    margin-top: 2px;
}

.alt-nurse-skills {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.skill-badge {
    background: var(--hrh-gray);
    color: var(--hrh-text);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

/* Modern Select */
.modern-select {
    padding: 8px 12px;
    border: 1px solid var(--hrh-border);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: var(--hrh-text);
    transition: all 0.3s;
}

.modern-select:focus {
    outline: none;
    border-color: var(--hrh-teal);
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

/* Compact Scheduling Layout */
.compact-scheduling-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--hrh-border);
    margin-bottom: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--hrh-blue) 0%, var(--hrh-teal) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.header-text h1 {
    margin: 0;
    font-size: 24px;
    color: var(--hrh-blue);
}

.header-text p {
    margin: 4px 0 0 0;
    color: var(--hrh-text-light);
    font-size: 14px;
}

.header-stats {
    display: flex;
    gap: 16px;
}

.stat-card {
    background: var(--hrh-gray);
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--hrh-blue);
}

.stat-label {
    font-size: 11px;
    color: var(--hrh-text-light);
    text-transform: uppercase;
    margin-top: 2px;
}

/* Compact Tabs */
.compact-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--hrh-gray);
    padding: 4px;
    border-radius: 8px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--hrh-text);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
    background: white;
    color: var(--hrh-teal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Compact Request Cards */
.requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 16px;
}

.request-card {
    background: white;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--hrh-border);
    transition: all 0.3s;
}

.request-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.request-card.eligible {
    border-left: 3px solid var(--hrh-success);
}

.request-card.not-eligible {
    border-left: 3px solid var(--hrh-danger);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.request-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.request-id {
    font-weight: 600;
    color: var(--hrh-blue);
    font-size: 13px;
}

.request-time {
    font-size: 11px;
    color: var(--hrh-text-light);
}

.eligibility-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.eligibility-badge.eligible {
    background: rgba(40, 167, 69, 0.1);
    color: var(--hrh-success);
}

.eligibility-badge.not-eligible {
    background: rgba(220, 53, 69, 0.1);
    color: var(--hrh-danger);
}

/* Nurse Swap Display */
.nurse-swap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--hrh-gray);
    border-radius: 6px;
    margin-bottom: 10px;
}

.nurse-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.nurse-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hrh-teal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.nurse-details {
    min-width: 0;
    flex: 1;
}

.nurse-name {
    font-weight: 600;
    color: var(--hrh-text);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nurse-meta {
    font-size: 11px;
    color: var(--hrh-text-light);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swap-arrow {
    color: var(--hrh-teal);
    font-size: 14px;
    flex-shrink: 0;
}

/* Shift Details */
.shift-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.shift-info, .reason-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--hrh-text);
}

.shift-info i, .reason-info i {
    color: var(--hrh-teal);
    width: 12px;
    flex-shrink: 0;
}

.ineligible-reason {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    color: var(--hrh-danger);
    font-size: 11px;
    margin-bottom: 10px;
}

.ineligible-reason i {
    color: var(--hrh-danger);
    flex-shrink: 0;
}

/* Compact Buttons */
.card-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.btn-approve, .btn-decline, .btn-disabled, .btn-suggest {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-approve {
    background: var(--hrh-success);
    color: white;
}

.btn-approve:hover {
    background: #28a745;
}

.btn-decline {
    background: var(--hrh-gray);
    color: var(--hrh-text);
}

.btn-decline:hover {
    background: #e9ecef;
}

.btn-disabled {
    background: var(--hrh-text-light);
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-suggest {
    background: transparent;
    color: var(--hrh-teal);
    border: 1px solid var(--hrh-teal);
    padding: 5px 8px;
}

.btn-suggest:hover {
    background: var(--hrh-teal);
    color: white;
}

/* Alternatives Section */
.alternatives {
    margin-top: 10px;
    padding: 8px;
    background: rgba(23, 162, 184, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(23, 162, 184, 0.2);
}

.alt-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    color: var(--hrh-teal);
    font-weight: 600;
    font-size: 11px;
}

.alt-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alt-nurse {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: white;
    border-radius: 4px;
    border: 1px solid var(--hrh-border);
}

.alt-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--hrh-teal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.alt-info {
    flex: 1;
    min-width: 0;
}

.alt-name {
    font-weight: 600;
    color: var(--hrh-text);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alt-meta {
    font-size: 10px;
    color: var(--hrh-text-light);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Shifts Grid */
.shifts-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shifts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shifts-header h3 {
    margin: 0;
    color: var(--hrh-blue);
    font-size: 18px;
}

.unit-filter {
    padding: 6px 12px;
    border: 1px solid var(--hrh-border);
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.shifts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.shift-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--hrh-border);
    transition: all 0.3s;
}

.shift-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.shift-card.assigned {
    border-left: 3px solid var(--hrh-success);
}

.shift-card.unassigned {
    border-left: 3px solid var(--hrh-warning);
}

.shift-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.unit-time h4 {
    margin: 0;
    color: var(--hrh-blue);
    font-size: 16px;
}

.unit-time span {
    font-size: 12px;
    color: var(--hrh-text-light);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.assigned {
    background: rgba(40, 167, 69, 0.1);
    color: var(--hrh-success);
}

.status-badge.unassigned {
    background: rgba(255, 193, 7, 0.1);
    color: var(--hrh-warning);
}

.shift-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skills {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skills-label {
    font-size: 12px;
    color: var(--hrh-text-light);
    font-weight: 500;
}

.skill-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.skill-tag {
    background: var(--hrh-gray);
    color: var(--hrh-text);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
}

/* Eligibility Card */
.eligibility-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--hrh-border);
    max-width: 600px;
    margin: 0 auto;
}

.eligibility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.eligibility-header h3 {
    margin: 0;
    color: var(--hrh-blue);
    font-size: 18px;
}

.eligibility-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--hrh-gray);
    border-radius: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
}

.summary-row .label {
    font-weight: 500;
    color: var(--hrh-text-light);
}

.summary-row .value {
    font-weight: 600;
    color: var(--hrh-text);
}

.eligibility-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.eligibility-status.eligible {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--hrh-success);
}

.eligibility-status.not-eligible {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--hrh-danger);
}

.status-icon {
    font-size: 24px;
}

.eligibility-status.eligible .status-icon {
    color: var(--hrh-success);
}

.eligibility-status.not-eligible .status-icon {
    color: var(--hrh-danger);
}

.status-text h4 {
    margin: 0;
    font-size: 16px;
}

.status-text p {
    margin: 4px 0 0 0;
    font-size: 14px;
    opacity: 0.8;
}

.eligibility-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--hrh-text-light);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h4 {
    margin: 0 0 8px 0;
    color: var(--hrh-text);
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .compact-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .compact-tabs {
        flex-direction: column;
    }
    
    .requests-grid {
        grid-template-columns: 1fr;
    }
    
    .shifts-list {
        grid-template-columns: 1fr;
    }
    
    .nurse-swap {
        flex-direction: column;
        gap: 8px;
    }
    
    .swap-arrow {
        transform: rotate(90deg);
    }
}

/* Layout Containers */
.er-flow-container,
.scheduling-container,
.bed-readiness-container,
.forecast-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 40px;
}

/* Cards */
.bay-card,
.shift-card,
.bed-card,
.forecast-card {
    background: var(--hrh-white);
    border: 1px solid var(--hrh-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--hrh-shadow);
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success { background-color: var(--hrh-success); color: white; }
.badge-warning { background-color: var(--hrh-warning); color: black; }
.badge-danger { background-color: var(--hrh-danger); color: white; }
.badge-info { background-color: var(--hrh-info); color: white; }
.badge-secondary { background-color: #6c757d; color: white; }

/* Tables */
.waiting-table,
.swap-requests-table,
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.waiting-table th,
.swap-requests-table th,
.orders-table th {
    background-color: var(--hrh-gray);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--hrh-border);
}

.waiting-table td,
.swap-requests-table td,
.orders-table td {
    padding: 12px;
    border-bottom: 1px solid var(--hrh-border);
}

.waiting-table tr:hover,
.swap-requests-table tr:hover,
.orders-table tr:hover {
    background-color: var(--hrh-light-blue);
}

/* Triage Colors */
.triage-1 { color: var(--hrh-danger); font-weight: bold; }
.triage-2 { color: #ff6b35; font-weight: bold; }
.triage-3 { color: var(--hrh-warning); font-weight: bold; }
.triage-4 { color: var(--hrh-info); }
.triage-5 { color: var(--hrh-text-light); }

/* AI Insights Panel */
.ai-insights-panel {
    background: var(--hrh-white);
    border: 1px solid var(--hrh-border);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: var(--hrh-shadow);
}

.ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ai-header h4 {
    color: var(--hrh-blue);
    margin: 0;
}

.insights-content pre {
    background-color: var(--hrh-gray);
    padding: 15px;
    border-radius: 4px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 14px;
    margin: 15px 0;
}

.ai-chat h5 {
    color: var(--hrh-blue);
    margin: 20px 0 10px 0;
    font-size: 16px;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--hrh-teal);
    color: white;
}

.btn-primary:hover {
    background-color: #006b8a;
}

.btn-success {
    background-color: var(--hrh-success);
    color: white;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--hrh-teal);
    border: 1px solid var(--hrh-teal);
}

.btn-outline-primary:hover {
    background-color: var(--hrh-teal);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Forms */
.form-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--hrh-border);
    border-radius: 4px;
    font-size: 14px;
}

/* Grids */
.bay-grid,
.bed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.shifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

/* Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.metric-card {
    background: var(--hrh-gray);
    padding: 15px;
    text-align: center;
    border-radius: 4px;
}

.metric-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--hrh-blue);
}

.metric-label {
    font-size: 12px;
    color: var(--hrh-text-light);
    text-transform: uppercase;
}

/* Charts */
.simple-bar-chart {
    margin-top: 15px;
}

.chart-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.chart-label {
    width: 60px;
    font-size: 12px;
    font-weight: 600;
}

.chart-bars {
    display: flex;
    gap: 3px;
    flex: 1;
    height: 30px;
}

.chart-bar {
    min-width: 8px;
    border-radius: 2px;
}

/* Footer */
.hrh-footer {
    background-color: var(--hrh-gray);
    border-top: 1px solid var(--hrh-border);
    padding: 20px 0;
    text-align: center;
    color: var(--hrh-text-light);
    font-size: 14px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-success { color: var(--hrh-success); }
.text-warning { color: var(--hrh-warning); }
.text-danger { color: var(--hrh-danger); }
.mb-3 { margin-bottom: 15px; }
.mt-3 { margin-top: 15px; }

/* Responsive */
@media (max-width: 768px) {
    .er-flow-container,
    .scheduling-container,
    .bed-readiness-container,
    .forecast-container {
        grid-template-columns: 1fr;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .modules-table {
        border-spacing: 15px;
    }
    
    .modules-table td {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .nav-content {
        flex-wrap: wrap;
    }
    
    .header-top-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
}

/* Existing validation styles */
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Modern Page Styles */
.modern-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern Header */
.modern-header {
    background: linear-gradient(135deg, var(--hrh-blue) 0%, var(--hrh-teal) 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 51, 102, 0.15);
}

.modern-header .header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.modern-header .header-icon {
    font-size: 48px;
    opacity: 0.9;
}

.modern-header .header-text h1 {
    margin: 0 0 8px 0;
    font-size: 36px;
    font-weight: 700;
}

.modern-header .header-text p {
    margin: 0;
    font-size: 18px;
    opacity: 0.9;
}

.modern-header .header-stats {
    display: flex;
    gap: 40px;
}

.modern-header .stat-item {
    text-align: center;
}

.modern-header .stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.modern-header .stat-label {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--hrh-text-light);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button:hover {
    background: var(--hrh-light-blue);
    color: var(--hrh-blue);
}

.tab-button.active {
    background: var(--hrh-teal);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 133, 163, 0.3);
}

/* Tab Content */
.tab-content {
    min-height: 400px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.content-header h3 {
    color: var(--hrh-blue);
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.requests-count {
    background: var(--hrh-gray);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--hrh-text-light);
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-controls {
    display: flex;
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
    color: var(--hrh-text);
    font-size: 14px;
}

.modern-select {
    padding: 10px 12px;
    border: 1px solid var(--hrh-border);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    min-width: 200px;
}

/* Modern Shift Cards */
.modern-shifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.modern-shift-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--hrh-border);
    transition: all 0.3s;
}

.modern-shift-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.modern-shift-card.assigned {
    border-left: 4px solid var(--hrh-success);
}

.modern-shift-card.unassigned {
    border-left: 4px solid var(--hrh-warning);
}

.shift-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.unit-info h4 {
    margin: 0 0 4px 0;
    color: var(--hrh-blue);
    font-size: 18px;
    font-weight: 600;
}

.shift-time {
    color: var(--hrh-text-light);
    font-size: 14px;
}

.assigned-badge, .unassigned-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.assigned-badge {
    background: rgba(40, 167, 69, 0.1);
    color: var(--hrh-success);
}

.unassigned-badge {
    background: rgba(255, 193, 7, 0.1);
    color: var(--hrh-warning);
}

.nurse-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.nurse-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hrh-light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hrh-blue);
    font-size: 16px;
}

.nurse-info.empty .nurse-avatar {
    background: var(--hrh-gray);
    color: var(--hrh-text-light);
}

.nurse-name {
    font-weight: 600;
    color: var(--hrh-text);
    margin-bottom: 2px;
}

.nurse-experience {
    font-size: 12px;
    color: var(--hrh-text-light);
}

.skills-section {
    margin-top: 16px;
}

.skills-label {
    font-size: 12px;
    color: var(--hrh-text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modern-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.modern-skill-badge {
    background: var(--hrh-light-teal);
    color: var(--hrh-teal);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Modern Request Cards */
.modern-requests-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.request-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--hrh-border);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.request-id {
    font-weight: 600;
    color: var(--hrh-blue);
}

.request-date {
    font-size: 12px;
    color: var(--hrh-text-light);
}

.nurse-exchange {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.nurse-from, .nurse-to {
    display: flex;
    align-items: center;
    gap: 12px;
}

.exchange-arrow {
    color: var(--hrh-teal);
    font-size: 16px;
}

.nurse-label {
    font-size: 12px;
    color: var(--hrh-text-light);
    text-transform: uppercase;
}

.shift-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.shift-details, .reason-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--hrh-text);
}

.shift-details i, .reason-info i {
    color: var(--hrh-teal);
    width: 16px;
}

.request-actions {
    display: flex;
    justify-content: flex-end;
}

.modern-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.modern-btn.primary {
    background: var(--hrh-teal);
    color: white;
}

.modern-btn.primary:hover {
    background: #006b8a;
}

.modern-btn.success {
    background: var(--hrh-success);
    color: white;
}

.modern-btn.secondary {
    background: transparent;
    color: var(--hrh-text);
    border: 1px solid var(--hrh-border);
}

.modern-btn.disabled {
    background: var(--hrh-gray);
    color: var(--hrh-text-light);
    cursor: not-allowed;
}

/* Eligibility Checker */
.eligibility-result-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--hrh-border);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.result-header h3 {
    margin: 0;
    color: var(--hrh-blue);
}

.eligibility-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--hrh-gray);
    border-radius: 6px;
}

.summary-item label {
    font-weight: 500;
    color: var(--hrh-text-light);
}

.eligibility-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.eligibility-status.eligible {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--hrh-success);
}

.eligibility-status.not-eligible {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--hrh-danger);
}

.status-icon {
    font-size: 24px;
}

.eligibility-status.eligible .status-icon {
    color: var(--hrh-success);
}

.eligibility-status.not-eligible .status-icon {
    color: var(--hrh-danger);
}

.status-text h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
}

.eligibility-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--hrh-text-light);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h4 {
    color: var(--hrh-text);
    margin: 0 0 8px 0;
}

/* Bed Readiness Styles */
.main-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    color: var(--hrh-blue);
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.bed-count {
    background: var(--hrh-gray);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--hrh-text-light);
}

.modern-bed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.modern-bed-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--hrh-border);
    transition: all 0.3s;
}

.modern-bed-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.modern-bed-card.bed-ready {
    border-left: 4px solid var(--hrh-success);
}

.modern-bed-card.bed-cleaning {
    border-left: 4px solid var(--hrh-warning);
}

.modern-bed-card.bed-discharging {
    border-left: 4px solid var(--hrh-info);
}

.modern-bed-card.bed-occupied {
    border-left: 4px solid var(--hrh-text-light);
}

.bed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.bed-identity h4 {
    margin: 0 0 4px 0;
    color: var(--hrh-blue);
    font-size: 18px;
    font-weight: 600;
}

.bed-unit {
    font-size: 12px;
    color: var(--hrh-text-light);
}

.bed-status-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.isolation-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(23, 162, 184, 0.1);
    color: var(--hrh-info);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.bed-prediction-section {
    margin-bottom: 16px;
}

.prediction-timer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--hrh-light-blue);
    border-radius: 8px;
}

.timer-icon {
    color: var(--hrh-teal);
    font-size: 16px;
}

.time-value {
    font-weight: 600;
    color: var(--hrh-blue);
}

.time-range {
    font-size: 12px;
    color: var(--hrh-text-light);
}

.ready-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
}

.ready-icon {
    color: var(--hrh-success);
    font-size: 16px;
}

.ready-text {
    color: var(--hrh-success);
    font-weight: 500;
}

.bottleneck-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-icon {
    color: var(--hrh-warning);
    font-size: 16px;
}

.alert-text {
    color: var(--hrh-warning);
    font-size: 14px;
    font-weight: 500;
}

.bed-footer {
    border-top: 1px solid var(--hrh-border);
    padding-top: 12px;
    margin-top: 16px;
}

.last-updated {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--hrh-text-light);
}

/* Sidebar Cards */
.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bottlenecks-card, .metrics-card, .quick-actions-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--hrh-border);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    margin: 0;
    color: var(--hrh-blue);
    font-size: 18px;
    font-weight: 600;
}

.bottleneck-count {
    background: var(--hrh-gray);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--hrh-text-light);
}

.bottlenecks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bottleneck-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--hrh-gray);
    border-radius: 6px;
}

.bottleneck-severity {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.severity-critical { background: var(--hrh-danger); }
.severity-high { background: #ff6b35; }
.severity-medium { background: var(--hrh-warning); }
.severity-low { background: var(--hrh-info); }

.bottleneck-details {
    flex: 1;
}

.bottleneck-unit {
    font-weight: 600;
    color: var(--hrh-text);
    margin-bottom: 2px;
}

.bottleneck-type {
    font-size: 12px;
    color: var(--hrh-text-light);
    margin-bottom: 2px;
}

.bottleneck-impact {
    font-size: 11px;
    color: var(--hrh-text-light);
}

.no-bottlenecks {
    text-align: center;
    padding: 20px;
    color: var(--hrh-text-light);
}

.no-issues-icon {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--hrh-success);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--hrh-gray);
    border-radius: 6px;
}

.metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.metric-item.ready .metric-icon {
    background: rgba(40, 167, 69, 0.1);
    color: var(--hrh-success);
}

.metric-item.cleaning .metric-icon {
    background: rgba(255, 193, 7, 0.1);
    color: var(--hrh-warning);
}

.metric-item.discharging .metric-icon {
    background: rgba(23, 162, 184, 0.1);
    color: var(--hrh-info);
}

.metric-item.occupied .metric-icon {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.metric-info {
    flex: 1;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--hrh-blue);
    margin-bottom: 2px;
}

.metric-label {
    font-size: 11px;
    color: var(--hrh-text-light);
    text-transform: uppercase;
}

.actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid var(--hrh-border);
    border-radius: 6px;
    color: var(--hrh-text);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--hrh-light-blue);
    border-color: var(--hrh-teal);
    color: var(--hrh-blue);
}

/* AI Insights Section */
.ai-insights-section {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-shifts-grid,
    .modern-bed-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .modern-header .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .modern-header .header-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modern-select {
        min-width: auto;
        width: 100%;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .nurse-exchange {
        flex-direction: column;
        gap: 12px;
    }
    
    .exchange-arrow {
        transform: rotate(90deg);
    }
    
    .eligibility-actions {
        flex-direction: column;
    }
    
    .modern-shifts-grid,
    .modern-bed-grid {
        grid-template-columns: 1fr;
    }
}