:root {
    --green-color: #00A651;
    --green-color1: #009a6e;
    --red-color: #D32F2F;
    --blue-color: #1976d2;
    --darkgrey-color: #424242;
    --grey-color: #F5F5F5;
    --headers-font: 2.5rem;
    --subheaders-font: 2rem;
    --first-color-light: #AFA5D9;
    --white-color: #FFFFFF;
    --black-color: #000000;
    --body-font: "Roboto", sans-serif;
    --z-fixed: 100;
}

* {
    scrollbar-color: rgba(223, 223, 223, 0.9) rgba(255, 255, 255, 0);
    scrollbar-width: thin;
}

.btn,
a {
    transition: all 0.5s;
    -o-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -webkit-transition: all 0.5s;
    text-decoration: none;
    outline: none;
}

.btn:hover,
a:hover {
    transition: all 0.5s;
    -o-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -webkit-transition: all 0.5s;
    outline: none;
    box-shadow: none;
}

html,
body {
    font-size: 62.5%;
    scroll-behavior: smooth;

}

body {
    font-family: "Roboto", sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
}

.title {
    font-size: var(--headers-font);
    font-weight: 600;
    vertical-align: middle;
}

.title span {
    vertical-align: middle;
    color: var(--white-color);
    font-size: 1.6rem;
}

.subtitle {
    font-size: var(--subheaders-font);
    font-weight: 600;
    vertical-align: middle;
}


/* ------- SIDEBAR ------- */
#sidebar {
    width: 25rem;
    position: fixed;
    left: 0;
    /* OPEN BY DEFAULT */
    top: 0;
    height: 100vh;
    background: var(--white-color);
    color: white;
    transition: all 0.4s ease;
    border-right: 1px solid #dadada;
}

/* collapsed means CLOSED */
#sidebar.collapsed {
    left: -25rem;
}

/* nav links */
#sidebar .nav-link {
    color: var(--black-color);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: 0.3s;
    font-weight: 500;
    border: 1px solid #fff;
}

#sidebar .nav-link:hover {
    background: #b6e5d7;
    border-radius: 10px;
    color: #080808;
    border: 1px solid #046449;
}

#sidebar .nav-link.active {
    background: #b6e5d7;
    border-radius: 10px;
    color: #080808;
    border: 1px solid #046449;
}

/* ------- MAIN CONTENT ------- */
#main-content {
    margin-left: 24rem;
    /* because sidebar is open */
    transition: margin-left 0.4s ease;
}

#main-content.collapsed {
    margin-left: 0;
}

/* ------- HEADER ------- */
.header {
    height: 6rem;
    background: #009a6e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0 2rem;
    color: var(--white-color);
}

.header_toggle i {
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--white-color);
    transition: transform 0.3s ease;
}

.header_toggle {
    position: relative;
    margin-left: 4rem;
    /* because sidebar is open */
    transition: margin-left 0.4s ease;
    z-index: 999;
}

.vigillogo {
    background: #fff;
    height: 6rem;
    border-bottom: 1px solid #dadada;
}

.vigillogo img {
    width: 80%;
    margin: auto;
    text-align: center;
    display: block;
}

.header .form-select {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--green-color);
    padding-right: 3rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300A651' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    border: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.form-select option {
    background-color: #fff;
    color: #333;
    border: none;
}

.header .bg-danger {
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    vertical-align: middle;
    text-align: center;
    padding: 0;
    line-height: 2rem;
    margin: 0;
}

.profile a {
    text-decoration: none;
}

.profile a span {
    color: var(--white-color);
    font-size: 1.3rem;

}

.profile .dropdown-toggle::after {
    color: var(--white-color);
}

.userbg {
    background: #fff;
    width: 3.5rem;
    height: 3.5rem;
    line-height: 3.5rem;
    text-align: center;
    display: inline-block;
    border-radius: 50%;
}

.userbg i {
    font-size: 1.8rem;
    color: var(--blue-color);
}

.fa-bars {
    font-size: 2rem;
}

