/* =========================================

   GLOBAL

========================================= */



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    font-family: Arial, sans-serif;

}



body {

    background: #f4f6f9;

    display: flex;

    color: #333;

}





/* =========================================

   SIDEBAR

========================================= */



.sidebar {

    width: 240px;

    height: 100vh;

    background: #1f2937;

    color: white;

    padding: 25px 20px;

    position: fixed;

}



.sidebar h2 {

    margin-bottom: 35px;

}



.sidebar nav {

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.sidebar a {

    color: #d1d5db;

    text-decoration: none;

    padding: 12px;

    border-radius: 6px;

}



.sidebar a:hover,

.sidebar a.active {

    background: #374151;

    color: white;

}





/* =========================================

   MAIN CONTENT

========================================= */



.main-content {

    margin-left: 240px;

    width: calc(100% - 240px);

    padding: 30px;

}





/* =========================================

   HEADER

========================================= */



header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 30px;

}



header p {

    color: #777;

    margin-top: 5px;

}



.system-status {

    background: white;

    padding: 10px 18px;

    border-radius: 8px;

    color: green;

}





/* =========================================

   SUMMARY CARDS

========================================= */



.summary {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 30px;

}



.card {

    background: white;

    padding: 22px;

    border-radius: 10px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

}



.card h3 {

    color: #777;

    font-size: 15px;

    margin-bottom: 10px;

}



.card p {

    font-size: 28px;

    font-weight: bold;

}





/* =========================================

   SERVICE SECTION

========================================= */



.service-section,

.performance {

    background: white;

    padding: 25px;

    border-radius: 10px;

    margin-bottom: 30px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

}



.service-section h2,

.performance h2 {

    margin-bottom: 20px;

}





/* =========================================

   TABLE

========================================= */



table {

    width: 100%;

    border-collapse: collapse;

}



th,

td {

    text-align: left;

    padding: 15px;

    border-bottom: 1px solid #eee;

}



th {

    color: #666;

}





/* =========================================

   DASHBOARD SERVICE STATUS COLORS

========================================= */



.status-online {

    color: #16a34a !important;

    font-weight: bold;

}



.status-warning {

    color: #f59e0b !important;

    font-weight: bold;

}



.status-down {

    color: #dc2626 !important;

    font-weight: bold;

}





/* Keep old classes supported */



.online {

    color: #16a34a !important;

    font-weight: bold;

}



.warning {

    color: #f59e0b !important;

    font-weight: bold;

}



.down {

    color: #dc2626 !important;

    font-weight: bold;

}





/* =========================================

   RESPONSE TIME CHART

========================================= */



.chart-container {

    position: relative;

    width: 100%;

    height: 350px;

    margin-top: 20px;

}



#responseTimeChart {

    width: 100% !important;

    height: 100% !important;

}





/* =========================================

   OLD CHART PLACEHOLDER

========================================= */



.chart-placeholder {

    height: 220px;

    background: #f8f9fa;

    border: 2px dashed #ddd;

    border-radius: 8px;



    display: flex;

    align-items: center;

    justify-content: center;



    color: #888;

}





/* =========================================

   ALERT PAGE

========================================= */



.alert-critical {

    color: #dc2626 !important;

    font-weight: bold;

}



.alert-warning {

    color: #f59e0b !important;

    font-weight: bold;

}





/* New alert classes */



.severity-critical {

    color: #dc2626 !important;

    font-weight: bold;

}



.severity-warning {

    color: #f59e0b !important;

    font-weight: bold;

}





/* =========================================

   ALERT TABLE

========================================= */



.alert-table {

    width: 100%;

    table-layout: fixed;

}



.alert-table th,

.alert-table td {

    vertical-align: middle;

    word-wrap: break-word;

}





/* =========================================

   ALERT TABLE COLUMN WIDTHS

========================================= */



/* Time */

.alert-table th:nth-child(1),

.alert-table td:nth-child(1) {

    width: 13%;

}



/* Service */

.alert-table th:nth-child(2),

.alert-table td:nth-child(2) {

    width: 18%;

}



/* Alert Type */

.alert-table th:nth-child(3),

.alert-table td:nth-child(3) {

    width: 13%;

}



