html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}


html {
    position: relative;
    min-height: 100%;
}

body {
    background-color: #121212;
    margin-bottom: 0;
    padding-bottom: 0;
}

.img-responsive {
    max-width: 100%;
    height: auto;
}

.bold {
    font-weight: bold;
}

.hidden {
    display: none !important;
}

.text-purple {
    color: #a78bfa;
}

.cursor-pointer{
    cursor:pointer;
}

/*#region box Styles */
.info-box {
    padding: 15px;
    background-color: #2b2b2b;
    font-size: 0.9rem;
    border: 1px solid #393838;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #333;
}

.info-label {
    color: #a0aec0;
}

.info-value {
    font-weight: 500;
    color: #e0e0e0;
}

.alerts-content {
    height: calc(100% - 56px);
    overflow-y: auto;
    padding: 5px;
}

.alert-item {
    display: flex;
    padding: 7px 0;
    border-bottom: 1px solid #333;
    gap: 10px;
    align-items: flex-start;
}

.alert-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

    .alert-icon svg {
        max-width: 20px;
    }

.alert-info {
    flex-grow: 1;
}

.alert-title {
    font-weight: 500;
    margin-bottom: 3px;
    color: #e0e0e0;
}

.alert-desc {
    color: #a0aec0;
    font-size: 0.8rem;
}

.alert-time {
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 3px;
}

.alert-panel-list {
    max-height: 145px;
    padding: 0;
    overflow-y: auto;
    padding-right: 4px;
}

    .alert-panel-list::-webkit-scrollbar {
        width: 6px;
    }

    .alert-panel-list::-webkit-scrollbar-thumb {
        background-color: #444;
        border-radius: 3px;
    }


/* »óÅÂº° »ö»ó ¶óÀÎ */
.border-left-red {
    border-left-color: #ef4444;
}

.border-left-yellow {
    border-left-color: #facc15;
}

.border-left-blue {
    border-left-color: #3b82f6;
}

.close-btn {
    background: none;
    border: none;
    color: #bdc3c7;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-btn:hover {
        background: #4a5568;
        color: #ffffff;
    }

