:root {
    /* Main UI Colors */
    --primary-color: #2a93c9;
    --secondary-color: #faa831;
    --dark-color: #404344;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-light: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Tank & Fluid Colors */
    --petrol-color: #9333ea;
    --water-color: #2a93c9;
    --tank-bg: #1a1f2e;
    /* Sensor Status Colors */
    --sensor-green: #10b981;
    --sensor-orange: #f97316;
    --sensor-red: #ef4444;
    --sensor-yellow: #eab308;
}

/* ========== DARK THEME OVERRIDES ========== */
body.dark-theme {
    --light-bg: #0b0b0b;
    --white: #29292a;
    --text-dark: #f5f5f5;
    --text-light: #b0b0b0;
    --border-light: #44474c;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    background-color: var(--light-bg);
    color: var(--text-dark);
}


@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter_18pt-Regular.ttf') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter_18pt-Medium.ttf') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter_18pt-Bold.ttf') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter_18pt-SemiBold.ttf') format('woff2');
    font-weight: 600;
    font-style: normal;
}

/* Poppins Font */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.ttf') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.ttf') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.ttf') format('woff2');
    font-weight: 700;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    transition: all 0.3s ease;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
}


.m-0 {
    margin: 0;
}

.mt-0 {
    margin-top: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}


/* Active Menu Item Styling */
.menu-item.active {
    background-color: rgba(42, 147, 201, 0.1) !important;
    border-left: 4px solid #2a93c9 !important;
    color: #2a93c9 !important;
    font-weight: 600 !important;
}

.menu-item.active i {
    color: #2a93c9 !important;
}

body.dark-theme .menu-item.active {
    background-color: rgba(42, 147, 201, 0.2) !important;
    border-left: 4px solid #4db8ff !important;
    color: #4db8ff !important;
}

body.dark-theme .menu-item.active i {
    color: #4db8ff !important;
}




/* main-laoder */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    margin-bottom: 40px;
    animation: logoFloat 2s ease-in-out infinite;
}

.loader-logo img {
    width: 180px;
    height: auto;
    margin: 0;
    /* filter: brightness(0) invert(1); */
    /* drop-shadow: 0 0 20px rgba(42, 147, 201, 0.5); */
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Tank Container */
.tank-loader {
    width: 120px;
    height: 180px;
    position: relative;
    margin: 0 auto 30px;
    background: linear-gradient(to bottom, #1e3a5f 0%, #2a4d7c 100%);
    border-radius: 15px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), inset 0 0 30px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Tank Cap/Top */
.tank-loader::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 15px;
    background: linear-gradient(to bottom, #4a5568 0%, #2d3748 100%);
    border-radius: 5px 5px 0 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
}

/* Fuel Level Animation */
.fuel-level {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    animation: fillTank 2.5s ease-in-out infinite;
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.2), 0 -5px 20px rgba(37, 99, 235, 0.5);
}

/* Fuel Wave Effect */
.fuel-level::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -50%;
    width: 200%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: wave 2s linear infinite;
}

@keyframes fillTank {
    0% {
        height: 0%;
    }

    50% {
        height: 85%;
    }

    100% {
        height: 0%;
    }
}

@keyframes wave {
    0% {
        transform: translateX(0) translateY(0);
    }

    50% {
        transform: translateX(-25%) translateY(-5px);
    }

    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* Tank Scale Markers */
.tank-scale {
    position: absolute;
    right: -25px;
    top: 20px;
    bottom: 20px;
    width: 20px;
}

.scale-mark {
    position: absolute;
    right: 0;
    width: 15px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
}

.scale-mark:nth-child(1) {
    top: 0%;
}

.scale-mark:nth-child(2) {
    top: 25%;
}

.scale-mark:nth-child(3) {
    top: 50%;
}

.scale-mark:nth-child(4) {
    top: 75%;
}

.scale-mark:nth-child(5) {
    top: 100%;
}

/* Percentage Display */
.tank-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    animation: percentPulse 2.5s ease-in-out infinite;
}

@keyframes percentPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}


/* Log Type Page Specific Styles */
.log-filters-section {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.log-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.log-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-filter-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.9rem;
    text-transform: capitalize;
}

.log-filter-input {
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: var(--white);
    color: var(--text-dark);
}

.log-filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 147, 201, 0.1);
}

.log-filter-input::placeholder {
    color: #9ca3af;
}

.log-search-btn {
    background: linear-gradient(135deg, #2a93c9 0%, #2a93c9 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    align-self: flex-start;
}

.log-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 6px rgb(42 147 201);
}

.entries-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.entries-control select {
    padding: 6px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
}

/* Enhanced Table Styles */
.log-table-section {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 12px 12px;
}

#logTable {
    width: 100% !important;
    border-collapse: collapse;
}

#logTable thead {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

#logTable thead th {
    padding: 16px 12px !important;
    font-weight: 700;
    color: #334155;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #cbd5e1;
    white-space: nowrap;
}

#logTable tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s;
}

#logTable tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

body.dark-theme #logTable tbody tr:nth-child(even) {
    background-color: rgba(42, 42, 42, 0.3);
}

#logTable tbody tr:hover {
    background-color: #f1f5f9;
    transform: scale(1.01);
}

body.dark-theme #logTable tbody tr:hover {
    background-color: rgba(42, 147, 201, 0.1);
}

#logTable tbody td {
    padding: 14px 12px !important;
    color: var(--text-dark);
    font-size: 0.9rem;
    vertical-align: middle;
}

/* DataTables Custom Styling */
.dataTables_paginate .dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin: 0 4px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: var(--white);
    color: var(--text-dark) !important;
}

.dataTables_paginate .dataTables_paginate .paginate_button.current {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color);
}

.dataTables_paginate .dataTables_paginate .paginate_button:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color);
}

.dataTables_paginate .dataTables_filter input {
    margin-bottom: 12px;
}

.dataTables_paginate .dataTables_info {
    color: var(--text-dark);
    font-size: 0.9rem;
    padding: 16px 0;
}


.table-section {
    position: relative;
}

.table-section .length-control .dataTables_length {
    position: absolute;
    top: 0;
    left: 5px;
}

.table-section .dataTables_wrapper .dataTables_info {
    margin-left: 6px;
}

.table-section .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color);
}

.dataTables_wrapper .dataTables_length select {
    padding: 6px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background: var(--white);
    color: var(--text-dark);
}

/* Dark Theme Support */
body.dark-theme .log-filters-section,
body.dark-theme .log-table-section {
    background: var(--dark-bg);
}

body.dark-theme .log-filter-input {
    background: var(--dark-bg);
    color: var(--text-light);
    border-color: #374151;
}

body.dark-theme #logTable thead {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

body.dark-theme #logTable thead th {
    color: #e2e8f0;
    border-bottom-color: #475569;
}

body.dark-theme #logTable tbody td {
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .log-filters-grid {
        grid-template-columns: 1fr;
    }

    .log-search-btn {
        width: 100%;
    }
}


/* Loading Text */
.loader-text {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.loader-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Droplet Animation */
.droplets {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 50px;
}

.droplet {
    position: absolute;
    width: 8px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50% 50% 50% 0;
    transform: rotate(45deg);
    opacity: 0;
    animation: dropletFall 2.5s ease-in infinite;
}

.droplet:nth-child(1) {
    left: 40%;
    animation-delay: 0s;
}

.droplet:nth-child(2) {
    left: 50%;
    animation-delay: 0.5s;
}

.droplet:nth-child(3) {
    left: 60%;
    animation-delay: 1s;
}

@keyframes dropletFall {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 50px;
        opacity: 0;
    }
}

/* Monitoring Stats */
.loader-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    animation: iconPulse 2s ease-in-out infinite;
}

.stat-icon.blue {
    background: rgba(37, 99, 235, 0.3);
    color: #60a5fa;
}