/* Severity */

.alert-table th:nth-child(4),

.alert-table td:nth-child(4) {

    width: 10%;

    white-space: nowrap;

}



/* Response Time */

.alert-table th:nth-child(5),

.alert-table td:nth-child(5) {

    width: 12%;

    white-space: nowrap;

}



/* Message */

.alert-table th:nth-child(6),

.alert-table td:nth-child(6) {

    width: 34%;

}





/* Prevent severity from breaking into two lines */

.severity-critical,

.severity-warning {

    display: inline-block;

    white-space: nowrap;

}



/* =========================================================

   INCIDENT HISTORY PAGE

========================================================= */



/* Incident table */

.incident-table {

    width: 100%;

    table-layout: fixed;

    border-collapse: collapse;

}





/* Table cells */

.incident-table th,

.incident-table td {

    vertical-align: middle;

    word-wrap: break-word;

}





/* =========================================================

   INCIDENT STATUS

========================================================= */



/* Active incident */

.incident-active {

    color: #dc2626;

    font-weight: bold;

    white-space: nowrap;

}





/* Resolved incident */

.incident-resolved {

    color: #16a34a;

    font-weight: bold;

    white-space: nowrap;

}





/* =========================================================

   INCIDENT TABLE COLUMN WIDTH

========================================================= */



/* Service */

.incident-table th:nth-child(1),

.incident-table td:nth-child(1) {

    width: 13%;

}





/* Incident Type */

.incident-table th:nth-child(2),

.incident-table td:nth-child(2) {

    width: 12%;

}





/* Severity */

.incident-table th:nth-child(3),

.incident-table td:nth-child(3) {

    width: 9%;

}





/* Started */

.incident-table th:nth-child(4),

.incident-table td:nth-child(4) {

    width: 12%;

}





/* Resolved */

.incident-table th:nth-child(5),

.incident-table td:nth-child(5) {

    width: 12%;

}





/* Duration */

.incident-table th:nth-child(6),

.incident-table td:nth-child(6) {

    width: 8%;

}





/* Status */

.incident-table th:nth-child(7),

.incident-table td:nth-child(7) {

    width: 8%;

}





/* Message */

.incident-table th:nth-child(8),

.incident-table td:nth-child(8) {

    width: 26%;

}





/* Keep severity text on one line */

.incident-table .severity-critical,

.incident-table .severity-warning {

    white-space: nowrap;

}





/* =========================================================

   SMALL SCREEN SUPPORT

========================================================= */



@media (max-width: 1200px) {



    .service-section {

        overflow-x: auto;

    }



    .incident-table {

        min-width: 1100px;

    }

}



/* =========================================================

   SERVICES PAGE

========================================================= */



.services-table {

    width: 100%;

    table-layout: fixed;

    border-collapse: collapse;

}



.services-table th,

.services-table td {

    vertical-align: middle;

    word-wrap: break-word;

}



/* ID */

.services-table th:nth-child(1),

.services-table td:nth-child(1) {

    width: 5%;

}



/* Service */

.services-table th:nth-child(2),

.services-table td:nth-child(2) {

    width: 20%;

}



/* Endpoint */

.services-table th:nth-child(3),

.services-table td:nth-child(3) {

    width: 30%;

}



/* Status */

.services-table th:nth-child(4),

.services-table td:nth-child(4) {

    width: 13%;

}



/* Response Time */

.services-table th:nth-child(5),

.services-table td:nth-child(5) {

    width: 17%;

}



/* Last Checked */

.services-table th:nth-child(6),

.services-table td:nth-child(6) {

    width: 15%;

}



.services-table .status-online,

.services-table .status-warning,

.services-table .status-down {

    white-space: nowrap;

}



/* =========================================================

   DEMO SIMULATION CONTROLS

========================================================= */



.simulation-section {

    margin-top: 30px;

    margin-bottom: 40px;

}



.simulation-description {

    margin-top: 5px;

    margin-bottom: 25px;

    color: #6b7280;

}





/* =========================================================

   SIMULATION TABLE

========================================================= */



.simulation-table {

    width: 100%;

    border-collapse: collapse;

}



.simulation-table th,

