/* CSS Variables & Reset */
:root {
    /* Colors */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;

    /* Status Colors */
    --status-normal-bg: #dcfce7;
    --status-normal-text: #166534;
    --status-watch-bg: #fef9c3;
    --status-watch-text: #854d0e;
    --status-alert-bg: #fee2e2;
    --status-alert-text: #991b1b;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--background-color);
    line-height: 1.5;
    height: 100vh;
    overflow: hidden;
    /* Prevent body scroll, handle in main by default */
}

/* Allow scrolling for public pages */
.public-page {
    overflow-y: auto !important;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--surface-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    font-size: 1.65rem;
    font-weight: 700;
    color: #f05724;
    border-radius: 8px;
}

/* Sidebar logo colors */
.sidebar-header .logo-icon,
.sidebar-header .logo-text {
    color: #f05724;
}

.sidebar-header:hover .logo-icon,
.sidebar-header:hover .logo-text {
    color: var(--primary-color) !important;
}

.sidebar-header:hover {
    /* Slightly stronger blue highlight, similar to active nav item */
    background-color: #dbeafe; /* blue-100 */
    box-shadow: var(--shadow-sm);
}

.nav-links {
    list-style: none;
    flex: 1;
}

.nav-item {
    margin-bottom: var(--spacing-xs);
}

/* Keep the User Management nav item pinned above the sidebar footer */
.nav-item.nav-item-user-management {
    margin-top: auto;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-item a:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

.nav-item.active a {
    background-color: #eff6ff;
    /* light blue 50 */
    color: var(--primary-color);
}

/* Hidden nav modules (Normalize, Distribute, Decision Log, Coverage) - links remain, only display hidden */
.sidebar .nav-item.nav-item-hidden,
.nav-item.nav-item-hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar-footer {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

/* Keep profile circle and name side by side in sidebar */
.sidebar-footer .user-profile-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}
.sidebar-footer .user-profile-avatar-trigger {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.avatar {
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Profile dropdown: click only the circle (S) to see "Profile edit" */
.user-profile-dropdown {
    position: relative;
    width: 100%;
}

/* Circle and name side by side: [S] Suresh / Account */
.user-profile-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.75rem;
}

.user-profile-avatar-trigger {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    line-height: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
.user-profile-avatar-trigger .avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
}
.user-profile-avatar-trigger .avatar.avatar-img,
.user-profile-avatar-trigger .avatar-img-wrap {
    width: 44px;
    height: 44px;
    display: block;
    border-radius: 50%;
    overflow: hidden;
}
.user-profile-avatar-trigger .avatar-img-wrap .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.user-profile-avatar-trigger .avatar.avatar-img {
    object-fit: cover;
}
.user-profile-dropdown .avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.user-profile-avatar-trigger:hover .avatar {
    opacity: 0.9;
}

.user-profile-row .user-info {
    flex: 1;
    min-width: 0;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start;
    justify-content: center;
}
.user-profile-row .user-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
}
.user-profile-row .user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.25;
}

.profile-dropdown-panel {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 0.5rem;
    background: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    overflow: hidden;
    z-index: 1000;
    /* Hidden until circle is clicked */
    display: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
.profile-dropdown-panel.is-visible {
    display: block !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.profile-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
    background: var(--surface-color);
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}
.profile-dropdown-link:hover {
    background: #eff6ff;
}
.profile-dropdown-link + .profile-dropdown-link {
    border-top: 1px solid var(--border-color);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-header {
    height: 64px;
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-xl);
}

.top-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.header-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.status-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-normal {
    background-color: var(--status-normal-bg);
    color: var(--status-normal-text);
}

.status-emergency-watch {
    background-color: var(--status-watch-bg);
    color: var(--status-watch-text);
}

.status-high-alert {
    background-color: var(--status-alert-bg);
    color: var(--status-alert-text);
}

.btn-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-alert:hover {
    background-color: #b91c1c;
}

.btn-alert:active {
    background-color: #991b1b;
}

.btn-alert i {
    font-size: 0.875rem;
}

.sync-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

#page-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.status-indicator-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.last-updated {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.view-container {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-xl);
}

/* Components */
.card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline-danger {
    color: #ef4444;
    border-color: #ef4444;
    background-color: transparent;
}