.btn-primary {
    background: #D32F2F;
    border-color: #b12727;
    width: max-content;
    font-size: 1.6rem;
    border-top-right-radius: 5rem;
    border-bottom-right-radius: 5rem;
    padding: 1rem;
    padding-right: 2rem;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--green-color1);
    border-color: var(--green-color1);

}

.alertblock h3 {
    background: var(--red-color);
    color: var(--white-color);
    border-radius: 1rem;
}

.alertblock .card {
    box-shadow: 0 10px 25px 0 rgba(50, 50, 93, 0.07), 0 5px 15px 0 rgba(0, 0, 0, 0.07);
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #f7bbbb;
}

.alert-circle {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: #f9e0e0;
    border: 8px solid var(--red-color);
    animation: pulse 1.3s infinite ease-in-out;
    line-height: 12rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.alertblock .card-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--red-color);
}

.alertblock .card-text {
    font-size: 1.5rem;
    font-weight: 500;
}

.alert-card {
    border-radius: 1.2rem;
    overflow: hidden;
}

.alert-count {
    color: #d9534f;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.alert-card .card-footer {
    border-top: 0;
    font-size: 0.9rem;
    padding: 0;
    background: #046449;
    border-radius: 0;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--white-color);
}

.alert-card .card-footer:hover {
    background: #009a6e;
    color: var(--white-color);
}

.alert-card .card-body {
    padding: 1rem;
}

.systemblock .card {
    border: 1px solid #e3e3e3;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.systemblock .statusbadge {
    color: #fff;
    padding: 0.2rem 1rem;
    border-radius: 5rem;
    font-weight: 500;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.systemblock .card-footer i {
    background: #009a6e;
    font-size: 2rem;
    color: var(--white-color);
    width: 4rem;
    height: 4rem;
    text-align: center;

}

.systemblock .card-body h3 {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 0;
}

.systemblock .bg-success {
    background: rgba(0, 166, 81, 0.5);
}

.systemblock .bg-danger {
    background: rgba(0, 166, 81, 0.5);
}

.recentalert {
    box-shadow: 0 0 10px #a5a5a5;
    border-radius: 1.4rem;
    padding: 1.5rem 2rem;
    border-left: 0.4rem solid var(--red-color);
}

.recentalert h4 {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--red-color);
}

.dropdown-item {
    font-size: 1.3rem;
    padding: 1rem 1rem;
}