.simulation-table td {

    padding: 16px;

    text-align: left;

    vertical-align: middle;

    border-bottom: 1px solid #e5e7eb;

}



.simulation-table th:nth-child(1) {

    width: 30%;

}



.simulation-table th:nth-child(2) {

    width: 20%;

}



.simulation-table th:nth-child(3) {

    width: 50%;

}





/* =========================================================

   SIMULATION MODE STATUS

========================================================= */



.simulation-normal {

    color: #16a34a;

    font-weight: bold;

    white-space: nowrap;

}



.simulation-slow {

    color: #f59e0b;

    font-weight: bold;

    white-space: nowrap;

}



.simulation-down {

    color: #dc2626;

    font-weight: bold;

    white-space: nowrap;

}





/* =========================================================

   SIMULATION BUTTONS

========================================================= */



.simulation-controls {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

}



.simulation-button {

    border: none;

    border-radius: 6px;

    padding: 9px 15px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;

}



.simulation-button:hover {

    opacity: 0.8;

}





/* NORMAL */



.normal-button {

    background-color: #dcfce7;

    color: #15803d;

}





/* SLOW */



.slow-button {

    background-color: #fef3c7;

    color: #b45309;

}





/* DOWN */



.down-button {

    background-color: #fee2e2;

    color: #b91c1c;

}



/* =========================================================

   REPORTS PAGE

========================================================= */



.report-summary {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    margin-bottom: 30px;

}





/* =========================================================

   REPORT STATUS SUMMARY

========================================================= */



.report-status-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    margin-top: 20px;

}





.report-status-box {

    background-color: #f8fafc;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    padding: 20px;

}





.report-status-box h3 {

    margin-top: 0;

    margin-bottom: 10px;

    font-size: 15px;

    color: #64748b;

}





.report-status-box p {

    margin: 0;

    font-size: 26px;

    font-weight: bold;

}





/* =========================================================

   SERVICE PERFORMANCE REPORT

========================================================= */



.report-section {

    margin-top: 30px;

    margin-bottom: 40px;

}





.report-table {

    width: 100%;

    table-layout: fixed;

    border-collapse: collapse;

}





.report-table th,

.report-table td {

    vertical-align: middle;

    word-wrap: break-word;

}





/* Service */

.report-table th:nth-child(1),

.report-table td:nth-child(1) {

    width: 22%;

}





/* Total Checks */

.report-table th:nth-child(2),

.report-table td:nth-child(2) {

    width: 12%;

}





/* Average Response */

.report-table th:nth-child(3),

.report-table td:nth-child(3) {

    width: 16%;

}





/* Online */

.report-table th:nth-child(4),

.report-table td:nth-child(4) {

    width: 10%;

}





/* Warning */

.report-table th:nth-child(5),

.report-table td:nth-child(5) {

    width: 10%;

}





/* Down */

.report-table th:nth-child(6),

.report-table td:nth-child(6) {

    width: 10%;

}





/* Availability */

.report-table th:nth-child(7),

.report-table td:nth-child(7) {

    width: 20%;

}





/* =========================================================

   AVAILABILITY COLORS

========================================================= */



.availability-good {

    color: #16a34a;

    font-weight: bold;

    white-space: nowrap;

}





.availability-warning {

    color: #f59e0b;

    font-weight: bold;

    white-space: nowrap;

}





.availability-poor {

    color: #dc2626;

    font-weight: bold;

    white-space: nowrap;

}





/* =========================================================

   RESPONSIVE REPORT PAGE

========================================================= */



@media (max-width: 1100px) {



    .report-summary {

        grid-template-columns: repeat(2, 1fr);

    }



    .report-table {

        min-width: 900px;

    }



}





@media (max-width: 700px) {



    .report-summary {

        grid-template-columns: 1fr;

    }



    .report-status-grid {

        grid-template-columns: 1fr;

    }



}



/* =========================================================

   REPORT CHARTS

========================================================= */



.report-charts-section {

    background-color: white;

    border-radius: 10px;

    padding: 28px;

    margin-top: 30px;

    margin-bottom: 30px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);

}





.report-charts-section h2 {

    margin-top: 0;

    margin-bottom: 25px;

}





.report-charts-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;

}