.stat-icon.green {
    background: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.stat-icon.orange {
    background: rgba(251, 146, 60, 0.3);
    color: #fb923c;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.stat-label {
    font-size: 11px;
    color: var(--bs-gray-200);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.menu-item.active {
    background-color: #e8f4fb;
    color: #2a93c9;
    border-left: 4px solid #2a93c9;
    transition: all 0.3s ease;
}

.header-breadcrumb {
    width: max-content;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.blue {
    background-color: rgba(42, 147, 201, 0.15);
    color: #2a93c9;
}

.stat-icon.green {
    background-color: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.stat-icon.red {
    background-color: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.stat-icon.orange {
    background-color: rgba(250, 168, 49, 0.15);
    color: #faa831;
}

.stat-title {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #404344;
}

.charts-container {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); */
    grid-template-columns: 69% 30%;
    gap: 20px;
}

.chart-box {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #404344;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

body.dark-theme .stat-card {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .chart-box {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .stat-title {
    color: #b0b0b0;
}

body.dark-theme .stat-value {
    color: #f5f5f5;
}

body.dark-theme .chart-title {
    color: #f5f5f5;
}

@media (max-width: 768px) {
    .stat-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .stat-card {
        padding: 16px;
    }

    .charts-container {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 24px;
    }
}

/* login-page */

/* Theme Toggle Button */

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 20px;
    color: #73a5c0;
    transition: transform 0.3s ease;
}


.wrapper {
    display: flex;
    height: 100vh;
}

/* Left Side - Abstract Data Visualization */
.wrapper .left-panel {
    flex: 1;
    background: linear-gradient(135deg, #52a7d3e0 0%, #2a93c9 50%, #7dbfe180 100%);
    position: relative;
    overflow: hidden;
}

/* Floating Orbs Background */
.wrapper .orb-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.wrapper .orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    animation: float 15s infinite ease-in-out;
}

.wrapper .orb1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.wrapper .orb2 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: -50px;
    animation-delay: 3s;
}

.wrapper .orb3 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 20%;
    animation-delay: 6s;
}


.wrapper .tank-monitor {
    background: rgb(250 250 250 / 26%);
    border: 1px solid rgb(255 255 255 / 39%);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wrapper .tank-monitor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #2a93c996, transparent);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.wrapper .tank-id {
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

.wrapper .tank-visual {
    width: 75px;
    height: 120px;
    margin: 0 auto 10px;
    position: relative;
    border: 2px solid rgb(255 255 255 / 67%);
    border-radius: 5px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 255, 255, 0.1) 100%);
    overflow: hidden;
    /* Liquid ko tank ke bahar jane se rokne ke liye */
}

.wrapper .liquid-level {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, #00f2ff, #00d4ff);
    border-radius: 0 0 3px 3px;
    height: 0%;
    /* Start empty */
    animation: fill-tank-anim 2.5s ease-out forwards;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
    /* Glow effect */
}

.wrapper .liquid-level::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -50%;
    width: 200%;
    height: 20px;
    border-radius: 40%;
    animation: wave-move 3s infinite linear;
}


@keyframes fill-tank-anim {
    from {
        height: 0%;
    }

    to {
        height: 70%;
    }

    /* Yahan aap apna target percentage (e.g. 70%) set karein */
}

@keyframes wave-move {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Progress Ring Animation (Pehle wala) */
.wrapper .progress-ring-circle {
    transition: stroke-dashoffset 0.35s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    animation: fill-progress 2s ease-out forwards;
}

@keyframes fill-progress {
    from {
        stroke-dashoffset: 327;
    }

    to {
        stroke-dashoffset: 65;
    }
}

.tank-monitor:nth-child(1) .liquid-level {
    height: 85%;
}

.tank-monitor:nth-child(2) .liquid-level {
    height: 80%;
    background: linear-gradient(to top, #4CAF50, #66BB6A);
}

.tank-monitor:nth-child(3) .liquid-level {
    height: 40%;
    background: linear-gradient(to top, #FF9800, #FFB74D);
}

.tank-monitor:nth-child(4) .liquid-level {
    height: 60%;
    background: linear-gradient(to top, #9C27B0, #BA68C8);
}

.tank-monitor:nth-child(5) .liquid-level {
    height: 50%;
    background: linear-gradient(to top, #F44336, #EF5350);
}

.tank-monitor:nth-child(6) .liquid-level {
    height: 90%;
    background: linear-gradient(to top, #3F51B5, #5C6BC0);
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

.wrapper .main-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    color: white;
}

/* Modern Title */
.wrapper .title-section {
    text-align: center;
    margin-bottom: 60px;
}

.wrapper .title-section h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.wrapper .title-section p {
    font-size: 20px;
    opacity: 0.95;
    font-weight: 300;
}

/* Abstract Gauge Visualization */
.wrapper .gauge-display {
    width: 100%;
    max-width: 600px;
    margin-bottom: 50px;
}

.wrapper .gauge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.wrapper .gauge-item {
    background: rgb(64 67 68 / 21%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.wrapper .gauge-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.wrapper .circular-progress {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}

.wrapper .progress-ring {
    transform: rotate(-90deg);
}

.wrapper .progress-ring-circle {
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wrapper .progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 700;
}

.wrapper .gauge-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
    font-weight: 600;
}

/* Feature Highlights */
.wrapper .features-row {
    display: flex;
    gap: 25px;
    width: 100%;
    max-width: 600px;
}

.wrapper .feature-box {
    flex: 1;
    background: rgb(53 118 154 / 32%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.wrapper .feature-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.wrapper .feature-icon {
    font-size: 40px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.wrapper .feature-icon i {
    color: #faa831;
}

.wrapper .feature-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.wrapper .feature-desc {
    font-size: 12px;
    opacity: 0.9;
}

/* Right Side - Modern Login */
.wrapper .right-panel {
    flex: 0 0 550px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 70px;
    position: relative;
    overflow: hidden;
}

/* Decorative Elements */
.wrapper .deco-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #55a9d4, #3397cb);
    opacity: 0.08;
}

.wrapper .deco1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
}

.wrapper .deco2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
}

.wrapper .login-box {
    position: relative;
    z-index: 5;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

/* Logo */
.wrapper .logo-box {
    text-align: center;
    margin-bottom: 50px;
}

.wrapper .logo-symbol {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 24px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    position: relative;
}

.wrapper .logo-symbol::after {
    content: '';
    position: absolute;
    inset: 8px;
    background: white;
    border-radius: 18px;
}

.wrapper .logo-inner {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.wrapper .brand-text {
    font-size: 48px;
    font-weight: 900;
    color: #1a1a2e;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.wrapper .brand-text .accent {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wrapper .brand-sub {
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Welcome */
.wrapper .welcome-box {
    margin-bottom: 45px;
}

.wrapper .welcome-box h2 {
    font-size: 34px;
    color: #1a1a2e;
    margin-bottom: 12px;
    font-weight: 800;
}

.wrapper .welcome-box p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}

/* Form Fields */
.wrapper .field-box {
    margin-bottom: 30px;
}

.wrapper .field-label {
    display: block;
    margin-bottom: 12px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
}

.wrapper .input-box {
    position: relative;
}

.wrapper .field-input {
    width: 100%;
    padding: 18px 22px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    font-weight: 500;
}

.wrapper .field-input:focus {
    outline: none;
    border-color: #52a7d3;
    background: white;
    box-shadow: 0 0 0 6px rgb(54 153 203 / 5%);
    transform: translateY(-2px);
}

.wrapper .eye-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 22px;
    color: #cbd5e1;
    transition: color 0.3s;
}

.wrapper .eye-toggle:hover {
    color: #399bcd;
}

/* Options Row */
.wrapper .options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.wrapper .checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wrapper .checkbox-wrapper input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #399bcd;
}

.wrapper .checkbox-wrapper label {
    font-size: 15px;
    color: #64748b;
    cursor: pointer;
    font-weight: 600;
}

.wrapper .forgot-pass {
    color: #399bcd;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s;
}

.wrapper .forgot-pass:hover {
    color: #faa831;
}

/* Submit Button */
.wrapper .submit-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #2a93c9bf, #2a93c9);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 6px 8px rgb(87 170 212 / 47%);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wrapper .submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 3px 7px 20px rgb(42 147 201);
}

.wrapper .submit-btn:active {
    transform: translateY(-2px);
}

/* Help Section */
.wrapper .help-box {
    margin-top: 45px;
    text-align: center;
    padding-top: 35px;
    border-top: 2px solid #e2e8f0;
}

.wrapper .help-box p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.wrapper .help-box a {
    color: #3699cc;
    text-decoration: none;
    font-weight: 800;
    transition: color 0.3s;
}

.wrapper .help-box a:hover {
    color: #faa831;
}




.wrapper .field-input {
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 12px;
}

.wrapper .field-box {
    margin-bottom: 24px;
}

.wrapper .help-box {
    margin-top: 30px;
    padding-top: 24px;
}

.wrapper .eye-toggle {
    font-size: 18px;
}


/* OTP Verification Styles */
.otp-page {
    display: none;
}

.otp-page.active {
    display: block;
}

.login-page.hidden {
    display: none;
}

.otp-title {
    text-align: center;
    margin-bottom: 10px;
}

.otp-title h2 {
    color: var(--text-dark);
    font-size: 28px;
    margin: 0 0 10px;
    font-weight: 700;
}

.otp-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 30px;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #1e293b;
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #2a93c9;
    background: #ffffff;
}

.resend-section {
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-light);
    font-size: 14px;
}

.resend-link {
    color: var(--accent-color);
    cursor: pointer;
    text-decoration: none;
}

.resend-link:hover {
    text-decoration: underline;
}

.resend-timer {
    color: var(--accent-color);
    font-weight: 600;
}

.logo-box img {
    margin-bottom: 20px;
    height: 60px;
}

/* ===== DARK THEME STYLES ===== */


body.dark-theme .left-panel {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e3a52 100%);
}

body.dark-theme .right-panel {
    background: #1e293b;
}

body.dark-theme .welcome-box h2 {
    color: #f1f5f9;
}

body.dark-theme .welcome-box p {
    color: #94a3b8;
}

body.dark-theme .field-label {
    color: #cbd5e1;
}

body.dark-theme .field-input {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-theme .field-input:focus {
    background: #1e293b;
    border-color: #2a93c9;
}

body.dark-theme .checkbox-wrapper label {
    color: #94a3b8;
}

body.dark-theme .help-box {
    border-top-color: #334155;
}

body.dark-theme .help-box p {
    color: #94a3b8;
}

body.dark-theme .deco-circle {
    opacity: 0.05;
}

body.dark-theme .logo-box img:not(.logo-white) {
    display: none;
}


body.dark-theme .logo-white {
    display: flex;
}

body.dark-theme .theme-toggle {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .theme-toggle:hover {
    background: rgba(30, 41, 59, 0.8);
}

body.dark-theme .otp-input {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-theme .otp-input:focus {
    background: #1e293b;
    border-color: #2a93c9;
}

body.dark-theme .otp-title h2 {
    color: #f1f5f9;
}

body.dark-theme .otp-subtitle {
    color: #94a3b8;
}

.dark-theme .logo-box {
    display: flex;
    justify-content: center;
}

.dark-theme .logo-box img {
    margin-bottom: 20px;
    height: 70px;
}

.logo-box .logo-white {
    display: none;
}

@media (max-width: 1200px) {
    .wrapper {
        flex-direction: column;
    }

    .wrapper .left-panel {
        flex: 0 0 45vh;
    }

    .wrapper .right-panel {
        flex: 1;
        padding: 30px 24px;
    }

    .gauge-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .wrapper .title-section h1 {
        font-size: 40px;
    }

    .wrapper .left-panel {
        display: none;
    }
}

@media (max-width: 768px) {
    .wrapper .gauge-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .wrapper .circular-progress {
        width: 80px;
        height: 80px;
    }

    .wrapper .progress-value {
        font-size: 20px;
    }

    .wrapper .features-row {
        flex-direction: column;
    }

    .wrapper .submit-btn {
        padding: 14px;
        border-radius: 8px;
        font-size: 16px;
    }

    .wrapper .logo-box img {
        height: 55px;
    }

    .wrapper .logo-box {
        margin-bottom: 20px;
    }

    .wrapper .welcome-box {
        margin-bottom: 30px;
        text-align: center;
    }
}

/* Calendar ka container */
.flatpickr-calendar {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    width: 320px !important;
    /* Calendar ki width badhayi */
}

.flatpickr-innerContainer {
    display: block !important;
}

/* Header (Month aur Year) ka design */
.flatpickr-current-month {
    font-size: 1.5rem !important;
    /* Month ka size bada */
    color: #333;
}

/* Selected Date ka color (#2a93c9) */
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #2a93c9 !important;
    border-color: #2a93c9 !important;
    color: #fff !important;
}

/* Date cells ka size aur font */
.flatpickr-day {
    height: 36px !important;
    line-height: 36px !important;
    font-size: 1rem !important;
    font-weight: 500;
    max-width: 36px !important;
    margin: 2px;
    border-radius: 4px !important;
}

/* Hover effect */
.flatpickr-day:hover {
    background: #e1f0f7 !important;
    color: #2a93c9;
}

/* Weekdays (Mo, Tu, We...) ka design */
span.flatpickr-weekday {
    font-weight: bold;
    color: #666;
    font-size: 1rem;
}

/* "Today" highlight color */
.flatpickr-day.today {
    border-color: #2a93c9 !important;
    color: #2a93c9;
}

.flatpickr-current-month {
    font-size: 16px !important;
    background: #f3f3f3b5;
}

/* Input field styling */
.filter-input.date {
    padding: 12px 12px;
    border: 2px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

#alarmTable thead tr th {
    white-space: pre;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8f0f5 100%);
    color: #334155;
}

.dark-theme #alarmTable thead tr th {
    white-space: pre;
    background: linear-gradient(135deg, #afafaf 0%, #e8f0f5 100%);
    color: #334155;
}


.dataTables_wrapper .dataTables_filter input {
    border-radius: 10px;
    padding: 8px;
}

.table-wrapper tbody tr:hover {
    box-shadow: unset;
}

.table-wrapper tbody tr:hover td {
    color: #000000;
}

.dataTables_wrapper .dataTables_length select {
    background-color: #0c0c0b12;
    border-radius: 4px;
    padding: 6px 6px;
}

.dark-theme .chart-card {
    background: #2a2a2a;
}

.dark-theme .chart-card h5 {
    color: #ebebeb;
}

/* Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--white);
    border-right: 1px solid var(--border-light);
    padding: 16px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar.hidden {
    transform: translateX(-100%);
    position: absolute;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 999;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.logo-text.logo-white img {
    height: 50px;
}

.dark-theme .logo-text.dark-theme-logo img {
    height: 58px;
}

.white .dark-theme-logo {
    display: none;
}

.dark-theme .logo-text.logo-white img {
    display: none;
}

.white.dark-theme .dark-theme-logo {
    display: flex;
}

#alarmTable_filter,
#alarmTable_length,
#alarmTable_info {
    padding: 10px;
}

.menu-section {
    margin-bottom: 30px;
}

.menu-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-left: 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-dark);
    text-decoration: none;
}

.menu-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.menu-item.active {
    background-color: var(--primary-color);
    color: white;
}

.menu-item i {
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
}

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

.breadcrumb {
    font-size: 15px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-dark);
    transition: color 0.3s;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.user-name {
    font-size: 13px;
    color: var(--text-dark);
}

.user-role {
    font-size: 11px;
    color: var(--text-light);
}


/* CSS */
.avatar-wrapper {
    position: relative;
}

.logout-dropdown {
    display: none;
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    min-width: 110px;
    overflow: hidden;
}

/* Hover pe show ho */
.avatar-wrapper:hover .logout-dropdown {
    display: block;
}

.logout-dropdown.show {
    display: block;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #e53935;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s;
}

.logout-btn:hover {
    background: #fef2f2;
}

/* Page Content */
.page-content {
    padding: 24px;
}

.insights-wrap .table-section {
    padding: 20px;
}

/* .page-title {
      font-size: 28px;
      font-weight: 700;
      margin-bottom: 16px;
      color: var(--text-dark);
  } */

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.stat-card.secondary {
    border-left-color: var(--secondary-color);
}

/* .stat-label {
      font-size: 12px;
      color: var(--text-light);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 8px;
  }*/

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Filters Section */
.filters-section {
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-input,
.filter-select,
.daterange-input {
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background-color: var(--white);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    width: 100%;
}

.filter-input:hover,
.filter-select:hover,
.daterange-input:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(42, 147, 201, 0.2);
}

.filter-input:focus,
.filter-select:focus,
.daterange-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(42, 147, 201, 0.15);
}


body.dark-theme .daterangepicker {
    background-color: #1e1e1e !important;
    border: 1px solid #000000 !important;
    color: #a1a1a1 !important;
}

.daterangepicker .calendar-table th,
.daterangepicker .calendar-table td {
    border: 1px solid #0000001f;
}

body.dark-theme .daterangepicker td.available:hover,
body.dark-theme .daterangepicker th.available:hover {
    background-color: #2c2c3e !important;
    color: #fff;
}

body.dark-theme .daterangepicker .drp-buttons {
    border-top: 1px solid #3f3f3f;
}

body.dark-theme .daterangepicker td.active,
body.dark-theme .daterangepicker td.active:hover {
    background-color: #4dabf7 !important;
    color: #fff !important;
}

body.dark-theme .daterangepicker td.off,
body.dark-theme .daterangepicker td.off.in-range,
body.dark-theme .daterangepicker td.off.start-date,
body.dark-theme .daterangepicker td.off.end-date {
    background-color: #1a1a1a;
    border-color: transparent;
    color: #ffffff;
}


body.dark-theme .daterangepicker .calendar-table {
    border: 1px solid #575757;
    border-radius: 4px;
    background-color: #454545;
}


input[type="number"] {
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background-color: var(--white);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    width: 100%;
}

input[type="number"]:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(42, 147, 201, 0.2);
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(42, 147, 201, 0.15);
}

.buttons-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.categories .btn.btn-submit {
    padding: 14px 20px;
}



.btn-submit {
    background-color: var(--primary-color);
    color: white;
}

.btn-delete {
    background: linear-gradient(135deg, #ef5350, #e53935);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #ef5350, #e53935);
    box-shadow: 0 4px 12px rgba(42, 147, 201, 0.3);
}


.menu-item.active {
    background-color: #e8f4fb;
    color: #2a93c9;
    border-left: 4px solid #2a93c9;
    transition: all 0.3s ease;
}

.header-breadcrumb {
    width: max-content;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.blue {
    background-color: rgba(42, 147, 201, 0.15);
    color: #2a93c9;
}

.stat-icon.green {
    background-color: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.stat-icon.red {
    background-color: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.stat-icon.orange {
    background-color: rgba(250, 168, 49, 0.15);
    color: #faa831;
}

.stat-title {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #404344;
}

.charts-container {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); */
    grid-template-columns: 69% 30%;
    gap: 20px;
}

.chart-box {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #404344;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

body.dark-theme .stat-card {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .chart-box {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .stat-title {
    color: #b0b0b0;
}

body.dark-theme .stat-value {
    color: #f5f5f5;
}

body.dark-theme .chart-title {
    color: #f5f5f5;
}

@media (max-width: 768px) {
    .stat-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .stat-card {
        padding: 16px;
    }

    .charts-container {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 24px;
    }
}


.btn-export {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-export:hover {
    background-color: #f59e1f;
    box-shadow: 0 4px 12px rgba(250, 168, 49, 0.3);
}



/* Table */
.table-section {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead.table-header-creative {
    color: white;
}

.table-header-creative th {
    color: white;
    font-weight: 700;
    padding: 18px 15px;
    border-bottom: 3px solid var(--secondary-color);
}

tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

tbody tr:nth-child(odd) {
    background-color: rgba(245, 245, 245, 0.5);
}

body.dark-theme tbody tr:nth-child(odd) {
    background-color: rgb(0 0 0 / 50%) !important;
}

tbody tr:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 147, 201, 0.3);
}

tbody tr:hover .status-badge {
    background-color: var(--secondary-color) !important;
    color: var(--dark-color) !important;
    transform: scale(1.08);
}

.table-condensed tbody td {
    padding: 6px 12px !important;
    transition: all 0.3s ease;
}


.daterangepicker td.available:hover,
.daterangepicker th.available:hover {
    background-color: #eee;
    border-color: transparent;
    color: #000000;
}

.daterangepicker .drp-calendar {
    max-width: 320px !important;
}

.status-running {
    background-color: #e8f5e9;
    color: #2e7d32;
}

body.dark-theme .status-running {
    background-color: rgba(46, 125, 50, 0.2);
    color: #66bb6a;
}

.status-alarm {
    background-color: #ffebee;
    color: #c62828;
}

body.dark-theme .status-alarm {
    background-color: rgba(198, 40, 40, 0.2);
    color: #ef5350;
}



/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Searchable Dropdown */
.search-dropdown-wrapper {
    position: relative;
}

.dropdown-toggle-btn {
    width: 100%;
    padding: 12px 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.dropdown-toggle-btn:hover {
    background-color: #1e5fa0;
    box-shadow: 0 4px 12px rgba(42, 147, 201, 0.3);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    margin-top: 8px;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    display: none;
    min-width: 100%;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-search {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
}

.dropdown-search input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 14px;
    background-color: var(--light-bg);
}

.dropdown-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
}

.dropdown-items {
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding-left: 20px;
    border-left: 3px solid var(--secondary-color);
    font-weight: 600;
}

.dropdown-item.selected {
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(42, 147, 201, 0.8) 100%);
    color: white;
    font-weight: 700;
    border-left: 4px solid var(--secondary-color);
}

.deliveries-container .table-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrapper thead {
    /* background: linear-gradient(135deg, var(--primary-color) 0%, #1e5fa0 100%); */
    color: white;
    /* box-shadow: 0 4px 12px rgba(42, 147, 201, 0.3); */
}

.table-wrapper thead th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 800;
    border-bottom: 3px solid var(--secondary-color);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 13px;
    position: relative;
}

.table-wrapper thead th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 60%;
    background-color: rgba(255, 255, 255, 0.2);
}

#alarmTable_filter table.dataTable thead>tr>th.sorting:after,
#alarmTable_filter table.dataTable thead>tr>th.sorting_asc:after,
#alarmTable_filter table.dataTable thead>tr>th.sorting_desc:after,
#alarmTable_filter table.dataTable thead>tr>th.sorting_asc_disabled:after,
#alarmTable_filter table.dataTable thead>tr>th.sorting_desc_disabled:after,
#alarmTable_filter table.dataTable thead>tr>td.sorting:after,
#alarmTable_filter table.dataTable thead>tr>td.sorting_asc:after,
#alarmTable_filter table.dataTable thead>tr>td.sorting_desc:after,
#alarmTable_filter table.dataTable thead>tr>td.sorting_asc_disabled:after,
#alarmTable_filter table.dataTable thead>tr>td.sorting_desc_disabled:after {
    top: 45%;
    content: "▼";
    content: "▼" / "";
}


#alarmTable_filter table.dataTable thead>tr>th.sorting:before,
#alarmTable_filter table.dataTable thead>tr>th.sorting_asc:before,
#alarmTable_filter table.dataTable thead>tr>th.sorting_desc:before,
#alarmTable_filter table.dataTable thead>tr>th.sorting_asc_disabled:before,
#alarmTable_filter table.dataTable thead>tr>th.sorting_desc_disabled:before,
#alarmTable_filter table.dataTable thead>tr>td.sorting:before,
#alarmTable_filter table.dataTable thead>tr>td.sorting_asc:before,
#alarmTable_filter table.dataTable thead>tr>td.sorting_desc:before,
#alarmTable_filter table.dataTable thead>tr>td.sorting_asc_disabled:before,
#alarmTable_filter table.dataTable thead>tr>td.sorting_desc_disabled:before {
    bottom: 62%;
    content: "▲";
    content: "▲" / "";
}



#grossVolumeTable table.dataTable thead>tr>th.sorting:after,
#grossVolumeTable table.dataTable thead>tr>th.sorting_asc:after,
#grossVolumeTable table.dataTable thead>tr>th.sorting_desc:after,
#grossVolumeTable table.dataTable thead>tr>th.sorting_asc_disabled:after,
#grossVolumeTable table.dataTable thead>tr>th.sorting_desc_disabled:after,
#grossVolumeTable table.dataTable thead>tr>td.sorting:after,
#grossVolumeTable table.dataTable thead>tr>td.sorting_asc:after,
#grossVolumeTable table.dataTable thead>tr>td.sorting_desc:after,
#grossVolumeTable table.dataTable thead>tr>td.sorting_asc_disabled:after,
#grossVolumeTable table.dataTable thead>tr>td.sorting_desc_disabled:after {
    top: 50%;
    content: "▼";
    content: "▼" / "";
}


table.dataTable thead>tr>th.sorting:before,
table.dataTable thead>tr>th.sorting_asc:before,
table.dataTable thead>tr>th.sorting_desc:before,
table.dataTable thead>tr>th.sorting_asc_disabled:before,
table.dataTable thead>tr>th.sorting_desc_disabled:before,
table.dataTable thead>tr>td.sorting:before,
table.dataTable thead>tr>td.sorting_asc:before,
table.dataTable thead>tr>td.sorting_desc:before,
table.dataTable thead>tr>td.sorting_asc_disabled:before,
table.dataTable thead>tr>td.sorting_desc_disabled:before {
    bottom: 50%;
    content: "▲";
    content: "▲" / "";
}

.table-wrapper tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid transparent;
}

.table-wrapper tbody tr:nth-child(odd) {
    background-color: rgba(245, 245, 245, 0.5);
}

body.dark-theme .table-wrapper tbody tr:nth-child(odd) {
    background-color: rgba(42, 42, 42, 0.5);
}

.table-wrapper tbody tr:hover {
    background: linear-gradient(90deg, #ebf1f5 0%, rgb(237 242 245) 100%);
    color: white;
    transform: translateX(4px) scale(1.01);
    box-shadow: unset;
    border-left: 4px solid var(--secondary-color);
}

.dataTables_wrapper .dataTables_paginate {
    padding-bottom: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 4px 12px;
}

.table-wrapper tbody tr:hover td {
    color: rgb(19, 19, 19);
}

.table-wrapper tbody tr:hover .status-badge {
    transform: rotate(3deg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background-color: var(--secondary-color) !important;
    color: #fff !important;
}

.table-wrapper tbody td {
    padding: 18px 15px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.status-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-running {
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

.status-alarm {
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.2);
}

body.dark-theme .status-running {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.4);
}

body.dark-theme .status-alarm {
    background: linear-gradient(135deg, #ef5350 0%, #c62828 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.4);
}

/*.content-area {
      padding: 24px;
      min-height: calc(100vh - 80px);
  }*/

body.dark-theme .state-pill {
    color: #fff;
}

body.dark-theme .table-header {
    border-bottom: 2px solid #454343;
}

body.dark-theme .insights-table tbody td {
    border-bottom: 1px solid #3f3d3d;
}

body.dark-theme .table-footer {
    border-top: 1px solid #3f3d3d;
}

/* Chart Cards */
.chart-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.chart-card h5 {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 20px;
}

.chart-container {
    position: relative;
    height: 300px;
}


.tank-visual-card-wrap {
    display: grid;
    grid-template-columns: 200px 1fr;
}

/* Header alignment */
.data-history-header {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    /* Labels ke sath align karne ke liye */
    /* padding: 10px; */
}

table.dataTable thead>tr>th.sorting:after,
table.dataTable thead>tr>th.sorting_asc:after,
table.dataTable thead>tr>th.sorting_desc:after,
table.dataTable thead>tr>th.sorting_asc_disabled:after,
table.dataTable thead>tr>th.sorting_desc_disabled:after,
table.dataTable thead>tr>td.sorting:after,
table.dataTable thead>tr>td.sorting_asc:after,
table.dataTable thead>tr>td.sorting_desc:after,
table.dataTable thead>tr>td.sorting_asc_disabled:after,
table.dataTable thead>tr>td.sorting_desc_disabled:after {
    top: 52%;
    content: "▼";
    content: "▼" / "";
}



.data-history-table table.dataTable thead>tr>th.sorting:after,
.data-history-table table.dataTable thead>tr>th.sorting_asc:after,
.data-history-table table.dataTable thead>tr>th.sorting_desc:after,
.data-history-table table.dataTable thead>tr>th.sorting_asc_disabled:after,
.data-history-table table.dataTable thead>tr>th.sorting_desc_disabled:after,
.data-history-table table.dataTable thead>tr>td.sorting:after,
.data-history-table table.dataTable thead>tr>td.sorting_asc:after,
.data-history-table table.dataTable thead>tr>td.sorting_desc:after,
.data-history-table table.dataTable thead>tr>td.sorting_asc_disabled:after,
.data-history-table table.dataTable thead>tr>td.sorting_desc_disabled:after {
    top: 82%;
    content: "▼";
    content: "▼" / "";
}

table.dataTable thead th:last-child.sorting:before,
table.dataTable thead th:last-child.sorting:after {
    display: none;
}


#logTable_wrapper table.dataTable thead>tr>th.sorting:after,
#logTable_wrapper table.dataTable thead>tr>th.sorting_asc:after,
#logTable_wrapper table.dataTable thead>tr>th.sorting_desc:after,
#logTable_wrapper table.dataTable thead>tr>th.sorting_asc_disabled:after,
#logTable_wrapper table.dataTable thead>tr>th.sorting_desc_disabled:after,
#logTable_wrapper table.dataTable thead>tr>td.sorting:after,
#logTable_wrapper table.dataTable thead>tr>td.sorting_asc:after,
#logTable_wrapper table.dataTable thead>tr>td.sorting_desc:after,
#logTable_wrapper table.dataTable thead>tr>td.sorting_asc_disabled:after,
#logTable_wrapper table.dataTable thead>tr>td.sorting_desc_disabled:after {
    top: 52%;
    content: "▼";
    content: "▼" / "";
}

.table-live-warp table.dataTable thead>tr>th.sorting:after,
.table-live-warp table.dataTable thead>tr>th.sorting_asc:after,
.table-live-warp table.dataTable thead>tr>th.sorting_desc:after,
.table-live-warp table.dataTable thead>tr>th.sorting_asc_disabled:after,
.table-live-warp table.dataTable thead>tr>th.sorting_desc_disabled:after,
.table-live-warp table.dataTable thead>tr>td.sorting:after,
.table-live-warp table.dataTable thead>tr>td.sorting_asc:after,
.table-live-warp table.dataTable thead>tr>td.sorting_desc:after,
.table-live-warp table.dataTable thead>tr>td.sorting_asc_disabled:after,
.table-live-warp table.dataTable thead>tr>td.sorting_desc_disabled:after {
    top: 52%;
    content: "▼";
    content: "▼" / "";
}

/* Dropdown Container */
.export-dropdown {
    position: relative;
    display: inline-block;
}

.categories {
    gap: 16px;
    display: flex;
}

.ellipsis-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px 12px;
    color: #ffffff;
    background-color: #2a93c9;
    border-radius: 6px;
    width: 44px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hidden Export Menu */
.export-menu {
    display: none;
    /* Default hidden */
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-radius: 4px;
    padding: 8px 0;
}

/* Menu dikhane ke liye class */
.export-menu.show {
    display: flex;
    flex-direction: column;
}

/* Buttons inside menu */
.btn-export {
    background: none;
    border: none;
    padding: 10px 15px;
    text-align: left;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-export:hover {
    background-color: #f5f5f5;
    color: #007bff;
}


.data-system {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    width: 72%;
}


#alarmTable .table-header-creative tr th:last-child::before,
#alarmTable .table-header-creative tr th:last-child::after {
    display: none;
}


.main-content {
    flex: 1;
    /* margin-left: 260px; */
    transition: margin-left 0.3s ease;
}

.page-content {
    padding: 20px;
}


#addUserForm {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.breadcrumb-section {
    padding: 1rem 2rem;
    background-color: var(--white);
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-text a:hover {
    text-decoration: underline;
}

.table-hover>tbody>tr:hover>* {
    --bs-table-accent-bg: var(--bs-table-hover-bg);
    color: #ffffff;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.add-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.add-btn:hover {
    background-color: #1e5fa0;
    box-shadow: 0 4px 12px rgba(42, 147, 201, 0.3);
}

/* Table Styles */
.table-container {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: auto;
}

.table {
    margin-bottom: 0;
    color: var(--text-dark);
}

/* .table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e5fa0 100%);
    color: white;
} */

.table thead th {
    padding: 14px !important;
    font-weight: 700;
    border-bottom: 2px solid #e7eaec;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 15px;
    white-space: pre;
    background: linear-gradient(135deg, #fdfdfd 0%, #e8f0f5 100%);
    color: var(--text-dark);
}

body.dark-theme .table thead th {
    background: linear-gradient(135deg, #2a2a2a 0%, #57595a 100%);
    color: var(--text-dark);
}

.table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.table tbody tr:nth-child(odd) {
    background-color: rgba(245, 245, 245, 0.5);
}

body.dark-theme .table tbody tr:nth-child(odd) {
    background-color: rgba(42, 42, 42, 0.5);
}

.table tbody tr:hover {
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(42, 147, 201, 0.9) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 147, 201, 0.3);
}

/* .table tbody td {
    padding: 10px !important;
    vertical-align: middle;
    transition: all 0.3s ease;
} */

.table tbody tr:hover .edit-btn {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
    color: white;
}

.status-inactive {
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
    color: white;
}

.edit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.edit-btn:hover {
    background-color: #1e5fa0;
}

/* Modal Styles */
.modal-content {
    background-color: var(--white);
    border: none;
    border-radius: 12px;
}

.modal-body.domain-form #addUserForm {
    grid-template-columns: repeat(1, 1fr);
}

.modal-header {
    background-color: var(--white);
    border-bottom: 2px solid var(--border-light);
    padding: 1.1rem;
}



.btn-close {
    background-color: #fff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.live-tank-data .filters-section {
    display: flex;
    gap: 20px;
}

.modal-body {
    padding: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.50rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(42, 147, 201, 0.15);
    outline: none;
}

.modal-footer {
    padding: 14px;
    border-top: 2px solid var(--border-light);
}

.btn-save {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e5fa0 100%);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save:hover {
    box-shadow: 0 6px 16px rgba(42, 147, 201, 0.4);
}

.btn-close-modal {
    background-color: #ef5350;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-close-modal:hover {
    background-color: #e53935;
}



body.dark-theme {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/*
  .content-area {
      padding: 32px;
      min-height: calc(100vh - 80px);
      animation: fadeIn 0.6s ease-out;
  }*/

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    /* -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text; */
    letter-spacing: -1px;
}

.change-password-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e5fa0 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(42, 147, 201, 0.3);
    position: relative;
    overflow: hidden;
}

.change-password-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.change-password-btn:hover::before {
    width: 300px;
    height: 300px;
}

.change-password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 147, 201, 0.5);
}

.profile-container {
    max-width: 100%;
    margin: 0 auto;
    animation: scaleIn 0.6s ease-out 0.2s both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.profile-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

.profile-card:hover {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e5fa0 100%);
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.avatar-section {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 50%;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    border: 6px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    font-family: 'Space Mono', monospace;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.profile-name-section {
    color: white;
}

.profile-username {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.profile-role {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.profile-details {
    padding: 24px;
    margin-top: 0px;
    position: relative;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.detail-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 32px;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e5fa0 100%);
    opacity: 0.1;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.detail-card:hover::before {
    opacity: 0.05;
}

.detail-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(42, 147, 201, 0.15);
}

.detail-card>* {
    position: relative;
    z-index: 1;
}

.detail-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e5fa0 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.detail-card:hover .detail-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(42, 147, 201, 0.4);
}

.detail-icon i {
    font-size: 1.5rem;
    color: white;
}

.detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    word-break: break-word;
    line-height: 1.4;
}



/* Assign Rights Modal Styles */
#assignRightsModal .modal-dialog {
    max-width: 500px;
}

.rights-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rights-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#assignRightsModal .section-header {
    font-weight: 600;
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.form-check .form-check-input {
    float: left;
    margin-left: 0.5em;
}

.form-check {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    border: 2px solid #d1d5db;
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

body.dark-theme .form-check-label {
    color: var(--text-light);
}

body.dark-theme .section-header {
    color: #9ca3af;
    border-bottom-color: #374151;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /*  .content-area {
          padding: 1rem;
      }*/
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem !important;
    }

    #addUserForm {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* Filters Section - TOP Layout */
.filters-section {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e1e1;
}

.filters-header {
    border-bottom: 2px solid #d8d8d8;
}


.filters-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.filters-header h3 i {
    color: var(--primary-color);
    font-size: 20px;
}

.reset-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-light);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reset-btn:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* State Pills - Horizontal Layout */
.state-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    white-space: nowrap;
    overflow: auto;
    padding: 4px 4px;
}