.dropdown-menu {
    border: 1px solid #b6e5d7;
    padding-top: 0;
    padding-bottom: 0;
    top: 1.7rem !important;
    border-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.dropdown-item:focus,
.dropdown-item:hover {
    background: #009a6e;
    color: var(--white-color);
}

.profile {
    cursor: pointer;
}

footer {
    background: linear-gradient(to right, #fff 18.4%, #333 18.4%);
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 999;
}

.card {
    border-radius: 1rem;
}

.card a {
    color: #000;
}

.activeCard {
    border: 1px solid var(--green-color);
    height: 100%;
}

.fa-gear {
    font-size: 1.1rem;
    color: #fff !important;
}

.activeCard .badge {
    background: #00a651;
}

.pump-card {
    border-radius: 10px;
    border: 1px solid var(--green-color);
}

.power-box i {
    color: #00a651;

}

.fa-bolt {
    font-size: 4rem;
}

.pressure span {
    font-size: 1.8rem;
    color: var(--green-color);
}

.alert-bar {
    width: 100%;
    overflow: hidden;
    height: 7rem;
}

.left-box {
    background-color: #c62828;
    flex: 3;
}

.middle-box {
    background-color: #fff5f5;
    flex: 2.2;
}

.right-box {
    background-color: #7f1d1d;
}

.circle-indicator {
    width: 5rem;
    height: 5rem;
    border: 4px solid #c62828;
    border-radius: 50%;
    background: #fff;
    animation: pulse 1.3s infinite ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #c62828;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.alert-bar h3 {
    font-size: 1.8rem;
}

.middle-box h4 {
    font-size: 1.6rem;
    color: #720505;
}

.middle-box p {
    font-size: 1.4rem;
}

.right-box {
    background: #062c52;
    font-weight: 600;
}

.right-box:hover {
    background: var(--red-color);
}

.sensor-card {
    border: 1px solid #062c52;
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
}

.sensor-header {
    background: #062c52;
    color: var(--white-color);
    font-size: 1.7rem;
}

/* Rounded button */
.history-btn {
    background: var(--black-color);
    color: var(--white-color);
    border-radius: 5rem;
    font-weight: 500;
    font-size: 1.3rem;
}

.history-btn:hover {
    background: var(--green-color1);
    color: var(--white-color) !important;
}

.modal-rounded {
    border-radius: 20px !important;
    overflow: hidden;
}

.modal-top-area {
    background: #193756;
    color: white;
    border-bottom: none;
    padding: 20px;
}

.assoc-box {
    background: #428edb;
    color: var(--white-color);
    border-radius: 0.5rem;
    font-size: 1.6rem;
    font-weight: 500;
}

.power-box1 {
    background: #edf4fc;
    border: 1px solid #edf4fc;
}

.power-head {
    background: #438ddc;
    padding: 1rem 1rem;
    border-radius: 0.5rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    font-size: 1.7rem;
}

.icon-circle {
    width: 8rem;
    height: 8rem;
    border: 3px solid #000000;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.modal-title {
    font-size: 2rem;
}

.modal-body .small {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.bg-dark {
    background: var(--white-color) !important;
    color: var(--blue-color);
}

.power-box1 h3 {
    font-size: 1.8rem;
}

.btn-dark {
    background: #438dda;
    font-size: 1.6rem;
    border: 0;
}

#mhpModal .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

.tank-card {
    background: #fff;
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e6e6e6;
}

.tank-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tank-card h5 {
    font-size: 1.8rem;
    color: #000;

}

.tank-percentage {
    font-size: 3rem;
    color: #0a60b5 !important;
}

.tank-card .tank-percentage {
    font-size: 5rem;
    font-weight: 800;
    color: var(--black-color);
}

.tank-svg {
    width: 80px;
}

/* Water Fill */
.water {
    fill: #6c6c6c;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 1.5s ease-out;
    /* smooth dynamic animation */
}

/* Animation base (no fixed percentage here) */
@keyframes fillAnim {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }

    /* Full height */
}

/* Tank box */
.ug-tank {
    width: 100px;
    height: 150px;
    border: 3px solid #0d6efd;
    border-radius: 1rem;
    position: relative;
    /* overflow: hidden; */
    background: #eef5ff;
}

/* Water fill */
.ug-water {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 0%;
    background: #0d6efd;
    transition: height 1.5s ease-in-out;
}

/* Percentage text */
.ug-percent {
    position: absolute;
    top: 12px;
    width: 100%;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #003b99;
}

.tankcapacity {
    color: #333;
    font-weight: 500;
}

.dieseltank .tank-percentage {
    color: #eab308 !important;
}

.dieseltank .ug-tank {
    color: #eab308 !important;
    border: 3px solid #eab308;
}

.dieseltank .ug-water {
    background: #eab308;
}

.device-card {
    background: #fff;
    color: #fff;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-bottom: 4px solid var(--green-color);
}

.device-card h6 {
    font-size: 1.8rem;
    color: var(--black-color);
}

.shadow-sm {
    box-shadow: 0 .225rem .60rem rgba(0, 0, 0, .3) !important;
}

.fireststus small {
    font-size: 1.5rem;
    font-weight: 600;
}

.fireststus span {
    border-radius: 5rem;
    color: #fff;
    font-weight: 600;
    background: #dcfce7;
    color: #166534;
    font-size: 1.3rem;
}

.panelalert {
    border-bottom: 4px solid var(--red-color) !important;
}

.panelalert .fireststus span {
    background: #f3a7a7 !important;
    color: #ab0d0d !important;
}

.ventilationbox {
    border-radius: 1rem;
}

.ventilationbox h4 {
    font-size: 1.8rem;
}

.ventilationbox h6 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #818181;
    background: #ccc;
    width: max-content;
    margin: auto;
    border-radius: 5rem;
}

.fangreen h4 {
    color: #0c9719
}

.fangreen h6 {
    color: #15845e;
    background: #dcfce7;
}

.fanred h4 {
    color: var(--red-color);
}

.fanred h6 {
    color: #bf1c1c;
    background: #fee2e2;
}

.fan {
    animation: spin 1s linear infinite;
    transform-origin: center;
    /* important for perfect rotation */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Fire Glow Animation */
@keyframes firePulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 12px #ff1f1f);
    }

    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 20px #ff6b6b);
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 12px #ff1f1f);
    }
}