.report-chart-card {

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    padding: 20px;

    background-color: #ffffff;

}





.report-chart-card h3 {

    margin-top: 0;

    margin-bottom: 5px;

}





.chart-description {

    color: #64748b;

    font-size: 14px;

    margin-top: 0;

    margin-bottom: 20px;

}





.report-chart-container {

    position: relative;

    width: 100%;

    height: 330px;

}





@media (max-width: 1000px) {



    .report-charts-grid {

        grid-template-columns: 1fr;

    }



}



/* =========================================================

   SETTINGS PAGE

========================================================= */



.settings-section {

    background-color: #ffffff;

    border-radius: 10px;

    padding: 28px;

    margin-bottom: 30px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);

}





.settings-header {

    margin-bottom: 25px;

}





.settings-header h2 {

    margin-top: 0;

    margin-bottom: 6px;

}





.settings-header p {

    margin: 0;

    color: #64748b;

}





/* =========================================================

   SETTINGS FORM

========================================================= */



.settings-form {

    width: 100%;

}





.setting-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 24px 0;

    border-bottom: 1px solid #e5e7eb;

}





.setting-information {

    flex: 1;

}





.setting-information h3 {

    margin-top: 0;

    margin-bottom: 6px;

    font-size: 17px;

}





.setting-information p {

    margin: 0;

    color: #64748b;

    font-size: 14px;

    line-height: 1.5;

}





.setting-input {

    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 210px;

}





.setting-input input {

    width: 110px;

    padding: 10px 12px;

    border: 1px solid #cbd5e1;

    border-radius: 6px;

    font-size: 15px;

    outline: none;

}





.setting-input input:focus {

    border-color: #64748b;

}





.setting-input span {

    color: #64748b;

    font-size: 14px;

}





/* =========================================================

   SAVE BUTTON

========================================================= */



.settings-actions {

    display: flex;

    justify-content: flex-end;

    padding-top: 25px;

}





.save-settings-button {

    background-color: #1e293b;

    color: #ffffff;

    border: none;

    border-radius: 6px;

    padding: 11px 22px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

}





.save-settings-button:hover {

    opacity: 0.9;

}





/* =========================================================

   SETTINGS MESSAGE

========================================================= */



.settings-message {

    padding: 14px 18px;

    border-radius: 8px;

    margin-bottom: 20px;

    font-weight: 500;

}





.settings-success {

    background-color: #dcfce7;

    color: #166534;

    border: 1px solid #bbf7d0;

}





.settings-error {

    background-color: #fee2e2;

    color: #991b1b;

    border: 1px solid #fecaca;

}





/* =========================================================

   CURRENT CONFIGURATION

========================================================= */



.configuration-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

}





.configuration-card {

    background-color: #f8fafc;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    padding: 20px;

}





.configuration-label {

    display: block;

    color: #64748b;

    font-size: 14px;

    margin-bottom: 8px;

}





.configuration-card strong {

    font-size: 20px;

}





/* =========================================================

   SYSTEM INFORMATION

========================================================= */



.system-info-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 16px 0;

    border-bottom: 1px solid #e5e7eb;

}





.system-info-row:last-child {

    border-bottom: none;

}





.system-info-row span {

    color: #64748b;

}





.settings-online {

    color: #16a34a;

}





/* =========================================================

   RESPONSIVE SETTINGS

========================================================= */



@media (max-width: 800px) {



    .setting-item {

        flex-direction: column;

        align-items: flex-start;

    }



    .configuration-grid {

        grid-template-columns: 1fr;

    }



}





/* =========================================================

   LOGIN PAGE

========================================================= */



.login-page {

    min-height: 100vh;

    margin: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    background: #f3f6fb;

    font-family: Arial, sans-serif;

}



.login-container {

    width: 100%;

    max-width: 450px;

    padding: 20px;

    box-sizing: border-box;

}



.login-header {

    text-align: center;

    margin-bottom: 28px;

}



.login-logo {

    width: 65px;

    height: 65px;

    margin: 0 auto 18px;

    border-radius: 16px;

    background: #1e293b;

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 26px;

    font-weight: bold;

}



.login-header h1 {

    margin: 0 0 10px;

    color: #1e293b;

    font-size: 30px;

}