.btn-outline-danger:hover {
    background-color: #fef2f2;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
}

/* Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-status-normal {
    background-color: var(--status-normal-bg);
    color: var(--status-normal-text);
}

.badge-status-watch {
    background-color: var(--status-watch-bg);
    color: var(--status-watch-text);
}

.badge-status-alert {
    background-color: var(--status-alert-bg);
    color: var(--status-alert-text);
}

.badge-low {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-medium {
    background: #ffedd5;
    color: #c2410c;
}

.badge-high {
    background: #fee2e2;
    color: #b91c1c;
}


/* Dashboard Logic Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: var(--spacing-sm) 0;
}

.stat-value-large {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: var(--spacing-sm) 0;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-sublabel {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background-color: #475569;
    color: white;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 80px;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.activity-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.875rem;
}

.form-control:focus {
    outline: 2px solid var(--primary-color);
    border-color: transparent;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th,
.data-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f1f5f9;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Alignment & wrapping for incident-style tables */
.incidents-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.incidents-table th,
.incidents-table td {
    vertical-align: top;
    word-break: break-word;
    white-space: normal;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: var(--spacing-lg);
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--spacing-lg) - 5px);
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 2px solid white;
}

.timeline-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.timeline-content {
    background: white;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}


.timeline-title {
    font-weight: 600;
}

/* --- Landing Page Styles --- */

/* Landing Nav */
.landing-body {
    background-color: white;
    overflow-y: auto;
    /* Allow scrolling for landing page */
    height: auto;
}

.landing-nav {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md) 0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 2.25rem;
    /* color: var(--primary-color); */
    color: #f05724;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
 

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 5rem 0;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* ================= CAPABILITIES SECTION ================= */

.capabilities-section {
    padding: 5rem 0;
    background: #ffffff;
}

.capabilities-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.capabilities-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.capability-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.capability-card:hover {
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.capability-card.selected {
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.15);
    background: #f8fafc;
}

.capability-card {
    cursor: pointer;
}

.capability-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.capability-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.capability-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.capability-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .capabilities-section .section-header h2 {
        font-size: 2rem;
    }
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Scope Section */
.scope-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.scope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.scope-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    background: #f8fafc;
}

.scope-card.restricted {
    background: #fff1f2;
    /* Light red/pink bg */
    border-color: #fecaca;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.restricted .icon-box {
    color: #ef4444;
    border-color: #fecaca;
}

.scope-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.scope-card ul {
    list-style: none;
}

.scope-card li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.scope-card li i {
    color: var(--primary-color);
}

.scope-card.restricted li i {
    color: #ef4444;
}

/* Pricing Section */
.pricing-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.pricing-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.price .period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-body {
    margin-top: 1.5rem;
}

.payment-info {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-left: 16px;
}

.payment-info i {
    margin-top: 3px;
    /* Align icon visually with text */
    color: #94a3b8;
}

.credit-rule-box {
    background: #eff6ff;
    /* Light blue bg */
    padding: 1rem;
    border-radius: 6px;
    color: #1e3a8a;
    /* Dark blue text */
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid #dbeafe;
    /* Light blue border */
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.credit-rule-box i {
    margin-top: 3px;
    color: #1e3a8a;
}

.btn-full {
    width: 100%;
    display: block;
    text-align: center;
    padding: 1rem;
    /* Choose appropriate padding */
    font-weight: 600;
}

.btn-outline.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    width: 100%;
    justify-content: center;
}

/* QA Section */
.qa-section {
    padding: 4rem 0;
}

.qa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.qa-item h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.qa-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-left: 1.75rem;
    /* Indent to align with text */
}

/* Landing Footer */
.landing-footer {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* --- Three Core Deliverables --- */
.deliverables-section {
    padding: 4rem 0 6rem;
    background: white;
    position: relative;
}

.deliverables-header {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-side-tag {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blue-bar {
    width: 4px;
    height: 40px;
    background-color: #2563eb;
    border-radius: 2px;
}

.tag-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.deliverables-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3a8a;
    /* Darker blue header */
}

.deliverables-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
}

.deliverable-card {
    background: white;
    border-radius: 40px;
    /* Very rounded corners as per image */
    padding: 3rem 1.5rem;
    position: relative;
    text-align: center;
    border: 5px solid #e1e7ef;
    /* Thicker borders requested */
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
 
    /* Fixed width for consistency */
    min-height: 600px;
    /* Tall aspect ratio */
}

/* Specific Border Colors */
.deliverable-card:nth-child(1) {
    border-color: #2563eb;
}

/* Blue */
.deliverable-card:nth-child(2) {
    border-color: #2563eb;
}

/* Blue */
.deliverable-card:nth-child(3) {
    border-color: #f97316;
}

/* Orange */

.deliverable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.15);
}

