/* =========================================
   DATA CENTER COMMAND CENTER
   Global Styles
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #f4f7fb;
    --white: #ffffff;
    --sidebar: #111827;
    --sidebar-light: #1f2937;
    --text: #172033;
    --muted: #718096;
    --border: #e5eaf1;
    --primary: #2563eb;
    --primary-light: #e8f0ff;
    --success: #16a34a;
    --success-light: #eaf7ee;
    --warning: #d97706;
    --warning-light: #fff6e6;
    --danger: #dc2626;
    --danger-light: #fcecec;
    --info: #0891b2;
    --info-light: #e7f8fb;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
}


/* =========================================
   SIDEBAR
   ========================================= */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 245px;
    height: 100vh;
    background: var(--sidebar);
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 22px 8px;
    text-align: center;
}

.logo-text {
    width: 100%;
    min-width: 0;
}

.logo h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    letter-spacing: -0.4px;
}

.logo span {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.4;
    color: #9ca3af;
}

.navigation {
    padding: 22px 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #aeb7c5;
    padding: 13px 14px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
}

.nav-link span:first-child {
    width: 20px;
    text-align: center;
}

.nav-link:hover {
    background: var(--sidebar-light);
    color: white;
}

.nav-link.active {
    background: var(--primary);
    color: white;
}

.alert-count {
    margin-left: auto;
    background: var(--danger);
    color: white;
    border-radius: 20px;
    padding: 2px 7px;
    font-size: 10px;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid #263143;
}


/* =========================================
   MAIN CONTENT
   ========================================= */

.main-content {
    margin-left: 245px;
    min-height: 100vh;
}

.topbar {
    height: 90px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
}

.breadcrumb {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 5px;
}

.topbar h1 {
    font-size: 22px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 24px;
}

.system-indicator {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.notification {
    position: relative;
    font-size: 19px;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -7px;
    background: var(--danger);
    color: white;
    width: 16px;
    height: 16px;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 9px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.user-profile strong {
    display: block;
    font-size: 12px;
}

.user-profile small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
}


/* =========================================
   DASHBOARD
   ========================================= */

.dashboard-content {
    padding: 30px 36px 50px;
}

.welcome-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.welcome-section h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.welcome-section p {
    color: var(--muted);
    font-size: 13px;
}

.last-updated {
    color: var(--muted);
    font-size: 11px;
}


/* =========================================
   STATUS BANNER
   ========================================= */

.status-banner {
    background: var(--success-light);
    border: 1px solid #c9ead4;
    border-radius: 10px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.status-banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.status-banner strong {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
}

.status-banner p {
    color: #5d7565;
    font-size: 11px;
}

.banner-link {
    margin-left: auto;
    color: var(--success);
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
}


/* =========================================
   METRIC CARDS
   ========================================= */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.metric-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 19px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #c9d7ef;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}

.metric-icon {
    color: var(--primary);
    font-size: 18px;
}

.metric-value {
    font-size: 28px;
    font-weight: bold;
    margin: 13px 0 10px;
}

.metric-footer {
    display: flex;
    gap: 5px;
    color: var(--muted);
    font-size: 10px;
}

.positive {
    color: var(--success);
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: #edf1f5;
    border-radius: 10px;
    overflow: hidden;
    margin: 14px 0 9px;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--primary);
}

.progress-fill.cpu {
    width: 64%;
}

.progress-fill.memory {
    width: 71%;
}

.progress-fill.storage {
    width: 68%;
}


/* =========================================
   DASHBOARD GRID
   ========================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.card-header p {
    color: var(--muted);
    font-size: 10px;
}

.card-header select {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 10px;
    color: var(--muted);
    font-size: 10px;
    background: white;
}


/* =========================================
   PERFORMANCE CHART
   ========================================= */

.chart-container {
    display: flex;
    height: 215px;
    gap: 12px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #9aa4b2;
    font-size: 9px;
    padding-bottom: 5px;
}

.chart {
    flex: 1;
    position: relative;
    border-left: 1px solid #dfe5ed;
    border-bottom: 1px solid #dfe5ed;
    overflow: hidden;
}

.grid-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed #e7ebf0;
}

