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

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
}


.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 67px;
    width: auto;
    object-fit: contain;
}

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

#user-info {
    color: #cbd5e1;
    font-size: 14px;
}

.logout {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.logout:hover {
    background: #b91c1c;
}

.top-header {

    height: 80px;
    background: #111827;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}


.header-actions {

    display: flex;

    align-items: center;

    gap: 24px;
}


.top-nav {

    display: flex;

    align-items: center;

    gap: 8px;
}


.nav-button {

    background: transparent;

    border: none;

    color: #cbd5e1;

    padding: 9px 14px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 600;

    transition: .2s;
}


.nav-button:hover {

    background: rgba(255,255,255,.08);

    color: white;
}


.nav-button.active {

    background: rgba(220,38,38,.18);

    color: #fecaca;
}


.user-area {

    display: flex;

    align-items: center;

    gap: 12px;

    padding-left: 16px;

    border-left: 1px solid #374151;

}


.user-email {

    color: #cbd5e1;

    font-size: 14px;
}


.logout-btn {

    background: transparent;

    border: 1px solid #4b5563;

    color: white;

    padding: 7px 14px;

    border-radius: 8px;

    cursor: pointer;
}


.logout-btn:hover {

    background: rgba(255,255,255,.08);
}


.container {
    max-width: 1400px;
    margin: auto;
    padding: 30px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.card {
    background: #1e293b;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.card-title {
    color: #94a3b8;
    font-size: 17px;
}

.card-value {
    margin-top: 12px;
    font-size: 16px;
    font-weight: bold;
}
.card-value-red {
    margin-top: 12px;
    font-size: 20px;
    font-weight: bold;
}
.card-value-yellow {
    margin-top: 12px;
    font-size: 20px;
    font-weight: bold;
}
.card-value-blue {
    margin-top: 12px;
    font-size: 20px;
    font-weight: bold;
}

.red {
    color: #ef4444;
}

.orange {
    color: #f59e0b;
}
.blue {
    color: #87CEEB;
}

.green {
    color: #22c55e;
}

.table-box {
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
}

.data-table th {
    padding: 14px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 14px;
    color: #e2e8f0;
    border-bottom: 1px solid #334155;
}

.data-table tbody tr:hover {
    transition: .2s;
}
.section-header.alerts {
    background: rgba(239,68,68,.08);
    border:1px solid rgba(239,68,68,.20);
    border-left:4px solid #ef4444;
    color:#fee2e2;
}

.alerts-table thead{
    background:rgba(239,68,68,.12);
}

.alerts-table th{
    color:#fecaca;
    border-bottom:1px solid rgba(239,68,68,.25);
}

.alerts-table tbody tr:hover{
    background:rgba(239,68,68,.05);
}
.section-header.oncall{
    background:rgba(59,130,246,.08);
    border:1px solid rgba(59,130,246,.20);
    border-left:4px solid #3b82f6;
    color:#dbeafe;
}

.oncall-table thead{
    background:rgba(59,130,246,.12);
}

.oncall-table th{
    color:#bfdbfe;
    border-bottom:1px solid rgba(59,130,246,.25);
}

.oncall-table tbody tr:hover{
    background:rgba(59,130,246,.05);
}

.section-header.oncall{
    background:rgba(59,130,246,.08);
    border:1px solid rgba(59,130,246,.20);
    border-left:4px solid #3b82f6;
    color:#dbeafe;
}

.oncall-table thead{
    background:rgba(59,130,246,.12);
}

.oncall-table th{
    color:#bfdbfe;
    border-bottom:1px solid rgba(59,130,246,.25);
}

.oncall-table tbody tr:hover{
    background:rgba(59,130,246,.05);
}
.section-header.closed{
    background:rgba(34,197,94,.08);
    border:1px solid rgba(34,197,94,.20);
    border-left:4px solid #22c55e;
    color:#dcfce7;
}

.closed-table thead{
    background:rgba(34,197,94,.12);
}

.closed-table th{
    color:#bbf7d0;
    border-bottom:1px solid rgba(34,197,94,.25);
}

.closed-table tbody tr:hover{
    background:rgba(34,197,94,.05);
}
.section-header.maintenance{
    background:rgba(168,85,247,.08);
    border:1px solid rgba(168,85,247,.20);
    border-left:4px solid #a855f7;
    color:#f3e8ff;
}

.maintenance-table thead{
    background:rgba(168,85,247,.12);
}

.maintenance-table th{
    color:#e9d5ff;
    border-bottom:1px solid rgba(168,85,247,.25);
}

.maintenance-table tbody tr:hover{
    background:rgba(168,85,247,.05);
}

thead {
    background: #334155;
}

th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #f8fafc;
}

td {
    padding: 16px;
    border-top: 1px solid #475569;
}

tbody tr:hover {
    background: rgba(255,255,255,.03);
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.critical {
    background: #dc2626;
}

.warning {
    background: #d97706;
}

.resolved {
    background: #16a34a;
}

.action {
    border: none;
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s ease;
}

.action2 {
    border: none;
    background: #16a34a;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s ease;
}

.action:hover {
    background: #1d4ed8;
}

.footer {
    margin-top: 35px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.section-header {
    margin: 32px 0 14px;
    padding: 14px 20px;
    background: #253246;
    border: 1px solid #3b475a;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 600;
}

.section-title {
    display: flex;
    align-items:center;
    gap: 10px;
}

.section-actions {
    display: none;
    gap: 10px;
}

.section-actions .action {
    padding: 8px 14px;
    font-size: 14px;
}

button.override {
    background: #475569;
}

button.override:hover {
    background: #334155;
}


.section-header.alerts {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.20);
    border-left: 4px solid #ef4444;
    color: #f8fafc;
}

.section-header.oncall {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.20);
    border-left: 4px solid #3b82f6;
}

.section-header.closed {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.20);
    border-left: 4px solid #22c55e;
}

.section-header.maintenance {
    margin: 32px 0 14px;
    padding: 14px 20px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.20);
    border-left: 4px solid #a855f7;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f3e8ff;
    font-size: 18px;
    font-weight: 600;
}