.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top, #ff4b4b, #7d0000);
    padding: 2rem;
}

/* Glassmorphism Card */
.login-card {
    width: 40rem;
    background: #000;
    backdrop-filter: blur(12px);
    border-radius: 1.8rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
    color: #fff;
    animation: fadeUp 1s ease-in-out;
}

@keyframes fadeUp {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Fire Icon Animated */
.fire-icon {
    font-size: 7rem;
    color: #fff;
    animation: firePulse 1.5s infinite ease-in-out;
    margin-bottom: 1rem;
}

.form-control {
    height: 4.8rem;
    border-radius: 1rem;
        background: rgb(227 228 229);
    border: none;
    color: #000;
    padding-left: 1.5rem;
    font-size: 1.5rem;
}

.form-control::placeholder {
    color: #eee;
    font-size: 1.3rem;
}

.btn-fire {
    border-radius: 1rem;
    border: none;
    background: linear-gradient(135deg, #ff0000, #ff6b6b);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
    transition: 0.3s;
    font-size: 1.8rem;
    padding: 1.3rem 1rem;
}

.btn-fire:hover {
    background: linear-gradient(135deg, #ff6b6b, #ff0000);
    box-shadow: 0 0 20px rgba(255, 80, 80, 1);
}

.forgot-link {
    color: #ffe6e6;
    text-decoration: none;
    font-size: 1.5rem;
}

.forgot-link:hover {
    text-decoration: none;
    color: var(--red-color);
}

.logo2 {
    background: #fff;
    width: 19.4rem;
    padding: 2px;
}

.circleblock {
    background: var(--green-color);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--white-color);
    margin: auto;
    padding: 0.8rem;
    display: grid;
}

.circleblock img {
    width: 100%;
}

.light {
    background: #65bf80 !important;
}

.card table h6 {
    color: #7e7d7d;
    font-size: 1.3rem;
    font-weight: 500;
}

.card table h3 {
    font-size: 1.5rem;
    color: #000;
}

.active2 {
    background: var(--green-color);
    color: var(--white-color) !important;
    border-radius: 5rem;
    width: max-content;
}

.card table td {
    border: 0;
    padding: 0;
    margin: 0;
}


.duration {
    background: #cde0f3;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.duration .small {
    font-size: 1.6rem;
    color: #000;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 16px;
}

.toggle-password:hover {
    color: #ff5722;
    /* fire theme */
}

.activeblock h3 {
    background: var(--green-color) !important;
}

.activeblock .card {
    border: 1px solid #00a651 !important;
}

.activeblock .alert-circle {
    background: #d3ffe9;
    border: 8px solid var(--green-color) !important;
}

.activeblock .card-title {
    color: var(--green-color) !important;
}

.alertblock .alert-circle i {
    font-size: 4rem;
    color: #d32f2f;
}

.activeblock .alert-circle i {
    color: #046449;
}

.fa-circle-check,
.fa-stopwatch,
.fa-clock {
    font-size: 2rem;
}

.status .fw-semibold {
    color: var(--green-color);
}

.pump-card {
    border: 1px solid #1aa34a;
    background: #fff;
}

.pump-card h5 {
    font-size: 1.7rem;
    color: #1c1c1c;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.status-badge {
    background: #1aa34a;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 10rem;
}

.power-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ebfbf0;
    padding: 10px;
    border-radius: 10px;
}

.fa-bolt i {
    font-size: 26px;
    color: #1aa34a;
}

.auto-badge {
    margin-left: auto;
    background: #00a651;
    color: #fff;
    font-size: 1.3rem;
    padding: 3px 8px;
    border-radius: 5rem;
    font-weight: 500;
}

.power-box small {
    font-size: 1.4rem;
    color: #333;
}

.power-box .fw-bold {
    font-size: 1.7rem;
}

.warningCard {
    border: 1px solid #ff681e;
    height: 100%;
}

.warningCard .power-box i {
    color: #ff681e;
}

.warningCard .auto-badge {
    background: #ff681e;
}

.warningCard .fa-circle-xmark,
.warningCard .fa-stopwatch,
.warningCard .fa-clock {
    font-size: 2rem;
    color: #ff681e !important;
}

.warningCard .status .fw-semibold {
    color: #ff681e;
}

.warningCard .power-box {
    background: #fceae1;
}

.alertCard {
    border: 1px solid var(--red-color);
    height: 100%;
}

.alertCard .power-box i {
    color: var(--red-color);
}

.alertCard .auto-badge {
    background: var(--red-color);
}

.alertCard .fa-circle-xmark,
.alertCard .fa-stopwatch,
.alertCard .fa-clock {
    font-size: 2rem;
    color: var(--red-color) !important;
}

.alertCard .status .fw-semibold {
    color: var(--red-color);
}

.alertCard .power-box {
    background: #fde5e5;
}

.pump-card a {
    color: #00a651;
}

.warningCard a {
    color: #ff681e;
}

.alertCard a {
    color: var(--red-color);
}

.loactionmap {
    color: #fff;
}

.loactionmap:hover {
    color: #aff9e4;
}

.chartmodal .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center / 1em auto no-repeat;
}