.line-1 {
    top: 0;
}

.line-2 {
    top: 25%;
}

.line-3 {
    top: 50%;
}

.line-4 {
    top: 75%;
}


.chart-line {
    position: absolute;
    inset: 0;
    height: 100%;
    background: none;
    opacity: 1;
}

.chart-line::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary);
    clip-path: polygon(
        10% 69%,
        17.5% 62%,
        25% 54%,
        32.5% 58%,
        40% 60%,
        47.5% 43%,
        55% 35%,
        62.5% 41%,
        70% 46%,
        76.5% 34%,
        83% 25%,
        91% 30%,
        98% 34%,
        98% 36%,
        91% 32%,
        83% 27%,
        76.5% 36%,
        70% 48%,
        62.5% 43%,
        55% 37%,
        47.5% 45%,
        40% 62%,
        32.5% 60%,
        25% 56%,
        17.5% 64%,
        10% 71%
    );
}


.chart-point {
    position: absolute;
    width: 7px;
    height: 7px;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 1px var(--primary);
    border-radius: 50%;
}

.point-1 {
    left: 10%;
    top: 69%;
}

.point-2 {
    left: 25%;
    top: 54%;
}

.point-3 {
    left: 40%;
    top: 60%;
}

.point-4 {
    left: 55%;
    top: 35%;
}

.point-5 {
    left: 70%;
    top: 46%;
}

.point-6 {
    left: 83%;
    top: 25%;
}

.point-7 {
    right: 2%;
    top: 34%;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-left: 35px;
    color: #9aa4b2;
    font-size: 9px;
}


/* =========================================
   ALERTS
   ========================================= */

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 10px;
    font-weight: bold;
}