.section-content {
    display: none;

}

.section-content.active {
    display: block;
}

.toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 2px;
}

.modal{
display:none;
position:fixed;
left:0;
top:0;
width:100%;
height:100%;
background:rgba(0,0,0,.55);
justify-content:center;
align-items:center;
z-index:1000;
}

.modal-content{
width:500px;
background:#1e293b;
border-radius:10px;
padding:30px;
box-shadow:0 20px 60px rgba(0,0,0,.5);
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.modal-content h2{
margin-bottom:25px;
}

.modal-content label{
display:block;
margin-top:18px;
margin-bottom:8px;
color:#cbd5e1;
}

.modal-content input{
width:100%;
padding:12px;
background:#0f172a;
border:1px solid #334155;
border-radius:6px;
color:white;
}

.modal-content select{
width:100%;
padding:12px;
background:#0f172a;
border:1px solid #334155;
border-radius:6px;
color:white;
}


.modal-buttons{
display:flex;
justify-content:flex-end;
gap:12px;
margin-top:30px;
}

button.secondary{
background:#475569;
color:white;
border:none;
padding:10px 18px;
border-radius:6px;
cursor:pointer;
}

button.secondary:hover{
background:#334155;
} 

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    min-width: 360px;
    padding: 14px 18px;
    background: #16a34a;
    color: white;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all .3s ease;
    pointer-events: none;
    z-index: 9999;
    visibility: hidden;
    display: flex;

}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    height: 100vh;
    background: #1e293b;
    border-left: 1px solid #334155;
    box-shadow: -10px 0 30px rgba(0,0,0,.4);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 3000;
}

.drawer.open {
    transform: translateX(0);
}


.drawer-content {
    height:100%;
    display:flex;
    flex-direction:column;
}

.drawer-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px;
    border-bottom:1px solid #334155;
}

.drawer-header h2 {
    margin:0;
    color:#f8fafc;
}

.drawer-close {
    background:none;
    border:none;
    color:#94a3b8;
    font-size:20px;
    cursor:pointer;
}

.drawer-close:hover {
    color:white;
}

#alert-drawer-body {
    padding:20px;
    overflow-y:auto;
}

#schedule-drawer-body {
    padding:20px;
    overflow-y:auto;
}

#maintenance-drawer-body {
    padding:20px;
    overflow-y:auto;
}

.detail-item {
    padding:12px 0;
    border-bottom:1px solid #334155;
}

.detail-label {
    color:#94a3b8;
    font-size:13px;
}

.detail-value {
    margin-top:5px;
    color:#f8fafc;
    font-size:15px;
}