/* Ä¿½ºÅÒ ¿À¹ö·¹ÀÌ ½ºÅ¸ÀÏ */
.customoverlay {
    position: relative;
    left: -14px;
    bottom: 50px;
    border-radius: 8px;
    background: #2d3748;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    min-width: 160px;
    font-size: 13px;
    cursor: auto;
}

    .customoverlay:after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 10px solid #2d3748;
    }

    .customoverlay .header {
        background: #1a202c;
        padding: 8px 12px;
        border-radius: 8px 8px 0 0;
        border-bottom: 1px solid #4a5568;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .customoverlay .school-name {
        color: #ffffff;
        font-size: 1.2em;
        font-weight: 600;
        margin: 0;
    }

    .status-badge {
        font-size: 0.75rem;
        padding: 0.15rem 0.55rem;
        border-radius: 9999px;
        background-color: rgb(16 107 185 / 20%);
        color: #23b8d1;
        border: 1px solid rgba(16, 107, 185, 0.3);
    }
        .status-badge.caution {
            background-color: rgba(16, 185, 129, 0.2);
            color: #10b981;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }
        .status-badge.danger {
            background-color: rgba(244, 63, 94, 0.2);
            color: #f43f5e;
            border: 1px solid rgba(244, 63, 94, 0.3);
        }
        .status-badge.warning {
            background-color: rgba(234, 179, 8, 0.2);
            color: #eab308;
            border: 1px solid rgba(234, 179, 8, 0.3);
        }

.status-box {
    padding: 0.5rem 1rem;
    background-color: rgb(16 107 185 / 20%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    font-size: 1em;
    color: #23b8d1;
    opacity : .8;
    cursor: pointer
}
    .status-box.all {
        background-color: rgba(0, 0, 0, 0.5);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    .status-box.caution {
        background-color: rgba(16, 185, 129, 0.2);
        color: #10b981;
    }
    .status-box.danger {
        background-color: rgba(244, 63, 94, 0.2);
        color: #f43f5e;
    }
    .status-box.warning {
        background-color: rgba(234, 179, 8, 0.2);
        color: #eab308;
    }
    .status-box.offline {
        background-color: rgba(87, 91, 94, 0.2);
        color: #838383;
    }
    .status-box.active {
        opacity: 1;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

.status-inactive {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(var(--bs-primary-rgb), 1);
    box-shadow: 0 0 8px rgba(var(--bs-primary-rgb),1);
  
}
    .status-inactive.caution {
        background: rgba(var(--bs-success-rgb), 1);
        box-shadow: 0 0 8px rgba(var(--bs-success-rgb), 1);
    }
    .status-inactive.danger {
        background: rgba(var(--bs-danger-rgb), 1);
        box-shadow: 0 0 8px rgba(var(--bs-danger-rgb), 1);
    }
    .status-inactive.warning {
        background: rgba(var(--bs-warning-rgb), 1);
        box-shadow: 0 0 8px rgba(var(--bs-warning-rgb), 1);
    }
    .status-inactive.offline {
        background: rgba(var(--bs-gray-rgb), 1);
        box-shadow: 0 0 8px rgba(var(--bs-gray-rgb), 1);
    }

.customoverlay .content {
    padding: 8px 12px;
}

    .customoverlay .info-row {
        display: flex;
        justify-content: space-between;
        padding: 4px 0;
        border-bottom: 1px solid #4a5568;
    }

    .customoverlay .info-label {
        color: #ffffff;
        font-size: 1em;
        font-weight: 400;
    }

    .customoverlay .info-value {
        color: #ffffff;
        font-size: 1em;
        font-weight: 500;
    }

    .customoverlay .status-value {
        color: #68d391;
        font-size: 0.9em;
        font-weight: 500;
    }

    .customoverlay .timestamp {
        text-align: left;
        padding-top: 8px;
        margin-top: 4px;
    }

    .customoverlay .timestamp-text {
        color: #bdbdbd;
        font-size: 0.9em;
        font-weight: 400;
        line-height: 1.3;
    }


    @media (max-width: 768px) {
        .customoverlay {
            min-width: 180px;
            bottom: 75px;
        }

            .customoverlay .school-name {
                font-size: 14px;
            }

            .customoverlay .info-grid {
                gap: 8px;
            }

            .customoverlay .info-item {
                padding: 6px;
            }
    }



/*#endregion */

.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: auto;
    border-radius: 50%;
    background-color: #1e1e1e;
}

    .status-icon.success {
        background-color: rgba(34, 197, 94, 0.1); /* ¿¬ÇÑ ³ì»ö ¹è°æ */
        color: #22c55e; /* ³ì»ö */
    }

    .status-icon.error {
        background-color: rgba(239, 68, 68, 0.1); /* ¿¬ÇÑ »¡°£ ¹è°æ */
        color: #ef4444; /* »¡°£»ö */
    }

    .status-icon i {
        font-size: 18px;
    }

.scrollable-tbody {
    display: block;
    overflow-y: auto;
}

    .scrollable-tbody tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .scrollable-tbody::-webkit-scrollbar {
        width: 6px;
    }

    .scrollable-tbody::-webkit-scrollbar-thumb {
        background: #444;
        border-radius: 3px;
    }

/* header °íÁ¤ È¿°ú À¯Áö */
.table-operation-history thead {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.table-operation-history td,
.table-operation-history th {
    background-color: #2b2b2b ;
    vertical-align: middle;
    font-size: 0.9rem;
    color: #e0e0e0;
    border-bottom: 3px solid #212121;
}

.table-operation-history th {
    background-color: transparent;
    font-weight: 500;
    color: #a0aec0;
}

.table-operation-history tr {
    border-radius: 8px;
}

    .table-operation-history tr td:first-child {
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
        text-wrap-mode: nowrap;
    }

    .table-operation-history tr td:last-child {
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
    }

table.dataTable {
    margin-bottom: 20px !important;
}

div.dataTables_wrapper div.dataTables_info {
    padding-top: 0;
    color: var(--bs-gray);
}
div.dataTables_wrapper div.dataTables_length {
    color: var(--bs-gray);
}
div.dataTables_wrapper td.dataTables_empty {
    color: var(--bs-gray);
}



.glass-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

    .glass-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

.tank-svg-wrapper{
    position:relative;
}
.tank-percent {
    position: absolute;
    top: 5%;
    left: 5%;
    color: #bbb;
}

.tank-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 200, 255, 0.9) 0%, rgba(14, 165, 233, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
    transition: height 1s ease;
}

.tank-scale {
    position: absolute;
    left: -40px;
    top: -8px;
    height: 115%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
    font-size: 10px;
    text-align: right;
    color: rgba(255, 255, 255, 0.8);
}
    .tank-scale span {
        position: relative;
        padding-left: 12px;
    }
        .tank-scale span::before {
            content: "";
            position: absolute;
            right: -12px;
            top: 50%;
            width: 8px;
            height: 1px;
            background: rgba(255, 255, 255, 0.4);
        }

.data-pill {
    display: flex;
    justify-content : space-between;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.alert-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .alert-item:last-child {
        border-bottom: none;
    }

.card .inner-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    background-color: rgb(5 8 16 / 1);
    border: 1px solid #1e1e1e;
    font-size: 1.2rem;
    float: left;
    margin-right: 17px;
}
    .card .inner-box span {
        position: absolute;
        left: -0.75rem;
        top: -0.25rem;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 9999px;
        background-color: rgb(27 43 79);
        font-size: 0.7em;
        color: #ffffff;
    }

    .card .inner-box i.success {
        color: #4ade80;
    }
    .card .inner-box i.danger {
        color: #ff2a2a;
        animation: blink 1s infinite;
    }

.glass-card .inner-box-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-right: 17px;
}

.glass-card .inner-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background-color: rgb(5 8 16 / 1);
    border: 1px solid #1e1e1e;
    font-size: 1.2rem;
}

    .glass-card .inner-box span {
        position: absolute;
        left: -0.75rem;
        top: -0.25rem;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 1.2rem;
        height: 1.2rem;
        border-radius: 9999px;
        background-color: rgb(27 43 79);
        font-size: 0.7em;
        color: #ffffff;
    }

    .glass-card .inner-box i.success {
        color: #4ade80;
        animation: blink 1s infinite;
    }

    .glass-card .inner-box i.danger {
        color: #ff2a2a;
        animation: blink 1s infinite;
    }

    .glass-card .inner-box i.disable {
        color: #666;      
        animation:none;
    }

.meter {
    margin-top: 4px;
    font-size: 0.75em;
    color: #fff;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }

    51%, 100% {
        opacity: 0.3;
    }
}

.responsive-footer {
    background-color: var(--bs-topbar-bg);
    padding: 0 calc(1.25rem / 2) 0 0;
    position: fixed;
    left: 0;
    bottom:0;
    width: 100%;
    height: 50px;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.04);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.footer-content {
    margin-left: 1rem;
}

/* 991px ÀÌÇÏÀÏ ¶§¸¸ º¸ÀÌµµ·Ï */
@media (max-width: 991px) {
    .responsive-footer {
        display: flex !important;
    }
}

.dataTables_info {
    display:none;
}