.card-top-group {
    position: relative;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    /* Space between icon and number */
}

.card-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1;
    position: static;
    /* No longer absolute */
    transform: none;
    z-index: 0;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    /* Circle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    margin-bottom: 0;
    /* Remove bottom margin */
}

.deliverable-card:nth-child(3) .icon-circle {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.icon-blue {
    color: #2563eb;
}

.icon-orange {
    color: #ea580c;
}

.deliverable-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1.3;
}

.deliverable-label {
    display: inline-block;
    font-size: 0.9rem;
    /* Increased size */
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: auto;
    /* Push content down */
    text-transform: uppercase;
    color: #f97316;
}

.deliverable-card p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 3rem;
    /* Space from top elements */
    font-weight: 600;
    text-align: left;
    /* Align text like in image if needed, usually center for cards but image looks leftish aligned? keeping center for now */
}



/* --- Alert Levels Section --- */
.alerts-section {
    padding: 2rem 0 6rem;
    /* Top padding small since it follows scope */
    background: #ffffff;
    /* White bg for this section based on image? Or is it light gray? keeping generic clean */
}

.alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.alert-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 4px solid transparent;
    /* Thicker borders */
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

/* --- Across Shifts Section --- */
.shifts-section {
    padding: 6rem 0;
    background: white;
}

.process-flow {
    max-width: 900px;
    margin: 0 auto 4rem;
    position: relative;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    background: white;
    /* Hide line behind */
    width: 200px;
}

.step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
}