.card-title-red.neon-active-title {
    color: #ff3333;
    text-shadow: 
        0 0 4px #ff3333,
        0 0 12px #ff3333,
        0 0 25px #ff3333,
        0 0 50px #ff0000,
        0 0 80px #ff0000,
        0 0 130px #ff0000;
    animation: neon-blink-red 3s infinite alternate;
}
.card-value-red.neon-active-value {
    color: #ff3333;
    font-size: 30px;
    text-shadow: 
        0 0 4px #ff3333,
        0 0 12px #ff3333,
        0 0 25px #ff3333,
        0 0 50px #ff0000,
        0 0 80px #ff0000,
        0 0 130px #ff0000;
    animation: neon-blink-red 3s infinite alternate;
}

.card-title-yellow.neon-active-title {
    color: #fff0b3;
    text-shadow: 
        0 0 4px #ffcc00,
        0 0 12px #ffaa00,
        0 0 25px #ff8800,
        0 0 50px #ff7700,
        0 0 80px #ff5500,
        0 0 130px #ff3300;
    animation: neon-blink-yellow 3s infinite alternate;
}

.card-value-yellow.neon-active-value {
    color: #fff0b3;
    font-size: 30px;
    text-shadow: 
        0 0 4px #ffcc00,
        0 0 12px #ffaa00,
        0 0 25px #ff8800,
        0 0 50px #ff7700,
        0 0 80px #ff5500,
        0 0 130px #ff3300;
    animation: neon-blink-yellow 3s infinite alternate;
}

.card-title-blue.neon-active-title {
    color: #e6f7ff;
    text-shadow: 
        0 0 4px #33ccff,
        0 0 12px #00aaff,
        0 0 25px #0088ff,
        0 0 50px #0066ff,
        0 0 80px #0044ff,
        0 0 130px #0000ff;
    animation: neon-blink-blue 3s infinite alternate;
}

.card-value-blue.neon-active-value {
    color: #e6f7ff;
    font-size: 30px;
    text-shadow: 
        0 0 4px #33ccff,
        0 0 12px #00aaff,
        0 0 25px #0088ff,
        0 0 50px #0066ff,
        0 0 80px #0044ff,
        0 0 130px #0000ff;
    animation: neon-blink-blue 3s infinite alternate;
}

@keyframes neon-blink-red {
    0%, 100% {
        opacity: 1;
        text-shadow: 
            0 0 4px #ff3333,
            0 0 12px #ff3333,
            0 0 25px #ff3333,
            0 0 50px #ff0000,
            0 0 80px #ff0000,
            0 0 130px #ff0000;
    }
    50% {
        opacity: 0.8;
        text-shadow: 
            0 0 2px #ff3333, 
            0 0 8px #ff3333, 
            0 0 15px #ff3333;
    }
    55% {
        opacity: 0.3;
        text-shadow: none;
    }
    56% {
        opacity: 0.9;
    }
}

@keyframes neon-blink-yellow {
    0%, 100% {
        opacity: 1;
        text-shadow: 
            0 0 4px #ffcc00,
            0 0 12px #ffaa00,
            0 0 25px #ff8800,
            0 0 50px #ff7700,
            0 0 80px #ff5500,
            0 0 130px #ff3300;
    }
    50% {
        opacity: 0.8;
        text-shadow: 
            0 0 2px #ffcc00, 
            0 0 8px #ffaa00, 
            0 0 15px #ff8800;
    }
    55% {
        opacity: 0.3;
        text-shadow: none;
    }
    56% {
        opacity: 0.9;
    }
}
@keyframes neon-blink-blue {
    0%, 100% {
        opacity: 1;
        text-shadow: 
            0 0 4px #33ccff,
            0 0 12px #00aaff,
            0 0 25px #0088ff,
            0 0 50px #0066ff,
            0 0 80px #0044ff,
            0 0 130px #0000ff;
    }
    50% {
        opacity: 0.8;
        text-shadow: 
            0 0 2px #33ccff, 
            0 0 8px #00aaff, 
            0 0 15px #0088ff;
    }
    55% {
        opacity: 0.3;
        text-shadow: none;
    }
    56% {
        opacity: 0.9;
    }
}




@media (max-width: 1000px) {

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 700px) {
    .header {
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        height: auto;
        padding: 20px;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .table-box {
        overflow-x: auto;
    }
    table {
        min-width: 700px;
    }

}