.alert-list {
    display: flex;
    flex-direction: column;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f4;
    text-decoration: none;
    color: inherit;
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-symbol {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.alert-item.critical .alert-symbol {
    background: var(--danger-light);
    color: var(--danger);
}

.alert-item.warning .alert-symbol {
    background: var(--warning-light);
    color: var(--warning);
}

.alert-item.information .alert-symbol {
    background: var(--info-light);
    color: var(--info);
}

.alert-info {
    flex: 1;
}

.alert-info strong {
    display: block;
    font-size: 11px;
    margin-bottom: 3px;
}

.alert-info span,
.alert-info small {
    display: block;
    color: var(--muted);
    font-size: 9px;
}

.alert-info small {
    margin-top: 2px;
}

.severity {
    font-size: 9px;
    font-weight: bold;
}

.critical-text {
    color: var(--danger);
}

.warning-text {
    color: var(--warning);
}

.info-text {
    color: var(--info);
}


/* =========================================
   INFRASTRUCTURE HEALTH
   ========================================= */

.infrastructure-summary {
    margin-bottom: 20px;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.health-title {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 9px;
}

.health-title strong {
    color: var(--success);
}

.health-progress {
    width: 100%;
    height: 6px;
    background: #edf1f5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 7px;
}

.health-progress div {
    height: 100%;
    background: var(--success);
    border-radius: 10px;
}

.health-item small {
    color: var(--muted);
    font-size: 9px;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1100px) {

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .health-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 800px) {

    .sidebar {
        width: 70px;
    }

    .logo {
        justify-content: center;
        padding: 20px 10px;
    }

    .logo > div:last-child {
        display: none;
    }

    .nav-link {
        justify-content: center;
    }

    .nav-link span:not(:first-child) {
        display: none;
    }

    .main-content {
        margin-left: 70px;
    }

    .user-profile {
        display: none;
    }

    .system-indicator {
        display: none;
    }

    .dashboard-content {
        padding: 20px;
    }

}

@media (max-width: 600px) {

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .health-grid {
        grid-template-columns: 1fr;
    }

    .welcome-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

}
/* =========================================
   AUTHENTICATION PAGES
   ========================================= */

.auth-page {
    min-height: 100vh;
    background: #f4f7fb;
}

.auth-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}


/* Left branding area */

.auth-brand {
    background: #111827;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.auth-brand-content {
    width: 100%;
    max-width: 480px;
}

.auth-logo {
    border-bottom: none;
    padding: 0;
    margin-bottom: 90px;
}

.auth-message {
    max-width: 420px;
}

.auth-icon {
    width: 60px;
    height: 60px;
    background: #2563eb;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 25px;
}

.auth-message h1 {
    font-size: 38px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.auth-message p {
    color: #aeb7c5;
    line-height: 1.8;
    font-size: 14px;
}


/* Right form area */

.auth-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: white;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-heading {
    margin-bottom: 35px;
}

.auth-label {
    color: #2563eb;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.auth-heading h1 {
    font-size: 30px;
    margin-bottom: 8px;
}

.auth-heading > p:last-child {
    color: #718096;
    font-size: 13px;
}


/* Form */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dce2ea;
    border-radius: 7px;
    font-size: 13px;
    outline: none;
    transition: 0.2s;
    background: #fff;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.password-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.password-label a {
    color: #2563eb;
    text-decoration: none;
    font-size: 10px;
    font-weight: normal;
}

.remember-row {
    margin: -5px 0 22px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #718096;
    font-size: 11px;
}

.checkbox-label input {
    accent-color: #2563eb;
}


/* Button */

.auth-button {
    width: 100%;
    border: none;
    background: #2563eb;
    color: white;
    padding: 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.auth-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}


/* Form message */

.form-message {
    min-height: 20px;
    text-align: center;
    font-size: 11px;
    margin-top: 12px;
}


/* Create account */

.create-account {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #edf0f4;
}

.create-account p {
    color: #718096;
    font-size: 11px;
}

.create-account a {
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
}


/* Security message */

.security-note {
    display: flex;
    gap: 8px;
    margin-top: 35px;
    padding: 12px;
    background: #f7f9fc;
    border-radius: 7px;
}

.security-note span {
    font-size: 12px;
}

.security-note p {
    color: #718096;
    font-size: 9px;
    line-height: 1.5;
}


/* Authentication responsive */

@media (max-width: 800px) {

    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-form-section {
        min-height: 100vh;
    }

}
/* =========================================
   INFRASTRUCTURE PAGE
   ========================================= */

.infrastructure-card {
    margin-bottom: 20px;
}

.inventory-controls {
    display: grid;
    grid-template-columns: 1fr 150px 150px;
    gap: 12px;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 0 12px;
    background: white;
}

.search-box span {
    font-size: 13px;
    color: var(--muted);
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    padding: 11px 0;
    font-size: 11px;
}

.inventory-controls select {
    border: 1px solid var(--border);
    border-radius: 7px;
    background: white;
    padding: 0 10px;
    color: var(--muted);
    font-size: 11px;
    outline: none;
}

.primary-small-button {
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    padding: 9px 13px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.primary-small-button:hover {
    background: #1d4ed8;
}

.secondary-button {
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    border-radius: 6px;
    padding: 9px 13px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
}


/* Inventory table */

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f7f9fc;
}

th {
    text-align: left;
    padding: 12px;
    color: var(--muted);
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 14px 12px;
    border-top: 1px solid #edf0f4;
    font-size: 10px;
    color: #4a5568;
}

.device-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.device-name strong {
    display: block;
    color: var(--text);
    font-size: 11px;
    margin-bottom: 3px;
}

.device-name small {
    display: block;
    color: var(--muted);
    font-size: 9px;
}

.device-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
}

.server-icon {
    background: #eaf0ff;
    color: var(--primary);
}

.network-icon {
    background: #e9f7f2;
    color: var(--success);
}

.storage-icon {
    background: #fff4e5;
    color: var(--warning);
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: bold;
}

.status-badge.healthy {
    background: var(--success-light);
    color: var(--success);
}

.status-badge.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.status-badge.critical {
    background: var(--danger-light);
    color: var(--danger);
}

.view-button {
    background: white;
    border: 1px solid var(--border);
    color: var(--primary);
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 9px;
    font-weight: bold;
    cursor: pointer;
}

.view-button:hover {
    background: var(--primary-light);
}


/* =========================================
   RACKS
   ========================================= */

.rack-section {
    margin-bottom: 20px;
}

.rack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.rack {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    background: #fafbfd;
}

.rack-header {
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 10px;
}

.rack-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #202936;
    padding: 7px;
    border-radius: 5px;
}