.state-pill {
    background: var(--light-bg);
    border: 2px solid transparent;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.state-pill:hover {
    background: rgba(42, 147, 201, 0.1);
    border-color: var(--primary-color);
}

.state-pill.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 147, 201, 0.3);
}

.state-pill .pill-name {
    font-weight: 600;
}

.state-pill .pill-count {
    background: rgb(255 255 255 / 80%);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.state-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Table Section - BOTTOM */
.table-section {
    background: var(--white);
    border-radius: 16px;
    padding: 4px;
    box-shadow: var(--shadow);
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-bg);
}

.table-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-title i {
    color: var(--primary-color);
}

.search-wrapper {
    position: relative;
    width: 350px;
}

.search-input {
    width: 100%;
    padding: 10px 45px 10px 16px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(42, 147, 201, 0.1);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

/* Modern Table Design */
.insights-table-wrapper {
    overflow-x: auto;
}

.insights-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.insights-table thead th {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8f0f5 100%);
    color: var(--text-dark);
    font-weight: 600;
    padding: 16px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
}

.insights-table thead th:first-child {
    border-top-left-radius: 12px;
}

.insights-table thead th:last-child {
    border-top-right-radius: 12px;
}

.insights-table thead th i {
    margin-left: 6px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
}

.insights-table tbody td {
    padding: 18px 16px;
    border-bottom: 1px solid var(--light-bg);
    font-size: 14px;
    color: var(--text-dark);
}