.circle-blue {
    background: #0ea5e9;
    /* Light blue like image 01/02 */
    background: radial-gradient(circle at 30% 30%, #3b82f6, #1d4ed8);
}

.circle-orange {
    background: radial-gradient(circle at 30% 30%, #f97316, #c2410c);
}

.step-connector {
    flex-grow: 1;
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #f97316);
    margin-top: 40px;
    /* Center with circle */
    transform: translateY(-50%);
    position: absolute;
    left: 100px;
    /* Half of first item width */
    right: 100px;
    /* Half of last item width */
    z-index: 1;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.step-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.subtitle-orange {
    color: #f97316;
}

.boxes-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    /* Match steps spacing roughly */
    align-items: stretch;
}

.desc-box {
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    background: white;
    min-height: 200px;
}

.box-blue {
    border: 3px solid #3b82f6;
    color: #334155;
    background: #f0f9ff;
    /* Slight fill */
}

.box-orange {
    border: 3px solid #f97316;
    color: #334155;
    background: #fff7ed;
    /* Slight fill */
}

.support-note {
    background: #fef08a;
    /* Yellow-200 */
    border: 1px solid #fde047;
    border-radius: 999px;
    /* Pill shape */
    padding: 1rem 2rem;
    text-align: center;
    color: #854d0e;
    font-weight: 600;
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}


.level-a {
    border-color: #4ade80;
}

/* Green */
.level-b {
    border-color: #facc15;
}

/* Yellow */
.level-c {
    border-color: #f87171;
}

/* Red */

.alert-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.alert-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.level-a .alert-icon {
    background: #4ade80;
}

.level-b .alert-icon {
    background: #facc15;
}

.level-c .alert-icon {
    background: #f87171;
}

.alert-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.alert-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.frequency-box {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.freq-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.freq-value {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.8rem;
}
.alert-points {
    margin: 10px 0 0 20px;
    padding: 0;
    list-style: none; /* remove default bullets */
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
}
.alert-points li {
    position: relative;
    margin-bottom: 6px;
}
 
/* ✅ Check icon */
.alert-points li::before {
    content: "\f00c"; /* Font Awesome check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: -15px;
    color: #22c55e; /* green check */
    font-size: 12px;
}

.alert-points li {
    margin-bottom: 0.2rem;
}

.alert-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    flex-grow: 1;
}

.alert-desc::before {
    /* Optional: dashed line separator */
    content: '';
    display: block;
    border-top: 1px dashed #e2e8f0;
    margin-bottom: 1rem;
}

.status-bar {
    padding: 0.75rem;
    text-align: center;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
}

.bar-green {
    background: #dcfce7;
    color: #166534;
}

.bar-yellow {
    background: #fef9c3;
    color: #854d0e;
}

.bar-red {
    background: #fee2e2;
    color: #991b1b;
}

.eyebrow {
    font-family: 'Inter', sans-serif;
}

/* --- Across Shifts Section --- */
.shifts-section {
    padding: 6rem 0;
    background: white;
}

.process-flow {
    max-width: 900px;
    margin: 0 auto 4rem;
    position: relative;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    background: white;
    /* Hide line behind */
    width: 200px;
}

.step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
}

.circle-blue {
    background: #0ea5e9;
    /* Light blue like image 01/02 */
    background: radial-gradient(circle at 30% 30%, #3b82f6, #1d4ed8);
}

.circle-orange {
    background: radial-gradient(circle at 30% 30%, #f97316, #c2410c);
}

.step-connector {
    flex-grow: 1;
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #f97316);
    margin-top: 40px;
    /* Center with circle */
    transform: translateY(-50%);
    position: absolute;
    left: 100px;
    /* Half of first item width */
    right: 100px;
    /* Half of last item width */
    z-index: 1;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.step-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.subtitle-orange {
    color: #f97316;
}

.boxes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    /* Match steps spacing roughly */
    align-items: stretch;
}

.desc-box {
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    background: white;
    min-height: 200px;
}

.box-blue {
    border: 3px solid #3b82f6;
    color: #334155;
    background: #f0f9ff;
    /* Slight fill */
}

.box-orange {
    border: 3px solid #f97316;
    color: #334155;
    background: #fff7ed;
    /* Slight fill */
}

.support-note {
    background: #fef08a;
    /* Yellow-200 */
    border: 1px solid #fde047;
    border-radius: 999px;
    /* Pill shape */
    padding: 1rem 2rem;
    text-align: center;
    color: #854d0e;
    font-weight: 600;
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* ================= TEAM SECTION ================= */

.team-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.team-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.team-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.team-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.team-avatar.blue {
    background: var(--primary-color);
}

.team-avatar.orange {
    background: #f97316;
}

.team-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.team-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.team-row i {
    color: var(--primary-color);
    width: 18px;
}

.team-note {
    margin-top: 2rem;
    background: #fef9c3;
    border: 1px solid #fde047;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #854d0e;
}

/* ================= COVERAGE PAGE STYLES ================= */

.scope-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scope-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.scope-check {
    color: #22c55e;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.backup-comms-content {
    text-align: center;
    padding: 1rem 0;
}

.comms-icon {
    margin-bottom: 1.5rem;
}

.comms-icon i {
    font-size: 4rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

.primary-link-status {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.link-label {
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.link-status {
    font-weight: 600;
}

.link-status.online {
    color: #22c55e;
}

.emergency-sms-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.sms-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.sms-input-group {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.sms-input-group .form-control {
    flex: 1;
}

.card-body {
    padding: 1.5rem;
}

/* ================= TABLE & BADGE STYLES ================= */

.badge-synthesized {
    background-color: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-low {
    background-color: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-medium {
    background-color: #fed7aa;
    color: #9a3412;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-high {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-closed {
    background-color: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-open {
    background-color: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* ================= DISTRIBUTE PAGE STYLES ================= */

.packet-info {
    background: #f8fafc;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.packet-number {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.packet-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.packet-section {
    margin-bottom: 1.5rem;
}

.section-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.section-list {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.section-list li {
    margin-bottom: 0.5rem;
}

.resilience-contact-footer {
    text-align: center;
    padding: 20px 20px;
}

.resilience-contact-footer h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.resilience-contact-footer p {
    margin: 4px 0;
    color: #555;
}

.resilience-contact-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.resilience-contact-footer a:hover {
    text-decoration: underline;
}

.footer-copy {
    margin-top: 25px;
    font-size: 13px;
    color: #888;
}
.timeline-box {
    background: rgba(0, 123, 255, 0.05);
    border-left: 4px solid #007bff;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}