.rack-unit {
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 7px;
    font-weight: bold;
}

.rack-unit.occupied {
    background: #3b82f6;
    color: white;
}

.rack-unit.warning-unit {
    background: #d97706;
    color: white;
}

.rack-unit.empty {
    background: #374151;
    color: #8b95a5;
}

.rack > small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    margin-top: 8px;
}


/* =========================================
   DEVICE MODAL
   ========================================= */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.device-modal {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 15px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: var(--muted);
    cursor: pointer;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.device-modal-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.modal-header p {
    color: var(--primary);
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.modal-header h2 {
    font-size: 20px;
}

.modal-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    padding: 12px;
    background: var(--success-light);
    border-radius: 7px;
    font-size: 10px;
}

.modal-status .status-dot {
    background: var(--success);
}

.modal-status span:last-child {
    margin-left: auto;
    color: var(--success);
    font-weight: bold;
}

.device-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.device-details-grid div {
    padding: 12px;
    background: #f7f9fc;
    border-radius: 6px;
}

.device-details-grid span {
    display: block;
    color: var(--muted);
    font-size: 9px;
    margin-bottom: 5px;
}

.device-details-grid strong {
    font-size: 10px;
}

.modal-placeholder {
    padding: 15px;
    background: #f7f9fc;
    border-radius: 7px;
    margin-bottom: 20px;
}

.modal-placeholder strong {
    font-size: 10px;
}

.modal-placeholder p {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.6;
    margin-top: 6px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


/* Infrastructure responsive */

@media (max-width: 900px) {

    .rack-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .inventory-controls {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .rack-grid {
        grid-template-columns: 1fr;
    }

    .device-details-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   ALERT MANAGEMENT PAGE
   ========================================= */

.alert-controls {
    display: grid;
    grid-template-columns: 1fr 190px 190px;
    gap: 12px;
    margin-bottom: 18px;
}

.alert-controls input,
.alert-controls select,
#incidentNotes {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: white;
    font: inherit;
    font-size: 11px;
}

.alert-list {
    display: flex;
    flex-direction: column;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 4px;
    border-top: 1px solid var(--border);
}

.alert-symbol {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-weight: bold;
}

.critical-symbol {
    background: var(--danger-light);
    color: var(--danger);
}

.warning-symbol {
    background: var(--warning-light);
    color: var(--warning);
}

.info-symbol {
    background: var(--primary-light);
    color: var(--primary);
}

.alert-main {
    flex: 1;
    min-width: 0;
}

.alert-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.alert-title-row h4 {
    font-size: 12px;
}

.alert-main p {
    color: var(--muted);
    font-size: 10px;
    margin-top: 5px;
}

.alert-main small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    margin-top: 5px;
}

.status-badge.info {
    color: var(--primary);
    background: var(--primary-light);
}

.no-alerts {
    padding: 25px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.workflow-step {
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafbfd;
}

.workflow-step > span {
    display: block;
    color: var(--primary);
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 13px;
}

.workflow-step strong {
    font-size: 12px;
}

.workflow-step p {
    margin-top: 8px;
    font-size: 10px;
    color: var(--muted);
    line-height: 1.6;
}

.alert-modal > h2 {
    font-size: 21px;
    margin: 8px 0 20px;
}

.alert-detail-line {
    display: flex;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
}

.alert-detail-line strong {
    min-width: 75px;
}

.alert-modal > label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: bold;
}

#incidentNotes {
    resize: vertical;
}

@media (max-width: 900px) {
    .alert-controls {
        grid-template-columns: 1fr;
    }

    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .alert-item {
        flex-wrap: wrap;
    }

    .alert-item .view-button {
        margin-left: 50px;
    }
}

/* Compact Prospera Financial branding */
.logo {
    gap: 8px;
    min-width: 0;
}

.logo-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 11px;
    flex-shrink: 0;
}

.logo h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    letter-spacing: -0.4px;
}

.logo span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #9ca3af;
}