.monthtxt {
    color: #02664a;
}

.pressure-legend {
    display: flex;
    gap: 1.6rem;
    margin-bottom: 1.6rem;
}

.legend-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.3rem;
    border-radius: 1.4rem;
}

.legend-item strong {
    font-size: 1.4rem;
    display: block;
    line-height: normal;
}

.legend-item small {
    font-size: 1.2rem;
    opacity: 0.85;
}

/* Colored dots */
.legend-item .dot {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.5rem;
}

/* Zone colors */
.legend-item.low {
    background: #fdecec;
    color: #c62828;
}

.legend-item.low .dot {
    background: #c62828;
    /* background: #F03E3E; */

}

.legend-item.optimal {
    background: #e9f8ee;
    color: #2e7d32;
}

.legend-item.optimal .dot {
    background: #2e7d32;
    /* background: #4CAF50; */

}

.legend-item.high {
    background: #fff3e0;
    color: #c45616;
}

.legend-item.high .dot {
    background: #c45616;
    /* background: #FF8800; */

}

.year-month-card {
    background: linear-gradient(135deg, #ffffff, #f5f9ff);
    border-radius: 1.6rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08);
    margin: auto;
    width: 100%;
     border: 1px solid #e3e3e3;
}

.year-month-card h5 {
    color: #1f2937;
}

.input-group-text {
    background: #eef2ff;
    border: none;
    color: #009a6e;
    font-size: 2rem;
}

.flatpickr-input {
    border: 1px solid #e5e7eb;
}

::placeholder {
    color: #919191 !important;
}

.form-select {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.2s ease-in-out;
}

.form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 0.15rem rgba(79, 70, 229, 0.25);
}

.btn-secondary {
    background: #3e3e3e;
    font-size: 1.4rem;
    border: 0;
}