.insights-table tbody tr {
    transition: all 0.2s;
}

.insights-table tbody tr:hover {
    background: rgba(42, 147, 201, 0.04);
    transform: scale(1.002);
}

.insights-table tbody tr:last-child td {
    border-bottom: none;
}

.insights-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.insights-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* RO Name Styling */
.ro-name-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.ro-name-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}


.system-details .section-header {
    background: var(--white);
    border-left: 5px solid var(--primary-color);
    padding: 15px 25px;
    border-radius: 10px;
    margin: 24px 0 20px;
    box-shadow: var(--shadow);
}


.menu-item.active {
    background-color: #e8f4fb;
    color: #2a93c9;
    border-left: 4px solid #2a93c9;
    transition: all 0.3s ease;
}

.section-header h2 {
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    font-size: 20px;
    color: var(--primary-color);
}

.dark-theme .table-box-header {
    background: var(--white);
}

.dark-theme #dateRange {
    background-color: #404040 !important;
}

.dark-theme .card-dark-theme {
    background-color: #292929;
}

.dark-theme table.dataTable tbody tr:hover {
    background: rgb(52 52 52) !important;
}

.dark-theme .doc-sidebar {
    background: #000000;
}

.doc-endpoint-body {
    background: #010101;
    border: 1px solid #3d3e3e;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

/* Unique Card Design */
.stat-card {
    background: var(--white);
    border-radius: 20px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-light);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(42, 147, 201, 0.05), transparent);
    border-radius: 0 20px 0 100%;
    transition: all 0.4s;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(42, 147, 201, 0.15);
}

.stat-card:hover::before {
    width: 150px;
    height: 150px;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    transition: all 0.3s;
}