.login-header p {

    margin: 0;

    color: #64748b;

    font-size: 14px;

}



.login-card {

    background: white;

    padding: 35px;

    border-radius: 14px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);

}



.login-card h2 {

    margin: 0 0 10px;

    color: #1e293b;

    font-size: 24px;

}



.login-subtitle {

    margin-bottom: 28px;

    color: #64748b;

    font-size: 14px;

}



.login-form-group {

    margin-bottom: 22px;

}



.login-form-group label {

    display: block;

    margin-bottom: 9px;

    color: #334155;

    font-size: 14px;

    font-weight: 600;

}



.login-form-group input {

    width: 100%;

    padding: 13px 14px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    font-size: 14px;

    box-sizing: border-box;

    outline: none;

}



.login-form-group input:focus {

    border-color: #2563eb;

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);

}



.login-button {

    width: 100%;

    padding: 14px;

    background: #1e293b;

    color: white;

    border: none;

    border-radius: 8px;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

}



.login-button:hover {

    background: #334155;

}



.login-error {

    padding: 12px;

    margin-bottom: 20px;

    background: #fee2e2;

    color: #b91c1c;

    border-radius: 8px;

    font-size: 14px;

}



.login-footer {

    text-align: center;

    margin-top: 25px;

    color: #94a3b8;

    font-size: 12px;

}







/* =========================================================

   SIDEBAR USER PROFILE & LOGOUT

========================================================= */



.sidebar-user {

    margin-top: 35px;

    padding: 15px;

    border-top: 1px solid #475569;

    color: #ffffff;

}



.sidebar-user-label {

    font-size: 12px;

    color: #94a3b8;

    margin-bottom: 8px;

}



.sidebar-username {

    font-size: 16px;

    font-weight: 600;

    margin-bottom: 5px;

    overflow-wrap: anywhere;

}



.sidebar-role {

    font-size: 13px;

    color: #cbd5e1;

}



.logout-form {

    padding: 0 15px 20px;

    margin: 0;

}



.logout-button {

    display: block;

    width: 100%;

    padding: 12px 16px;

    background-color: #fee2e2;

    color: #b91c1c;

    border: none;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 600;

    text-align: left;

    cursor: pointer;

}



.logout-button:hover {

    background-color: #fecaca;

}








/* ===== CONSISTENT PAGE LAYOUT ===== */
.summary, .alert-summary, .report-summary { width: 100%; }
.alert-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 30px; }
.summary .card, .alert-summary .card, .report-summary .card { min-width: 0; width: auto; }
.main-content > *, .service-section, .performance { min-width: 0; max-width: 100%; }
.service-section { overflow-x: auto; }
.chart-container { max-width: 100%; }
.sidebar nav a { background: transparent; }
.sidebar nav a.active, .sidebar nav a:hover { background: #374151; color: white; }
@media (max-width: 1100px) {
  .summary, .alert-summary, .report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .sidebar { position: relative; width: 100%; height: auto; }
  .main-content { margin-left: 0; width: 100%; padding: 20px; }
  .summary, .alert-summary, .report-summary { grid-template-columns: 1fr; }
}

@media (max-width: 700px) { body:not(.login-page) { display: block; } }

/* FINAL LAYOUT ALIGNMENT — original 240px sidebar */
@media (min-width: 701px) {
  body:not(.login-page) { display: block; }
  .sidebar { position: fixed; top: 0; left: 0; width: 240px; height: 100vh; overflow-y: auto; }
  .main-content { margin-left: 240px; width: calc(100% - 240px); max-width: none; padding: 30px; }
}
.main-content { min-width: 0; }
.summary, .alert-summary, .report-summary { width: 100%; }
.summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.alert-summary, .report-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 701px) and (max-width: 1100px) {
 .summary, .alert-summary, .report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
 .summary, .alert-summary, .report-summary { grid-template-columns: 1fr; }
}

/* FIX LOGOUT BUTTON POSITION */

.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar .logout-section {
    margin-top: 30px;
    padding: 0 16px;
}

.sidebar .logout-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    background-color: #fee2e2;
    color: #b91c1c;
    border: none;
    border-radius: 8px;
    text-align: left;
    font-weight: bold;
    cursor: pointer;
}