.alert-banner {
    display: flex;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* LEFT RED BLOCK */
.alert-left {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #fff;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    min-width: 40rem;
}

.alert-left i {
    font-size: 4.2rem;
    color: #ffeb3b;
}

.alert-left h5 {
    margin: 0;
    font-weight: 700;
    font-size: 2rem;
}

/* MIDDLE CONTENT */
.alert-center {
    background: #fff;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}


.alert-center h6 {
    margin: 0;
    color: #d32f2f;
    font-weight: 700;
    font-size: 1.8rem;
}

.alert-center p {
    margin: 2px 0 0;
    color: #444;
    font-size: 1.5rem;
}

/* RIGHT BUTTON */
.alert-right {
    background: #fff;
    padding: 1.5rem;
}

.btn-details {
    background: linear-gradient(135deg, #2e6caa, #062c52);
    color: #fff;
    border-radius: 0.8rem;
    padding: 1rem 2.2rem;
    font-weight: 600;
    font-size: 1.5rem;
}

.btn-details:hover {
    background: #2e6caa;
    color: #fff;
}

.btn-warning {
    background-color: #062c52;
    color: #fff;
    font-size: 1.4rem;
    border: 0;
    margin-top: 1rem;
    padding-top: 0.9rem;
    padding-bottom: 0.8rem;
    border-radius: 0.6rem;
}

.btn-warning:hover {
    background: #02664a;
    color: #fff;
}

/* GREEN STATE */
.alert-banner.normal .alert-left {
    background: var(--green-color) !important;
}

.alert-banner.normal{
    border: 1px solid #00a651 !important;
}

.alert-banner.normal .alert-center h6 {
    color: #2e7d32;
}

/* FIX RED CIRCLE */
.alert-banner.normal .circle-indicator {
    background: #d3ffe9;
    border: 4px solid var(--green-color) !important;
    color: var(--green-color);   
}


canvas{
    height: 100px;
    width: 100%;
    }
    .battery-value{
    background: #dcf5e4;
    padding:1rem  0.5rem;
    width: 100%;
    border-radius: 10px;
    }
    .battery-card{
    border: 1px solid #1aa34a;
    background: #fff;
    height: 100%;
    }
    .battery-card h5{
    font-size: 1.8rem;
    color: #1c1c1c;
    width: 70%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    }
       .battery-card h6{
       font-size: 1.7rem;
       color: #1aa34a;
       }
#preview-textfield{
color: #000;
}
.alertBattery{
    border: 1px solid var(--red-color);
}
.alertBattery .battery-value{
background: #fde5e5;
}
.alertBattery h6{
    color: var(--red-color);
}
.alert-red {
    border: 1px solid #D32F2F;
    color: #D32F2F !important;       /* force text color */
    background: #f5ceca !important;     /* optional: white background */
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
}




.alertpage .card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.alert-item {
    padding: 1.25rem;
    border-left: 4px solid transparent;
    background: #fff;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid #f3f4f6;
}

.alert-item:hover {
    border-color: #e5e7eb;
    background-color: #fcfcfd;
}

.priority-high {
    border-left-color: #ef4444;
}

.priority-medium {
    border-left-color: #f59e0b;
}

.priority-low {
    border-left-color: #10b981;
}

.priority-info {
    border-left-color: #3b82f6;
}

.unread {
    background-color: #fff0f0 !important;
    border-color: #ffc4c4 !important;
}
.read {
    background-color: #e6faf0 !important;
    border-color: #c4ffe3 !important;
}

.dot {
    height: 8px;
    width: 8px;
    background-color: #4f46e5;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.badge-count {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-high-soft {
    background-color: #fee2e2;
    color: #b91c1c;
}

.bg-medium-soft {
    background-color: #fef3c7;
    color: #92400e;
}

.bg-low-soft {
    background-color: #d1fae5;
    color: #065f46;
}

.bg-info-soft {
    background-color: #dbeafe;
    color: #1e40af;
}

.alertpage .input-group {
    border: 1px solid #ccc;
    border-radius: 0.8rem;
}

.alertpage .input-group-text {
    border-radius: 0.8rem;
    background: #ccc;
}

.alertpage .form-control:focus {
    border-color: #ff1919;
    box-shadow: 0 0 0 .25rem rgba(255, 0, 0, .25);
}