.stat-card:hover .card-icon {
    transform: rotate(10deg) scale(1.1);
}

/* Color Variants */
.card-icon.blue {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(42, 147, 201, 0.3);
}

.card-icon.green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.3);
}

.card-icon.red {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(238, 9, 121, 0.3);
}

.card-icon.orange {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(250, 168, 49, 0.3);
}

.card-icon.purple {
    background: var(--dark-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(64, 67, 68, 0.3);
}

.card-icon.cyan {
    background: linear-gradient(135deg, #13547a 0%, #80d0c7 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(19, 84, 122, 0.3);
}

/* Card Content */
.card-title {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.card-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.card-label {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
}

/* Status Badge */
/* .status-badge {
            position: absolute;
            top: 20px;
            right: 20px;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            z-index: 1;
        } */

.status-badge.online {
    background: rgba(17, 153, 142, 0.15);
    color: #11998e;
}

.status-badge.offline {
    background: rgba(238, 9, 121, 0.15);
    color: #ee0979;
}

.status-badge.alarm {
    background: rgba(250, 168, 49, 0.15);
    color: var(--secondary-color);
}

.status-badge.water {
    background: rgba(19, 84, 122, 0.15);
    color: #13547a;
}


/* Pulse Animation for Active Items */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.stat-card:hover .status-badge {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /*body {
          padding: 15px;
      }*/

    .page-header {
        padding: 20px;
        border-radius: 15px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
        border-radius: 15px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        border-radius: 12px;
    }

    .card-value {
        font-size: 36px;
    }

    .card-title {
        font-size: 11px;
    }

    .card-label {
        font-size: 13px;
    }

    .section-header {
        padding: 12px 20px;
        margin: 30px 0 15px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .status-badge {
        top: 15px;
        right: 15px;
        padding: 4px 10px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 15px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .card-value {
        font-size: 28px;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

.stat-card:nth-child(5) {
    animation-delay: 0.5s;
}

.stat-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Status Dots */
.status-cell {
    text-align: center;
}

.status-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.status-dot:hover {
    transform: scale(1.3);
}

.status-green {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    animation: zoomPulse 1.2s infinite ease-in-out;
}

.status-red {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
}

.status-yellow {
    background: linear-gradient(135deg, #faa831 0%, #f9a825 100%);
}


.page-header {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ro-master-wrap .page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    width: 100%;
    justify-content: space-between;
    margin: 0;
}



.btn-back {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: #e89620;
    transform: translateY(-2px);
    color: white;
}

/* Accordion Styles */
.form-container {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.accordion {
    margin-bottom: 20px;
}

.accordion-item {
    border: 2px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.accordion-item:hover {
    border-color: var(--primary-color);
}

.accordion-header {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8f0f5 100%);
    padding: 16px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #e8f0f5 0%, #d0e7f5 100%);
}

.accordion-header.active {
    background: var(--primary-color);
    color: white;
}

.accordion-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.accordion-icon {
    font-size: 16px;
    transition: transform 0.3s;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 25px;
}

.accordion-content.active {
    max-height: 100%;
    padding: 25px;
    background: var(--white);
}

.dark-theme .accordion-header {
    background: linear-gradient(135deg, var(--light-bg) 0%, #434343 100%) !important;
}

.dark-theme .temp-sensor-table thead tr th {
    background: linear-gradient(135deg, var(--light-bg) 0%, #353535 100%);
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-control {
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(42, 147, 201, 0.1);
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--light-bg);
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    background: #1f7ba8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 147, 201, 0.4);
}

.btn-reset {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reset:hover {
    background: #e89620;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1f7ba8 100%);
    color: white;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px 16px 0 0;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 1.3rem;
}


.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-bg);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.modal-data-item {
    padding: 12px 15px;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.modal-data-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
}

.modal-data-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid var(--light-bg);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-modal-confirm {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-modal-confirm:hover {
    background: #1f7ba8;
}

.btn-modal-cancel {
    background: #ef5350;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-modal-cancel:hover {
    background: #e53935;
}

/* Responsive */
@media (max-width: 968px) {
    .main-content {
        margin-left: 0;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-data-grid {
        grid-template-columns: 1fr;
    }
}

.sensor-table-data {
    overflow: auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.50rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(42, 147, 201, 0.15);
    outline: none;
}



.btn-save {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e5fa0 100%);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save:hover {
    box-shadow: 0 6px 16px rgba(42, 147, 201, 0.4);
}

.btn-close-modal {
    background-color: #ef5350;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-close-modal:hover {
    background-color: #e53935;
}

.dark-theme .table-hover>tbody>tr:hover>* {
    --bs-table-accent-bg: var(--bs-table-hover-bg);
    color: #ffffff;
}

.dark-theme .table tbody td {
    color: rgb(255, 255, 255);
}

.table-hover>tbody>tr:hover>* {
    color: rgb(255, 255, 255) !important;
}

.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 15px 30px;
    margin-left: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-dark);
}

/* .page-title {
      font-size: 28px;
      font-weight: 700;
      display: flex;
      justify-content: space-between;
      align-items: center;
  } */

.dashboard-wrapper.master-dashboard-page .form-page.active {
    width: 100%;
    padding: 24px;
}

/* .btn-add {
      background: linear-gradient(135deg, var(--primary-color), #1e5fa0);
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: 6px;
      font-weight: 600;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.3s;
  } */

/* .btn-add:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(42, 147, 201, 0.4);
      color: white;
  } */

/* Table */
.table-container {
    background-color: var(--white);
    border-radius: 12px;
    overflow: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table {
    margin-bottom: 0;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color), #1e5fa0);
    color: white;
}

.table thead th {
    padding: 18px 15px;
    font-weight: 700;
    border-bottom: 3px solid var(--secondary-color);
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.table tbody tr:hover .status-badge {
    background-color: var(--secondary-color) !important;
    color: var(--dark-color) !important;
}

.table tbody td {
    padding: 14px 15px;
    vertical-align: middle;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s;
    text-transform: uppercase;
}

.status-active {
    background: linear-gradient(135deg, #81c784, #66bb6a);
    color: white;
}

.status-inactive {
    background: linear-gradient(135deg, #ef5350, #e53935);
    color: white;
}

/*.btn-edit {
      background-color: var(--primary-color);
      color: white;
      border: none;
      padding: 10px 28px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 600;
      transition: all 0.3s;
  }*/

.btn-edit:hover {
    background-color: #1e5fa0;
    color: #fff;
}



.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-control {
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background-color: var(--white);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(42, 147, 201, 0.15);
    outline: none;
}

.form-control:hover {
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-section-title {
    font-weight: 700;
    font-size: 16px;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.btn-save {
    background: linear-gradient(135deg, var(--primary-color), #1e5fa0);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 147, 201, 0.4);
}

.btn-cancel {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background-color: #e69500;
}


/*  date 
*/

.filter-input.date {
    padding: 12px 12px;
    border: 2px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Form Page Styles */
.ro-form-page.form-page {
    display: flex;
    width: 100%;
    /* padding: 24px;*/
}

.form-page.active {
    display: block;
}

.form-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.form-page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.btn-page-close {
    background: linear-gradient(135deg, #ef5350, #e53935);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-page-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 83, 80, 0.4);
    color: #fff;
}

.form-page-content {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.form-section {
    margin-bottom: 40px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
    color: var(--text-dark);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
    color: var(--text-dark);
}

.form-control {
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background-color: var(--white);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
    width: 100%;
}

.form-control:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(42, 147, 201, 0.2);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(42, 147, 201, 0.15);
    background-color: var(--white);
}

.form-page-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--border-light);
}

.btn-save {
    background: linear-gradient(135deg, var(--primary-color), #1e5fa0);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 147, 201, 0.4);
}

.temp-sensor-section {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.temp-sensor-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.btn-add-sensor {
    background: linear-gradient(135deg, var(--primary-color), #1e5fa0);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-end;
}



.btn-add-sensor:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 147, 201, 0.3);
}

.sensor-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.sensor-table thead {
    background: linear-gradient(135deg, var(--primary-color), #1e5fa0);
    color: white;
}

.sensor-table th,
.sensor-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.sensor-table th {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
    font-size: 14px;
}

.temp-sensor-table thead tr th {
    padding: 12px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8f0f5 100%);
}

.temp-sensor-table thead {
    border-radius: 10px;
}

@media (max-width: 768px) {


    .form-page-content {
        border-radius: 8px;
        padding: 16px;
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }


    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* .content-area {
          padding: 1rem;
      }*/


    .btn-add-sensor {
        padding: 12px 20px !important;
    }

    .btn-edit {
        padding: 8px 28px;
    }
}

@media (max-width: 480px) {


    .header {
        padding: 1rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem !important;
    }
}


/* Action Icons */
.action-cell {
    text-align: center;
}

.action-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.action-icon {
    color: var(--text-light);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 6px;
    background-color: #8080803b;
    border-radius: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.action-icon:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Table Footer */
.table-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--light-bg);
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 968px) {
    .main-content {
        margin-left: 0;
    }

    .page-content {
        padding: 15px;
    }

    .filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .state-pills {
        flex-direction: column;
        width: 100%;
    }

    .state-pill {
        width: 100%;
        justify-content: space-between;
    }

    .table-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .search-wrapper {
        width: 100%;
    }

    .insights-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .insights-table {
        min-width: 900px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 22px;
    }

    .filters-section,
    .table-section {
        padding: 18px;
        border-radius: 12px;
    }

    .state-pill {
        padding: 10px 18px;
    }
}

/* Dark Theme */
body.dark-theme .insights-table thead th {
    background: var(--dark-color);
}

body.dark-theme .state-pill {
    background: var(--dark-color);
}

body.dark-theme .state-pill:hover {
    background: rgba(42, 147, 201, 0.2);
}

body.dark-theme .search-input {
    background: var(--white);
    color: var(--text-dark);
}

/* live inventary */

.table-live-warp {
    overflow: auto;
}

body.dark-theme .tank-card {
    background: linear-gradient(145deg, #000000 0%, #2f2f2f 100%);
}

body.dark-theme .sensor-card {
    filter: brightness(0.9);
}

body.dark-theme .tank-selector {
    background: #2a2f3e;
    color: #f5f5f5;
    border-color: var(--primary-color);
}

body.dark-theme .metric-item {
    background: rgba(42, 147, 201, 0.15);
}

/* ===== COMMON TABLE CARD ===== */
.table-container {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 18px 10px;
    margin-bottom: 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}


/* ===== HEADER ===== */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.table-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

/* ===== EXPORT BUTTONS ===== */
.export-section {
    display: flex;
    gap: 10px;
}

.export-btn {
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-excel {
    background: #22c55e;
}

.btn-pdf {
    background: #ef4444;
}

.btn-xml {
    background: #f97316;
}

/* ===== DATATABLE RESET ===== */
table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 4px;
}

/* ===== TABLE HEADER ===== */
table.dataTable thead th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    border: none !important;
    padding: 14px 12px;
}

/* Rounded header corners */
table.dataTable thead th:first-child {
    border-top-left-radius: 10px;
}

table.dataTable thead th:last-child {
    border-top-right-radius: 10px;
}

/* ===== TABLE BODY ===== */
/* table.dataTable tbody tr {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 10px;
} */

table.dataTable tbody td {
    padding: 14px 12px;
    border: none !important;
    color: #334155;
}

/* Rounded row corners */
table.dataTable tbody tr td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

table.dataTable tbody tr td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* ===== SEARCH & LENGTH ===== */
.dataTables_wrapper {
    margin-top: 10px;
}

.dataTables_filter input {
    border-radius: 10px;
    border: 1px solid #cbd5f5;
    padding: 6px 10px;
}

.dataTables_length select {
    border-radius: 8px;
    padding: 4px 6px;
}



/* ===== PAGINATION ===== */
.dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    border: none !important;
    padding: 6px 12px;
}

.dataTables_paginate .paginate_button.current {
    background: #a3a3a380 !important;
    color: #fff !important;
}


/* ========== DASHBOARD WRAPPER ========== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.logo-section {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

/* .logo-text img {
            width: 140px;
        } */

.dark-theme-logo {
    display: none;
}

/*body.dark-theme .logo-white {
    display: none;
}*/

body.dark-theme .dark-theme-logo {
    display: block;
}

/* Header */
/* .page-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      padding-bottom: 12px;
      border-bottom: 2px solid var(--border-light);
  } */



.page-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 12px;
    font-size: 30px;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tank-selector-wrapper {
    position: relative;
    min-width: 300px;
}

.tank-selector {
    padding: 0.575rem 1.5rem;
    font-size: 1rem;
    /* font-family: 'Outfit', sans-serif; */
    font-weight: 500;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%232a93c9'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.tank-selector:hover {
    box-shadow: 0 4px 12px rgba(42, 147, 201, 0.2);
    transform: translateY(-2px);
}

/* Tanks Grid */
.tanks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 8px;
}

/* Tank Card */
.tank-card {
    /* background: linear-gradient(145deg, #2d3548 0%, #1f2432 100%); */
    border-radius: 24px;
    padding: 12px 24px 12px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* width:50%; */
}

.tank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tank-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(42, 147, 201, 0.25);
}

.tank-card:hover::before {
    opacity: 1;
}

.tank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.tank-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tank-status {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--sensor-red);
    color: white;
}

.tank-content {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 8px;
    align-items: flex-start;
}

/* 3D Tank Visualization - IMPROVED DESIGN */
.tanks-grid .tank-visual {
    position: relative;
    width: 200px;
    min-height: 300px;
    /* height: 400px; */
}

.tank-3d {
    position: relative;
    width: 100%;
    height: 100%;
}

.tank-container {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 280px;
    background: linear-gradient(145deg, #2d3548 0%, #1f2432 100%);
    border-radius: 20px 20px 8px 8px;
    border: 2px solid #3d4454;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}

/* Dark theme - show empty/unfilled space at top */
body.dark-theme .tank-container {
    background: linear-gradient(180deg, rgba(60, 65, 80, 0.5) 0%, rgba(50, 55, 70, 0.6) 100%);
}

/* Tank Background Grid Pattern */
.tank-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* Water Layer (AT BOTTOM - Blue) - Like Image 2 */
.tank-water {
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #60a5d8 0%, #3b9fc9 50%, #2a93c9 100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    /* overflow: hidden; */
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 999999999999999;
    overflow: visible;
}

/* Product Layer (IN MIDDLE - On top of water - Purple) */
.tank-product {
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #b57ef7 0%, #a855f7 50%, #9333ea 100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    /* overflow: hidden; */
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 999999999;
    overflow: hidden;
}

/* Empty space automatically shows at top (light gray/white) */

/* Animated Waves */
.wave {
    position: absolute;
    top: -20px;
    left: -50%;
    width: 200%;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 45%;
    animation: wave 4s linear infinite;
}

.wave:nth-child(2) {
    top: -15px;
    opacity: 0.5;
    animation: wave 6s linear infinite reverse;
}

.wave:nth-child(3) {
    top: -10px;
    opacity: 0.3;
    animation: wave 5s linear infinite;
}

@keyframes wave {
    0% {
        transform: translateX(0) translateZ(0);
    }

    50% {
        transform: translateX(-25%) translateZ(0);
    }

    100% {
        transform: translateX(-50%) translateZ(0);
    }
}

/* Bubbles Animation */
.bubble {
    position: absolute;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: rise linear infinite;
}

@keyframes rise {
    0% {
        bottom: 0;
        opacity: 0.8;
    }

    100% {
        bottom: 100%;
        opacity: 0;
    }
}

/* Tank Glass Effect */
.tank-glass {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 80%, transparent 100%);
    pointer-events: none;
    z-index: 10;
}

/* Layer Labels - IMPROVED TOOLTIPS */
.layer-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    z-index: 15;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Show labels on layer hover */
.tank-water:hover .layer-label,
.tank-product:hover .layer-label {
    opacity: 1;
}

.tank-water {
    cursor: help;
    position: relative;
}

.tank-product {
    cursor: help;
    position: relative;
}

.layer-label.water-label {
    background: rgba(42, 147, 201, 0.95);
}

.layer-label.product-label {
    background: rgba(147, 51, 234, 0.95);
    top: 80%;
}

/* Water Badge on Top */
.water-percentage-badge {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(42, 147, 201, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}


/* Label text styling */
.layer-label .label-text {
    display: block;
    line-height: 1.4;
}

.layer-label .label-name {
    font-size: 0.7rem;
    opacity: 0.9;
}

.layer-label .label-percentage {
    font-size: 0.85rem;
    font-weight: 800;
}

/* Tank Cap */
.tank-cap {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 30px;
    background: linear-gradient(180deg, #3d4454 0%, #2d3548 100%);
    border-radius: 8px 8px 0 0;
    border: 2px solid #2d3548;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.tank-cap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Scale Marks - LEFT SIDE */
.tank-scale {
    position: absolute;
    left: -4px;
    top: 4px;
    bottom: 20px;
    width: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #8b92a8;
    height: 280px;
}

.scale-mark {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
}

.scale-line {
    width: 12px;
    height: 2px;
    background: #3d4454;
}

/* Tank Metrics */
.tank-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.metric-item {
    background: rgba(59, 130, 246, 0.05);
    padding: 0.75rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

body.dark-theme .metric-item {
    background: rgba(59, 130, 246, 0.1);
}

.metric-item:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: translateX(5px);
}

.metric-label {
    font-size: 0.75rem;
    color: #8b92a8;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.metric-unit {
    font-size: 0.75rem;
    color: #8b92a8;
    margin-left: 0.25rem;
}

/* Sensor Cards Section */
.sensors-section {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 2rem;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.sensors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));*/
    gap: 1.5rem;
}

.btn-submit:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Unique Sensor Card Designs */
.sensor-card {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
}

.sensor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.sensor-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: currentColor;
}

.sensor-card:hover::before {
    opacity: 0.15;
}

/* Green Card */
.sensor-green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.2);
}

.sensor-green::before {
    background: radial-gradient(circle at top right, var(--sensor-green), transparent);
}

.sensor-green .sensor-icon {
    background: linear-gradient(135deg, var(--sensor-green), #059669);
}

/* Orange Card */
.sensor-orange {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #c2410c;
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.2);
}

.sensor-orange::before {
    background: radial-gradient(circle at bottom left, var(--sensor-orange), transparent);
}

.sensor-orange .sensor-icon {
    background: linear-gradient(135deg, var(--sensor-orange), #ea580c);
}

/* Red Card */
.sensor-red {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    color: #991b1b;
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.2);
}

.sensor-red::before {
    background: radial-gradient(circle at top left, var(--sensor-red), transparent);
}

.sensor-red .sensor-icon {
    background: linear-gradient(135deg, var(--sensor-red), #dc2626);
}

/* Yellow Card */
.sensor-yellow {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #a16207;
    box-shadow: 0 10px 40px rgba(234, 179, 8, 0.2);
}

.sensor-yellow::before {
    background: radial-gradient(circle at bottom right, var(--sensor-yellow), transparent);
}

.sensor-yellow .sensor-icon {
    background: linear-gradient(135deg, var(--sensor-yellow), #ca8a04);
}

.sensor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.sensor-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.sensor-card:hover .sensor-icon {
    transform: rotate(10deg) scale(1.1);
}

.sensor-number {
    font-size: 2.5rem;
    font-weight: 800;
    opacity: 0.15;
    line-height: 1;
}

.sensor-info {
    margin-bottom: 1rem;
}

.sensor-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.sensor-location {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.sensor-type {
    font-size: 0.875rem;
    opacity: 0.8;
    font-weight: 500;
}

.sensor-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Export Buttons */
.export-section {
    padding: 6px;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.export-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin-right: 8px;
    float: left;
    margin-bottom: 10px;
}

.dataTables_wrapper .dataTables_length {
    float: left;
    margin-bottom: 6px;
}

.export-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-excel {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-pdf {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-xml {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}

/* Data Tables Section */
.data-tables-section {
    margin-top: 3rem;
}

.table-container {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}



body.dark-theme .dataTables_wrapper {
    color: #f5f5f5;
}

body.dark-theme table.dataTable {
    background: #565656;
    color: #f5f5f5;
}

body.dark-theme table.dataTable thead th {
    background: #3e3f42;
    color: #f5f5f5;
    border-color: #2f3540;
}



body.dark-theme table.dataTable tbody td {
    color: #959595;
}

body.dark-theme table.dataTable tbody td {
    border-bottom-color: #3d4454;
}

body.dark-theme .dataTables_filter input,
body.dark-theme .dataTables_length select {
    background: #101113;
    color: #f5f5f5;
    border-color: #121418;
}

table.dataTable {
    width: 100% !important;
    border-collapse: collapse;
}

table.dataTable thead th {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8f0f5 100%);
    padding: 1rem;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid var(--border-light);
}

table.dataTable tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

table.dataTable tbody tr:hover {
    background: rgba(42, 147, 201, 0.05);
}

.dark-theme table.dataTable tbody tr:hover {
    background: rgb(130 149 178);
}

#grossVolumeTable {
    margin-top: 20px;
}



.table-hover>tbody>.api-key-wrap:hover>* {
    color: #000 !important;
}

/* Filters Section */
/* .filters-section {
      background: var(--white);
      padding: 20px 25px;
      border-radius: 12px;
      box-shadow: var(--shadow);
      margin-bottom: 20px;
      display: flex;
      gap: 20px;
      align-items: center;
      flex-wrap: wrap;
  } */
.filter-group {
    flex: 1;
    min-width: 250px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.filter-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(42, 147, 201, 0.1);
}

/* Info Bar */
.info-bar {
    background: var(--light-bg);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

/* Main Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

/* Tank Card */
.tank-card-section {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.tank-visual-wrapper {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0px;
    position: relative;
    gap: 28px;
}

.tank-name-label {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Mini Tank Visualization - Like Live Inventory */
.mini-tank {
    width: 114px;
    height: 270px;
    background: linear-gradient(180deg, rgba(240, 242, 245, 0.95) 0%, rgba(230, 232, 235, 1) 100%);
    border-radius: 20px 20px 8px 8px;
    margin: 0 auto 20px;
    position: relative;
    overflow: visible;
    border: 3px solid #3d4454;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(145deg, #2d3548 0%, #1f2432 100%);
}

body.dark-theme .mini-tank {
    background: linear-gradient(180deg, rgba(60, 65, 80, 0.5) 0%, rgba(50, 55, 70, 0.6) 100%);
}

/* Tank Background Grid */
.tank-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* Liquid Container with overflow hidden */
.mini-tank-water,
.mini-tank-product {
    overflow: auto;
}

.mini-tank-water {
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #60a5d8 0%, #3b9fc9 50%, #2a93c9 100%);
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
    cursor: pointer;
    position: relative;
}

/* Tooltip for Water Layer */
.mini-tank-water::before {
    content: attr(data-percentage);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgb(108 175 218);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
    white-space: pre-line;
    border: 1px solid #4d97c4;
}

.mini-tank-water:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.mini-tank-product {
    position: absolute !important;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #b57ef7 0%, #a855f7 50%, #9333ea 100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 0;
    cursor: pointer;
    border-radius: 12px 12px 0px 0px;
    /*bottom: 0 !important;*/
}

/* Tooltip for Product Layer - Only show on hover, hide the permanent label */
.mini-tank-product .product-percentage-label {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.mini-tank-product::before {
    content: attr(data-percentage);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
    padding: 12px 10px !important;
    white-space: pre-line;
    background: #9135ef;
    border: 1px solid #7e5fa1;
}

.mini-tank-product:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.mini-tank-product:hover .product-percentage-label {
    opacity: 0;
}


/* Wave Animation */
.wave {
    position: absolute;
    top: -20px;
    left: -50%;
    width: 200%;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 45%;
    animation: wave 4s linear infinite;
}

.wave:nth-child(2) {
    top: -15px;
    opacity: 0.5;
    animation: wave 6s linear infinite reverse;
}

.wave:nth-child(3) {
    top: -10px;
    opacity: 0.3;
    animation: wave 5s linear infinite;
}

@keyframes wave {
    0% {
        transform: translateX(0) translateZ(0);
    }

    50% {
        transform: translateX(-25%) translateZ(0);
    }

    100% {
        transform: translateX(-50%) translateZ(0);
    }
}

/* Bubble Animation */
.bubble {
    position: absolute;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: rise linear infinite;
}

@keyframes rise {
    0% {
        bottom: 0;
        opacity: 0.8;
    }

    100% {
        bottom: 100%;
        opacity: 0;
    }
}

/* Glass Effect */
.tank-glass {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 80%, transparent 100%);
    pointer-events: none;
    z-index: 10;
}

/* Tank Cap */
/* Tank Cap */
.tank-cap {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 30px;
    background: linear-gradient(180deg, #3d4454 0%, #2d3548 100%);
    border-radius: 8px 8px 0 0;
    border: 2px solid #2d3548;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.tank-cap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Percentage Labels on Left Side */
.tank-percentage-labels {
    position: absolute;
    left: -50px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
    padding: 5px 0;
}

.tank-percentage-labels span {
    position: relative;
    display: flex;
    align-items: center;
}

.tank-percentage-labels span::after {
    content: '';
    position: absolute;
    left: 100%;
    width: 10px;
    height: 1px;
    background: var(--text-light);
    margin-left: 5px;
}

/* Product Percentage Label Inside Tank */
.product-percentage-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    z-index: 5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.product-percentage-label div:first-child {
    font-size: 11px;
    opacity: 0.9;
}

.product-percentage-label div:last-child {
    font-size: 16px;
    font-weight: 800;
}

/* Tank Details */
.tank-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: 10px;
    height: fit-content;
}

.detail-row {
    background: #3b82f60d;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.detail-row:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

.detail-value {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 700;
    display: block;
}

.detail-unit {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    margin-left: 4px;
}

.tank-status {
    margin-top: 15px;
    padding: 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}

/* Chart Section */
.chart-section {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    /* margin-bottom: 25px; */
}

.chart-container {
    position: relative;
    height: 350px;
}

/* Full Width Chart */
.full-chart-section {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.full-chart-container {
    position: relative;
    height: 400px;
}

/* Responsive */
@media (max-width: 968px) {
    .main-content {
        margin-left: 0;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .filters-section {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .chart-container,
    .full-chart-container {
        height: 300px;
    }

    .tank-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 22px;
    }

    .chart-container {
        height: 250px;
    }

    .full-chart-container {
        height: 300px;
    }

    .tank-details {
        grid-template-columns: 1fr;
    }
}

/* Dark Theme */
body.dark-theme .mini-tank {
    background: linear-gradient(180deg, #3d4454 0%, #2d3548 100%);
}

body.dark-theme .filter-input {
    background: var(--white);
    color: var(--text-dark);
}

/* Responsive */

@media (max-width: 1740px) {
    .tank-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 1440px) {
    .tank-content {
        grid-template-columns: 120px 1fr;
    }

    .data-history-header {
        flex-direction: column;
        align-items: baseline;
    }

    .tank-cap {
        width: 70px;
        height: 30px;
    }

    .tank-visual {
        width: 140px !important;
    }

    .tank-scale {
        left: -8px;
    }

    .export-btn:hover {
        width: 80px;
    }

    .tank-container {
        width: 80px;
    }

    .tank-visual-card-wrap {
        display: grid;
        grid-template-columns: 150px 1fr;
    }

    .detail-value {
        font-size: 14px;
    }

    .mini-tank {
        width: 90px;
    }
}


@media (max-width:1240px) {
    .tank-metrics {
        grid-template-columns: repeat(1, 1fr);
        gap: 0.75rem;
    }

    .metric-value {
        font-size: 14px;
    }

    .content-grid {
        grid-template-columns: 2fr 1fr;
        gap: 12px;
    }
}

@media (max-width:1199px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 1024px) {
    .tanks-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* .tank-content {
                grid-template-columns: 1fr;
                text-align: center;
            } */

    .tank-visual {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .tank-selector-wrapper {
        width: 100%;
    }

    .sensors-grid {
        grid-template-columns: 1fr;
    }

    .page-title h1 {
        font-size: 1.5rem;
    }

    /* .tank-content {
                grid-template-columns: 1fr;
            } */

    .tank-visual {
        margin: 0 auto 1.5rem;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }


    .table-container {
        padding: 16px;
    }

    .export-section {
        flex-direction: column;
        width: 100%;
    }

    .export-btn {
        width: 100%;
        justify-content: center;
    }
}



/* ro master  */

.sensor-table-data {
    overflow: auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.50rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(42, 147, 201, 0.15);
    outline: none;
}



.btn-save {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e5fa0 100%);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save:hover {
    box-shadow: 0 6px 16px rgba(42, 147, 201, 0.4);
}

.btn-close-modal {
    background-color: #ef5350;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-close-modal:hover {
    background-color: #e53935;
}

.dark-theme .table-hover>tbody>tr:hover>* {
    --bs-table-accent-bg: var(--bs-table-hover-bg);
    color: #ffffff;
}

.dark-theme .table tbody td {
    color: rgb(255, 255, 255);
}

.table-hover>tbody>tr:hover>* {
    color: rgb(255, 255, 255) !important;
}

.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 15px 30px;
    margin-left: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-dark);
}



.dashboard-wrapper.master-dashboard-page .form-page.active {
    width: 100%;
    padding: 24px;
}

.btn-add {
    border: 1px solid #2a93c9 !important;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 147, 201, 0.4);
    color: #fff !important;
    background-color: #2a93c9;
}

.ro-master-wrap .btn-add {
    border: 1px solid #2a93c9;
    color: #fff !important;
    background-color: #2a93c9;
}

.ro-master-wrap .btn-add:hover {
    color: #fff !important;
}

/* Table */
.table-container {
    background-color: var(--white);
    border-radius: 12px;
    overflow: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table {
    margin-bottom: 0;
}

body.dark-theme .table thead th {
    background: linear-gradient(135deg, #2f2f2f 0%, #0a0a0a 100%);
}

body.dark-theme tbody tr:nth-child(odd) {
    background-color: rgb(99 99 99 / 50%);
}

.table thead th {
    padding: 14px 16px;
    font-weight: 700;
    border-bottom: 2px solid #e7eaec;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.8px;
    white-space: nowrap;
    background: linear-gradient(135deg, #fdfdfd 0%, #e8f0f5 100%);
    color: var(--text-dark);
}

.table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.table tbody tr:hover .status-badge {
    background-color: var(--secondary-color) !important;
    color: var(--dark-color) !important;
}



.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s;
    text-transform: uppercase;
}

.status-active {
    background: linear-gradient(135deg, #81c784, #66bb6a);
    color: white;
}

.status-inactive {
    background: linear-gradient(135deg, #ef5350, #e53935);
    color: white;
}

.btn-edit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-edit:hover {
    background-color: #1e5fa0;
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-control {
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background-color: var(--white);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(42, 147, 201, 0.15);
    outline: none;
}

.form-control:hover {
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-section-title {
    font-weight: 700;
    font-size: 16px;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.btn-save {
    background: linear-gradient(135deg, var(--primary-color), #1e5fa0);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 147, 201, 0.4);
}

.btn-cancel {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background-color: #e69500;
}


.form-page.active {
    display: block;
}

.form-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.form-page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.btn-page-close {
    background: linear-gradient(135deg, #ef5350, #e53935);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-page-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 83, 80, 0.4);
    color: #fff;
}

.form-page-content {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.form-section {
    margin-bottom: 40px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
    color: var(--text-dark);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
    color: var(--text-dark);
}

.form-control {
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background-color: var(--white);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
    width: 100%;
}

.form-control:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(42, 147, 201, 0.2);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(42, 147, 201, 0.15);
    background-color: var(--white);
}

.form-page-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--border-light);
}

.btn-save {
    background: linear-gradient(135deg, var(--primary-color), #1e5fa0);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 147, 201, 0.4);
}

.temp-sensor-section {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.temp-sensor-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.btn-add-sensor {
    background: linear-gradient(135deg, var(--primary-color), #1e5fa0);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-end;
}



.btn-add-sensor:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 147, 201, 0.3);
}

.sensor-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.sensor-table thead {
    background: linear-gradient(135deg, var(--primary-color), #1e5fa0);
    color: white;
}

.sensor-table th,
.sensor-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.sensor-table th {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
    font-size: 14px;
}

@media (max-width: 768px) {


    .form-page-content {
        border-radius: 8px;
        padding: 16px;
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }


    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* .content-area {
          padding: 1rem;
      }*/


    .btn-add-sensor {
        padding: 12px 20px !important;
    }

    .btn-edit {
        padding: 8px 28px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem !important;
    }
}

/* Blink effect */
@keyframes zoomPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 6px rgba(76, 175, 80, 0.4);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 14px rgba(76, 175, 80, 0.9);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 6px rgba(76, 175, 80, 0.4);
    }
}

/* Responsive Design */
@media (max-width: 1440px) {
    .tank-metrics {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .cards-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }


    .data-history-header {
        flex-wrap: wrap;
    }

    .data-system {
        width: 82%;
    }

    .tank-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 1199px) {
    .data-system {
        display: flex;
        width: 100%;
        flex-direction: column;
    }
}

@media (max-width: 1240px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .charts-container {
        grid-template-columns: 60% 39% !important;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 230px !important;
        padding: 12px;
    }

    .table thead th {
        font-size: 14px !important;
    }


    .page-content {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    th,
    td {
        padding: 12px 8px;
        font-size: 14px;
    }

    .logo-text.logo-white img {
        height: 45px;
    }

    .logo-section {
        padding-bottom: 10px;
    }

    .charts-container {
        grid-template-columns: 100% !important;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .btn-save {
        padding: 12px 20px !important;
        font-size: 14px;
        line-height: 18px;
    }

    .btn-close-modal {
        font-size: 14px;
    }

    .btn-page-close {
        padding: 6px 20px !important;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 250px;
        height: 100vh;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .sidebar.hidden {
        transform: translateX(-100%);
    }

    .main-content {
        width: 100%;
    }

    .page-content {
        padding: 12px 6px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .buttons-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    th,
    td {
        padding: 12px 8px;
        font-size: 14px;
    }

    .form-page-header h1 {
        font-size: 24px;
        font-weight: 700;
        margin: 0;
    }

    .dashboard-wrapper.master-dashboard-page .form-page.active {
        width: 100%;
        padding: 12px;
    }

    .page-title {
        font-size: 20px;
    }
}

@media screen and (max-width: 640px) {

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        /* float: none; */
        text-align: left;
        margin: 0;
    }


    .chart-card {
        border-radius: 6px;
        padding: 12px;
    }

    .dataTables_wrapper #tableID3_filter,
    .dataTables_wrapper .dataTables_filter {
        /*        visibility: hidden;
*/
        display: none;
    }

    .data-tables-section {
        margin-top: 2rem;
    }


    .header-right {
        gap: 4px;
    }
}

@media screen and (max-width:576px) {

    #alarmHistoryTable_wrapper,
    #waterVolumeTable_wrapper,
    #grossVolumeTable_wrapper {
        display: flex;
        flex-direction: column;
    }

    .tank-visual-wrapper {
        gap: 24px !important;
    }

    .tank-visual-card-wrap {
        grid-template-columns: 140px 1fr;
    }

    .stat-cards {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 8px;
    }

    .stat-card {
        padding: 10px !important;
    }

    .tank-metrics {
        grid-template-columns: repeat(1, 1fr);
        gap: 0.75rem;
    }

    .mini-tank {
        width: 64px;
    }

    .detail-row {
        padding: 8px;
    }

    .tank-card-section {
        padding: 12px;
    }

    .tank-visual-card-wrap {
        grid-template-columns: 155px 1fr;
    }


    .mini-tank-water::before {
        padding: 6px;
        border-radius: 4px;
        font-size: 10px;
    }

    .mini-tank-product::before {
        border-radius: 6px;
        font-size: 10px;
        font-weight: 700;
        z-index: 9999;
        padding: 6px !important;
    }
}

@media (max-width: 480px) {
    .btn-close {
        width: 18px !important;
        height: 18px !important;
        font-size: 12px;
    }

    .header {
        /* flex-direction: ; */
        gap: 8px;
        padding: 14px 12px;
    }

    .header-left {
        width: 100%;
        gap: 10px;
    }

    .header-right {
        width: 100%;
        justify-content: flex-end;
    }

    .page-content {
        padding: 6px 6px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .buttons-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    th,
    td {
        padding: 10px 6px;
        font-size: 14px;
        white-space: nowrap;
    }

    .status-badge {
        font-size: 12px;
    }

    .page-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .add-btn {
        padding: 8px 20px !important;
    }

    .section-title {
        margin-bottom: 1rem;
    }

    .tank-details {
        grid-template-columns: repeat(1, 1fr);
        gap: 6px;
    }
}

@media (max-width:380px) {
    .logo-text.logo-white img {
        height: 50px;
    }

    .cards-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .tank-name {
        font-size: 18px;
    }

    .tank-status {
        padding: 8px 4px;
    }

    .detail-row {
        padding: 5px;
    }

    .detail-label {
        font-size: 10px;
    }

    .detail-value {
        font-size: 12px;
    }
}


@media (max-width: 1440px) {
    .tank-content {
        grid-template-columns: 120px 1fr;
    }


    .tank-cap {
        width: 70px;
        height: 30px;
    }

    .tank-visual {
        width: 140px;
    }

    .tank-scale {
        left: -8px;
    }

    .export-btn:hover {
        width: 80px;
    }

    .tank-container {
        width: 80px;
    }
}

@media (max-width:1199px) {
    .tanks-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    /* .tank-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }*/

    .sensors-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:1240px) {


    .data-system {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .tanks-grid {
        grid-template-columns: 1fr !important;
    }

    /* .tank-content {
                grid-template-columns: 1fr;
                text-align: center;
            } */

    .tank-visual {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .tank-selector-wrapper {
        width: 100%;
        min-width: 100%;
    }

    .sensors-grid {
        grid-template-columns: 1fr;
    }

    .page-title h1 {
        font-size: 1.5rem;
    }

    /* .tank-content {
                grid-template-columns: 1fr;
            } */

    .tank-visual {
        margin: 0 auto 1.5rem;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }


    .table-container {
        padding: 16px;
    }

    .export-section {
        flex-direction: column;
        width: 100%;
    }

    .export-btn {
        width: 100%;
        justify-content: center;
    }
}


/* =====================================================================
   RESPONSIVE OVERRIDES — appended to style.css
   PART 1: Fix 80%-zoom oversizing → correct at 100% default zoom
   PART 2: Full responsive breakpoints (1200 → 992 → 768 → 576)
   ===================================================================== */

/* -------------------------------------------------
   PART 1 — Global 100%-zoom size corrections
   Targets the components that were designed for 80%
   ------------------------------------------------- */

/* Sidebar — reduce from 280px to a tighter 240px */
.sidebar {
    width: 240px;
}

/* Header — reduce padding */
.header {
    padding: 12px 20px;
}

/* Stat value — reduce large numbers that were too big */
.stat-value {
    font-size: 24px;
}

/* Chart title */
.chart-title {
    font-size: 16px;
    margin-bottom: 14px;
}

/* Filters section */
.filters-section {
    padding: 16px;
    margin-bottom: 16px;
}

/* Filter inputs / selects */
.filter-input,
.filter-select,
.daterange-input {
    padding: 9px 12px;
    font-size: 13px;
}

/* Stat cards — reduce padding */
.stat-card {
    padding: 16px;
}

/* Page content — tighten inner padding */
.page-content {
    padding: 18px;
}

/* Menu items in sidebar */
.menu-item {
    padding: 10px 14px;
    margin-bottom: 4px;
    font-size: 13px;
}

/* Menu section spacing */
.menu-section {
    margin-bottom: 20px;
}

/* Logo in sidebar */
.logo-text.logo-white img {
    height: 40px;
}

/* Logo section bottom spacing */
.logo-section {
    margin-bottom: 12px;
}

/* User avatar size */
.user-avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

/* Breadcrumb font */
.breadcrumb {
    font-size: 13px;
}

/* ---- Login page 100%-zoom corrections ---- */

/* Right panel — reduce fixed width */
.wrapper .right-panel {
    flex: 0 0 420px;
    padding: 50px 40px;
}

/* Brand text */
.wrapper .brand-text {
    font-size: 36px;
}

/* Welcome heading */
.wrapper .welcome-box h2 {
    font-size: 26px;
}

/* Welcome paragraph */
.wrapper .welcome-box p {
    font-size: 14px;
}

/* Field input */
.wrapper .field-input {
    padding: 13px 18px;
    font-size: 14px;
}

/* Submit button */
.wrapper .submit-btn {
    padding: 14px;
    font-size: 16px;
}

/* Logo symbol */
.wrapper .logo-symbol {
    width: 80px;
    height: 80px;
}

/* Logo box margin */
.wrapper .logo-box {
    margin-bottom: 32px;
}

/* Welcome box margin */
.wrapper .welcome-box {
    margin-bottom: 28px;
}

/* Options row */
.wrapper .options-row {
    margin-bottom: 28px;
}

/* Help box */
.wrapper .help-box {
    margin-top: 28px;
    padding-top: 20px;
}

/* Title section on left panel */
.wrapper .title-section h1 {
    font-size: 34px;
}

.wrapper .title-section p {
    font-size: 16px;
}

/* Gauge item */
.wrapper .gauge-item {
    padding: 20px 14px;
}

.wrapper .circular-progress {
    width: 100px;
    height: 100px;
}

.wrapper .progress-value {
    font-size: 26px;
}

/* -------------------------------------------------
   PART 2a — Large Desktop (≤ 1400px) minor tighten
   ------------------------------------------------- */
@media (max-width: 1400px) {
    .sidebar {
        width: 220px;
    }

    .wrapper .right-panel {
        flex: 0 0 380px;
        padding: 40px 32px;
    }
}

/* -------------------------------------------------
   PART 2b — Tablet Landscape / Small Desktop (≤ 1200px)
   ------------------------------------------------- */
@media (max-width: 1200px) {

    .sidebar {
        width: 200px;
    }

    .menu-item span {
        font-size: 12px;
    }

    /* Charts: switch from 69%/30% fixed to flexible 2-col */
    .charts-container {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* Filters: 3 columns */
    .filters-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .data-history-header .data-system {
        flex-wrap: wrap;
    }
}

/* -------------------------------------------------
   PART 2c — Tablet Portrait (≤ 992px)
   Sidebar becomes a slide-in overlay
   ------------------------------------------------- */
@media (max-width: 992px) {

    /* ── Sidebar overlay ── */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: 240px;
        z-index: 1050;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    /* Sidebar open state — toggled by JS adding .sidebar-open to body */
    body.sidebar-open .sidebar {
        left: 0;
    }

    /* Overlay backdrop when sidebar is open */
    body.sidebar-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1040;
    }

    /* Show hamburger button */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 6px;
        background: var(--light-bg);
    }

    /* Main content takes full width */
    .dashboard-wrapper {
        flex-direction: column;
    }

    .main-content {
        width: 100%;
    }

    /* Charts stack to single column */
    .charts-container {
        grid-template-columns: 1fr;
    }

    /* Filters: 2 columns */
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .data-history-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .data-history-header .data-system {
        flex-direction: column;
        gap: 10px;
    }

    .data-history-header .categories {
        justify-content: flex-start;
    }

    /* All tables: horizontal scroll */
    .table-section,
    .log-table-section,
    .table-container,
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Stat cards 2-col */
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* -------------------------------------------------
   PART 2d — Mobile (≤ 768px)
   ------------------------------------------------- */
@media (max-width: 768px) {

    /* Page padding */
    .page-content {
        padding: 12px;
    }

    /* Header compact */
    .header {
        padding: 10px 14px;
        gap: 10px;
    }

    .header-right {
        gap: 12px;
    }

    .user-name,
    .user-role {
        display: none;
        /* hide name on very small header, avatar still shows */
    }

    /* Stat cards → single column */
    .stat-cards,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-value {
        font-size: 22px;
    }

    /* Filters → single column */
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-input,
    .filter-select,
    .daterange-input {
        width: 100%;
    }

    /* Buttons full width */
    .btn-submit,
    .btn-delete,
    .log-search-btn {
        width: 100%;
        justify-content: center;
    }

    .buttons-group {
        flex-direction: column;
    }

    /* Charts single col */
    .charts-container {
        grid-template-columns: 1fr;
    }

    /* Modals — near full width */
    .modal-dialog {
        max-width: 95vw;
        margin: 10px auto;
    }

    .modal-content {
        border-radius: 8px;
    }

    /* Table horizontal scroll */
    .table-section,
    .log-table-section,
    .table-container,
    .table-wrapper,
    .dataTables_wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Log filters grid */
    .log-filters-grid {
        grid-template-columns: 1fr;
    }

    .log-search-btn {
        width: 100%;
    }

    /* ---- Login page mobile ---- */
    .wrapper {
        flex-direction: column;
    }

    .wrapper .left-panel {
        display: none;
        /* hide decorative left panel on mobile */
    }

    .wrapper .right-panel {
        flex: 1;
        padding: 32px 20px;
        width: 100%;
    }

    .wrapper .brand-text {
        font-size: 28px;
    }

    .wrapper .welcome-box h2 {
        font-size: 22px;
    }

    .wrapper .submit-btn {
        padding: 14px;
        font-size: 15px;
    }

    .wrapper .field-input {
        padding: 12px 14px;
        font-size: 14px;
    }

    /* OTP inputs */
    .otp-inputs {
        gap: 6px;
    }

    .otp-input {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    /* Direct history hero banner */
    .hero-banner {
        padding: 24px 16px;
    }

    .hero-banner h1,
    .hero-title {
        font-size: 20px;
    }

    /* Export buttons stack */
    .export-section {
        flex-direction: column;
        gap: 8px;
    }

    .export-btn {
        width: 100%;
        justify-content: center;
    }
}

/* -------------------------------------------------
   PART 2e — Small Mobile (≤ 576px)
   ------------------------------------------------- */
@media (max-width: 576px) {

    .page-content {
        padding: 10px;
    }

    .header {
        padding: 8px 12px;
    }

    /* Breadcrumb — hide on very small */
    .breadcrumb span {
        display: none;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 20px;
    }

    /* Filter section */
    .filters-section {
        padding: 12px;
    }

    /* Chart wrapper height */
    .chart-wrapper {
        height: 220px;
    }

    /* Modal full-screen */
    .modal-dialog {
        max-width: 100vw;
        margin: 0;
    }

    .modal-content {
        border-radius: 0;
        min-height: 100vh;
    }

    /* Login */
    .wrapper .right-panel {
        padding: 24px 16px;
    }

    .wrapper .logo-symbol {
        width: 60px;
        height: 60px;
    }

    /* Table cells tighter */
    .log-table td,
    .log-table th {
        padding: 8px 6px !important;
        font-size: 12px;
    }

    /* Sidebar width on mobile (still fixed overlay) */
    .sidebar {
        width: 200px;
    }

    /* Buttons */
    .btn {
        padding: 9px 14px;
        font-size: 12px;
    }
}

/* -------------------------------------------------
   Dark theme — table scroll wrappers
   ------------------------------------------------- */
.dark-theme .table-section,
.dark-theme .log-table-section,
.dark-theme .table-container {
    background: var(--white);
}

/* -------------------------------------------------
   Utility — ensure images never overflow
   ------------------------------------------------- */
img {
    max-width: 100%;
    height: auto;
}

/* -------------------------------------------------
   Sidebar overlay close button (mobile)
   Shows an X inside sidebar on mobile
   ------------------------------------------------- */
@media (max-width: 992px) {
    .sidebar .logo-section {
        position: relative;
    }
}