/* =========================================
   ALERTS PAGE - THREE EQUAL SUMMARY CARDS
========================================= */

.alerts-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.alerts-summary .card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .alerts-summary {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   UNIVERSITY LOGO - SIDEBAR
========================================= */

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 30px;
    width: 100%;
}

.sidebar-brand .sidebar-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-brand h2 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
    white-space: nowrap;
}


/* =========================================
   INTI UNIVERSITY LOGO - LOGIN PAGE
========================================= */

.login-page .login-logo {
    width: 82px;
    height: 82px;
    margin: 0 auto 20px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-page .login-inti-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
}


/* =========================================
   STUDENT SETTINGS MESSAGES
========================================= */

.settings-message-success {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #dcfce7;
    color: #166534;
}

.settings-message-error {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #fee2e2;
    color: #991b1b;
}


/* REGISTRATION FORM */

.login-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
}


/* =========================================
   USER MANAGEMENT
========================================= */

.user-management-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.user-management-stat {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.user-management-stat p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 14px;
}

.user-management-stat h2 {
    margin: 0;
    color: #1e293b;
    font-size: 30px;
}

.user-management-card {
    background: white;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.user-management-card h2 {
    margin: 0 0 22px;
    color: #1e293b;
    font-size: 22px;
}

.user-management-table-wrap {
    overflow-x: auto;
}

.user-management-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.user-management-table th,
.user-management-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.user-management-table th {
    color: #64748b;
    font-weight: 600;
}

.user-management-table td {
    color: #334155;
}

.user-status-approved,
.user-status-pending,
.user-status-rejected {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.user-status-approved {
    background: #dcfce7;
    color: #15803d;
}

.user-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.user-status-rejected {
    background: #fee2e2;
    color: #b91c1c;
}

@media (max-width: 1100px) {
    .user-management-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .user-management-stats {
        grid-template-columns: 1fr;
    }
}




/* =========================================
   USER MANAGEMENT SIDEBAR FOOTER
========================================= */

.sidebar-footer {
    margin-top: auto;
    padding: 0 16px 20px;
    border-top: none;
}

.sidebar-user {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.sidebar-user span {
    font-size: 13px;
    color: #cbd5e1;
}

.sidebar-user strong {
    font-size: 15px;
    color: #ffffff;
}



/* UNIFIED SIDEBAR LOGOUT BUTTON */

.sidebar-footer form {
    width: 100%;
    margin: 0;
}

/* SAME STYLE FOR BOTH LOGOUT BUTTON CLASSES */

.sidebar .logout-btn,
.sidebar .logout-button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 12px;
    background-color: #fee2e2;
    color: #b91c1c;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.sidebar .logout-btn:hover,
.sidebar .logout-button:hover {
    background-color: #fecaca;
}



/* =========================================
   USER MANAGEMENT APPROVAL ACTIONS
========================================= */

.user-approval-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-approval-actions form {
    margin: 0;
}

.user-approve-btn,
.user-reject-btn {
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.user-approve-btn {
    background: #dcfce7;
    color: #15803d;
}

.user-approve-btn:hover {
    background: #bbf7d0;
}

.user-reject-btn {
    background: #fee2e2;
    color: #b91c1c;
}

.user-reject-btn:hover {
    background: #fecaca;
}

.user-no-action {
    color: #94a3b8;
}

.user-approval-message {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
}

.user-approval-success {
    background: #dcfce7;
    color: #166534;
}

.user-approval-error {
    background: #fee2e2;
    color: #991b1b;
}


/* =========================================
   PREDICTIVE SERVICE HEALTH
========================================= */

.predictive-section {
    margin-top: 30px;
}

.predictive-description {
    color: #64748b;
    font-size: 14px;
    margin: 10px 0 20px;
}

.prediction-stable,
.prediction-warning,
.prediction-danger,
.prediction-unknown {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.prediction-stable {
    background: #dcfce7;
    color: #15803d;
}

.prediction-warning {
    background: #fef3c7;
    color: #92400e;
}

.prediction-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.prediction-unknown {
    background: #e2e8f0;
    color: #475569;
}
