/*
==========================================================
Casino Energy Monitor V1.0
Main Stylesheet
==========================================================
*/

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

:root{

    --primary:#2563EB;
    --primary-dark:#1D4ED8;

    --sidebar:#0F172A;
    --sidebar-hover:#1E293B;

    --success:#22C55E;
    --warning:#F59E0B;
    --danger:#EF4444;

    --background:#F8FAFC;

    --card:#FFFFFF;

    --border:#E5E7EB;

    --text:#1E293B;

    --muted:#64748B;

    --shadow:
        0 8px 24px rgba(15,23,42,.08);

    --radius:12px;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    background:var(--background);

    color:var(--text);

    font-size:15px;

    line-height:1.6;

}

/* =======================================================
LAYOUT
======================================================= */

.app-layout{

    display:flex;

    min-height:100vh;

}

/* =======================================================
SIDEBAR
======================================================= */

.sidebar{

    width:260px;

    background:var(--sidebar);

    color:#fff;

    position:fixed;

    left:0;

    top:0;

    bottom:0;

    overflow-y:auto;

    box-shadow:4px 0 20px rgba(0,0,0,.15);

}

.sidebar-logo{

    padding:24px 20px;

    text-align:center;

    border-bottom:1px solid rgba(255,255,255,.08);

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

}

.sidebar-logo h2{

    font-size:22px;

    font-weight:700;

    margin-bottom:6px;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}

.sidebar-logo span{

    display:block;

    font-size:12px;

    color:#94A3B8;

    letter-spacing:.5px;

}

.sidebar-menu{

    padding:20px 0;

}

.sidebar-menu a{

    display:flex;

    align-items:center;

    gap:14px;

    color:#CBD5E1;

    text-decoration:none;

    padding:15px 24px;

    margin:4px 12px;

    border-radius:10px;

    transition:all .25s ease;

    font-size:15px;

    white-space:nowrap;

}

.sidebar-menu a:hover{

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

    color:#fff;

    transform:translateX(4px);

}

.sidebar-menu a.active{

    background:var(--primary);

    color:#fff;

    border-left:4px solid #fff;

    box-shadow:0 6px 18px rgba(37,99,235,.35);

}

.sidebar-menu i{

    width:22px;

    text-align:center;

}

.sidebar-footer{

    position:absolute;

    bottom:20px;

    left:20px;

    right:20px;

    text-align:center;

    font-size:12px;

    color:#94A3B8;

}

/* =======================================================
MAIN CONTENT
======================================================= */

.main-content{

    margin-left:260px;

    width:calc(100% - 260px);

    display:flex;

    flex-direction:column;

    min-height:100vh;

}

/* =======================================================
TOPBAR
======================================================= */

.topbar{

    height:70px;

    background:#FFFFFF;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 25px;

    border-bottom:1px solid var(--border);

    position:sticky;

    top:0;

    z-index:900;

}

.topbar-left{

    display:flex;

    align-items:center;

    gap:16px;

}

.topbar-left h3{

    margin:0;

    font-size:24px;

    font-weight:600;

    color:var(--text);

}

.topbar-right{

    display:flex;

    align-items:center;

    gap:18px;

}

/* =======================================================
USER BOX
======================================================= */

.user-box{

    display:flex;

    align-items:center;

    gap:10px;

    background:#F8FAFC;

    border:1px solid var(--border);

    padding:8px 16px;

    border-radius:30px;

    transition:.25s;

    cursor:pointer;

}

.user-box:hover{

    background:#EEF2FF;

}

.user-box i{

    font-size:28px;

    color:var(--primary);

}

.user-box i{

    font-size:22px;

    color:var(--primary);

}


.user-box span{

    font-size:14px;

    font-weight:500;

    color:var(--text);

    white-space:nowrap;

}

/* =======================================================
CONTENT AREA
======================================================= */

.content-area{

    flex:1;

    padding:30px;

}

/* =======================================================
PAGE HEADER
======================================================= */

.page-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

}

.page-header h2{

    font-size:28px;

    font-weight:700;

    margin:0;

}

.page-header p{

    color:var(--muted);

    margin-top:6px;

}

/* =======================================================
SECTION TITLE
======================================================= */

.section-title{

    font-size:18px;

    font-weight:600;

    margin-bottom:15px;

    color:var(--text);

}

/* =======================================================
CARDS
======================================================= */

.card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    margin-bottom:25px;

    overflow:hidden;

    transition:.25s ease;

}

.card:hover{

    transform:translateY(-2px);

    box-shadow:0 12px 30px rgba(15,23,42,.12);

}

.card-header{

    background:#FFFFFF;

    border-bottom:1px solid var(--border);

    padding:18px 25px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.card-header h3,
.card-header h4,
.card-header h5{

    margin:0;

    font-size:18px;

    font-weight:600;

    color:var(--text);

}

.card-body{

    padding:25px;

}

.card-footer{

    padding:18px 25px;

    border-top:1px solid var(--border);

    background:#FAFAFA;

}

/* =======================================================
STATISTICS CARDS
======================================================= */

.stats-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:20px;

    margin-bottom:30px;

}

.stat-card{

    background:#FFFFFF;

    border-radius:var(--radius);

    padding:25px;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

    transition:.25s;

    position:relative;

    overflow:hidden;

}

.stat-card:hover{

    transform:translateY(-4px);

}

.stat-card::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:5px;

    height:100%;

    background:var(--primary);

}

.stat-title{

    font-size:14px;

    color:var(--muted);

    margin-bottom:10px;

    font-weight:500;

}

.stat-value{

    font-size:32px;

    font-weight:700;

    color:var(--text);

    line-height:1;

}

.stat-unit{

    font-size:14px;

    color:var(--muted);

    margin-left:4px;

}

.stat-footer{

    margin-top:18px;

    font-size:13px;

    color:var(--muted);

}

/* =======================================================
COLOR VARIANTS
======================================================= */

.stat-primary::before{

    background:var(--primary);

}

.stat-success::before{

    background:var(--success);

}

.stat-warning::before{

    background:var(--warning);

}

.stat-danger::before{

    background:var(--danger);

}

/* =======================================================
ICON INSIDE CARD
======================================================= */

.stat-icon{

    position:absolute;

    right:20px;

    top:20px;

    font-size:34px;

    color:#E2E8F0;

}

/* =======================================================
BUTTONS
======================================================= */

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    padding:10px 18px;

    border:none;

    border-radius:8px;

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    text-decoration:none;

    transition:all .25s ease;

    white-space:nowrap;

}

/* =======================================================
PRIMARY
======================================================= */

.btn-primary{

    background:var(--primary);

    color:#FFFFFF;

}

.btn-primary:hover{

    background:var(--primary-dark);

    color:#FFFFFF;

    transform:translateY(-2px);

}

/* =======================================================
SUCCESS
======================================================= */

.btn-success{

    background:var(--success);

    color:#FFFFFF;

}

.btn-success:hover{

    background:#16A34A;

    color:#FFFFFF;

    transform:translateY(-2px);

}

/* =======================================================
WARNING
======================================================= */

.btn-warning{

    background:var(--warning);

    color:#FFFFFF;

}

.btn-warning:hover{

    background:#D97706;

    color:#FFFFFF;

    transform:translateY(-2px);

}

/* =======================================================
DANGER
======================================================= */

.btn-danger{

    background:var(--danger);

    color:#FFFFFF;

}

.btn-danger:hover{

    background:#DC2626;

    color:#FFFFFF;

    transform:translateY(-2px);

}

/* =======================================================
SECONDARY
======================================================= */

.btn-secondary{

    background:#64748B;

    color:#FFFFFF;

}

.btn-secondary:hover{

    background:#475569;

    color:#FFFFFF;

}

/* =======================================================
LIGHT
======================================================= */

.btn-light{

    background:#F8FAFC;

    border:1px solid var(--border);

    color:var(--text);

}

.btn-light:hover{

    background:#E2E8F0;

}

/* =======================================================
BUTTON SIZES
======================================================= */

.btn-sm{

    padding:7px 12px;

    font-size:13px;

}

.btn-lg{

    padding:14px 24px;

    font-size:16px;

}

/* =======================================================
FULL WIDTH
======================================================= */

.btn-block{

    width:100%;

}

/* =======================================================
BUTTON GROUP
======================================================= */

.btn-group{

    display:flex;

    gap:8px;

    flex-wrap:wrap;

}

/* =======================================================
ICON
======================================================= */

.btn i{

    font-size:14px;

}

/* =======================================================
DISABLED
======================================================= */

.btn:disabled{

    opacity:.6;

    cursor:not-allowed;

    transform:none;

}

/* =======================================================
ACTION BUTTONS
======================================================= */

.action-buttons{

    display:flex;

    gap:8px;

    align-items:center;

    flex-wrap:wrap;

}

/* =======================================================
FLOATING BUTTON
======================================================= */

.btn-floating{

    width:50px;

    height:50px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    box-shadow:0 8px 20px rgba(0,0,0,.18);

}

/* =======================================================
FORMS
======================================================= */

.form-group{

    margin-bottom:20px;

}

.form-label{

    display:block;

    margin-bottom:8px;

    font-size:14px;

    font-weight:600;

    color:var(--text);

}

.form-control,
.form-select{

    width:100%;

    height:48px;

    padding:12px 16px;

    border:1px solid var(--border);

    border-radius:8px;

    background:#FFFFFF;

    color:var(--text);

    font-size:15px;

    transition:all .25s ease;

    outline:none;

}

.form-control::placeholder{

    color:#94A3B8;

}

.form-control:focus,
.form-select:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(37,99,235,.15);

}

textarea.form-control{

    min-height:120px;

    resize:vertical;

    padding-top:12px;

}

.form-select{

    cursor:pointer;

}

/* =======================================================
INPUT GROUP
======================================================= */

.input-group-custom{

    display:flex;

    align-items:center;

    border:1px solid var(--border);

    border-radius:8px;

    overflow:hidden;

    background:#FFFFFF;

    transition:.25s;

}

.input-group-custom:focus-within{

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(37,99,235,.15);

}

.input-group-custom span{

    padding:0 15px;

    color:var(--muted);

    background:#F8FAFC;

    border-right:1px solid var(--border);

}

.input-group-custom input{

    flex:1;

    border:none;

    outline:none;

    padding:12px 15px;

    background:transparent;

}

/* =======================================================
CHECKBOX & RADIO
======================================================= */

.form-check{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:12px;

}

.form-check input{

    width:18px;

    height:18px;

    accent-color:var(--primary);

    cursor:pointer;

}

.form-check label{

    cursor:pointer;

    color:var(--text);

}

/* =======================================================
FORM ROW
======================================================= */

.form-row{

    display:flex;

    gap:20px;

    flex-wrap:wrap;

}

.form-col{

    flex:1;

    min-width:250px;

}

/* =======================================================
READ ONLY
======================================================= */

.form-control[readonly]{

    background:#F1F5F9;

    cursor:not-allowed;

}

/* =======================================================
INVALID
======================================================= */

.is-invalid{

    border-color:var(--danger) !important;

}

.invalid-feedback{

    color:var(--danger);

    font-size:13px;

    margin-top:6px;

}

/* =======================================================
VALID
======================================================= */

.is-valid{

    border-color:var(--success) !important;

}

.valid-feedback{

    color:var(--success);

    font-size:13px;

    margin-top:6px;

}

/* =======================================================
SEARCH BOX
======================================================= */

.search-box{

    position:relative;

}

.search-box i{

    position:absolute;

    left:15px;

    top:50%;

    transform:translateY(-50%);

    color:var(--muted);

}

.search-box input{

    padding-left:45px;

}

/* =======================================================
FORM CARD
======================================================= */

.form-card{

    background:#FFFFFF;

    border:1px solid var(--border);

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    padding:25px;

}

/* =======================================================
TABLES
======================================================= */

.table-responsive{

    width:100%;

    overflow-x:auto;

    border-radius:var(--radius);

}

.table{

    width:100%;

    border-collapse:collapse;

    background:#FFFFFF;

    min-width:900px;

}

.table thead{

    background:#F8FAFC;

}

.table thead th{

    padding:16px 18px;

    text-align:left;

    font-size:14px;

    font-weight:600;

    color:var(--text);

    border-bottom:2px solid var(--border);

    white-space:nowrap;

}

.table tbody td{

    padding:16px 18px;

    border-bottom:1px solid var(--border);

    vertical-align:middle;

    color:var(--text);

    font-size:14px;

}

.table tbody tr{

    transition:all .25s ease;

}

.table tbody tr:hover{

    background:#F8FAFC;

}

.table tbody tr:last-child td{

    border-bottom:none;

}

/* =======================================================
TABLE ALIGNMENT
======================================================= */

.text-center{

    text-align:center;

}

.text-right{

    text-align:right;

}

.text-left{

    text-align:left;

}

/* =======================================================
BADGES
======================================================= */

.badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:6px 12px;

    border-radius:50px;

    font-size:12px;

    font-weight:600;

    letter-spacing:.3px;

}

.badge-success{

    background:#DCFCE7;

    color:#15803D;

}

.badge-warning{

    background:#FEF3C7;

    color:#B45309;

}

.badge-danger{

    background:#FEE2E2;

    color:#B91C1C;

}

.badge-primary{

    background:#DBEAFE;

    color:#1D4ED8;

}

/* =======================================================
STATUS
======================================================= */

.status{

    display:inline-flex;

    align-items:center;

    gap:8px;

    font-weight:600;

}

.status-dot{

    width:10px;

    height:10px;

    border-radius:50%;

}

.status-online .status-dot{

    background:var(--success);

}

.status-offline .status-dot{

    background:var(--warning);

}

.status-disabled .status-dot{

    background:var(--danger);

}

/* =======================================================
ACTION BUTTONS
======================================================= */

.table-actions{

    display:flex;

    gap:8px;

    align-items:center;

    flex-wrap:wrap;

}

.table-actions .btn{

    min-width:85px;

}

/* =======================================================
EMPTY TABLE
======================================================= */

.empty-table{

    text-align:center;

    padding:50px 20px;

    color:var(--muted);

    font-size:15px;

}

.empty-table i{

    font-size:48px;

    margin-bottom:15px;

    display:block;

    color:#CBD5E1;

}

/* =======================================================
TABLE FOOTER
======================================================= */

.table-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:20px;

    flex-wrap:wrap;

    gap:15px;

}

.table-info{

    color:var(--muted);

    font-size:14px;

}

/* =======================================================
PAGINATION
======================================================= */

.pagination{

    display:flex;

    gap:8px;

    list-style:none;

    padding:0;

    margin:0;

}

.pagination li a{

    display:flex;

    align-items:center;

    justify-content:center;

    width:40px;

    height:40px;

    border:1px solid var(--border);

    border-radius:8px;

    text-decoration:none;

    color:var(--text);

    transition:.25s;

}

.pagination li a:hover{

    background:var(--primary);

    color:#FFFFFF;

}

.pagination li.active a{

    background:var(--primary);

    color:#FFFFFF;

    border-color:var(--primary);

}

/* =======================================================
DEVICE ID STYLE
======================================================= */

.device-id{

    font-family:monospace;

    font-size:14px;

    font-weight:700;

    color:var(--primary);

    background:#EFF6FF;

    padding:6px 10px;

    border-radius:6px;

    display:inline-block;

}

/* =======================================================
LAST SEEN
======================================================= */

.last-seen{

    color:var(--muted);

    font-size:13px;

}

/* =======================================================
DASHBOARD WIDGETS
======================================================= */

.dashboard-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:25px;

    margin-bottom:30px;

}

/* =======================================================
WIDGET CARD
======================================================= */

.widget{

    position:relative;

    background:#FFFFFF;

    border-radius:16px;

    padding:25px;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

    overflow:hidden;

    transition:.30s;

}

.widget:hover{

    transform:translateY(-5px);

    box-shadow:0 18px 35px rgba(0,0,0,.10);

}

/* =======================================================
LEFT BORDER
======================================================= */

.widget::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:6px;

    height:100%;

    background:var(--primary);

}

/* =======================================================
HEADER
======================================================= */

.widget-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:18px;

}

.widget-title{

    font-size:14px;

    color:var(--muted);

    font-weight:600;

    text-transform:uppercase;

    letter-spacing:.5px;

}

/* =======================================================
ICON
======================================================= */

.widget-icon{

    width:55px;

    height:55px;

    border-radius:14px;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:24px;

    color:#FFFFFF;

}

/* =======================================================
VALUE
======================================================= */

.widget-value{

    font-size:38px;

    font-weight:700;

    color:var(--text);

    line-height:1.1;

}

.widget-unit{

    font-size:15px;

    color:var(--muted);

    margin-left:5px;

}

/* =======================================================
FOOTER
======================================================= */

.widget-footer{

    margin-top:18px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-size:13px;

    color:var(--muted);

}

.widget-footer i{

    margin-right:6px;

}

/* =======================================================
COLORS
======================================================= */

.widget-blue .widget-icon{

    background:#2563EB;

}

.widget-green .widget-icon{

    background:#22C55E;

}

.widget-orange .widget-icon{

    background:#F59E0B;

}

.widget-red .widget-icon{

    background:#EF4444;

}

.widget-purple .widget-icon{

    background:#9333EA;

}

.widget-cyan .widget-icon{

    background:#06B6D4;

}

.widget-indigo .widget-icon{

    background:#4F46E5;

}

.widget-gray .widget-icon{

    background:#64748B;

}

/* =======================================================
LIVE STATUS
======================================================= */

.live-indicator{

    display:inline-flex;

    align-items:center;

    gap:8px;

    color:var(--success);

    font-size:13px;

    font-weight:600;

}

.live-indicator::before{

    content:"";

    width:10px;

    height:10px;

    border-radius:50%;

    background:var(--success);

    animation:pulse 1.2s infinite;

}

@keyframes pulse{

    0%{

        transform:scale(1);

        opacity:1;

    }

    50%{

        transform:scale(1.5);

        opacity:.4;

    }

    100%{

        transform:scale(1);

        opacity:1;

    }

}

/* =======================================================
TREND
======================================================= */

.trend-up{

    color:var(--success);

    font-weight:600;

}

.trend-down{

    color:var(--danger);

    font-weight:600;

}

.trend-flat{

    color:var(--warning);

    font-weight:600;

}

/* =======================================================
MINI VALUE
======================================================= */

.mini-value{

    font-size:13px;

    color:var(--muted);

}

/* =======================================================
CHART CARD
======================================================= */

.chart-card{

    background:#FFFFFF;

    border-radius:16px;

    padding:25px;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

    margin-bottom:30px;

}

.chart-title{

    font-size:18px;

    font-weight:600;

    margin-bottom:20px;

}

.chart-container{

    width:100%;

    height:350px;

}

/* =======================================================
CHARTS
======================================================= */

.chart-card{

    background:#FFFFFF;

    border:1px solid var(--border);

    border-radius:16px;

    box-shadow:var(--shadow);

    padding:25px;

    margin-bottom:30px;

}

.chart-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:15px;

    margin-bottom:25px;

}

.chart-title{

    font-size:20px;

    font-weight:600;

    color:var(--text);

}

.chart-subtitle{

    font-size:14px;

    color:var(--muted);

    margin-top:4px;

}

.chart-actions{

    display:flex;

    gap:10px;

    flex-wrap:wrap;

}

.chart-container{

    position:relative;

    width:100%;

    height:400px;

}

.chart-container canvas{

    width:100% !important;

    height:100% !important;

}

/* =======================================================
MINI CHARTS
======================================================= */

.chart-mini{

    height:180px;

}

/* =======================================================
CHART LEGEND
======================================================= */

.chart-legend{

    display:flex;

    gap:20px;

    justify-content:center;

    align-items:center;

    margin-top:20px;

    flex-wrap:wrap;

}

.legend-item{

    display:flex;

    align-items:center;

    gap:8px;

    font-size:14px;

    color:var(--text);

}

.legend-color{

    width:14px;

    height:14px;

    border-radius:4px;

}

.legend-blue{

    background:#2563EB;

}

.legend-green{

    background:#22C55E;

}

.legend-orange{

    background:#F59E0B;

}

.legend-red{

    background:#EF4444;

}

.legend-purple{

    background:#9333EA;

}

/* =======================================================
CHART SUMMARY
======================================================= */

.chart-summary{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));

    gap:15px;

    margin-top:25px;

}

.summary-box{

    background:#F8FAFC;

    border:1px solid var(--border);

    border-radius:12px;

    padding:16px;

    text-align:center;

}

.summary-title{

    font-size:13px;

    color:var(--muted);

    margin-bottom:8px;

}

.summary-value{

    font-size:24px;

    font-weight:700;

    color:var(--text);

}

.summary-unit{

    font-size:13px;

    color:var(--muted);

}

/* =======================================================
LOADING STATE
======================================================= */

.chart-loading{

    display:flex;

    align-items:center;

    justify-content:center;

    height:400px;

    color:var(--muted);

    font-size:16px;

}

.chart-loading i{

    font-size:24px;

    margin-right:10px;

    animation:spin 1s linear infinite;

}

@keyframes spin{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

/* =======================================================
NO DATA
======================================================= */

.chart-empty{

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    height:400px;

    color:var(--muted);

    text-align:center;

}

.chart-empty i{

    font-size:60px;

    margin-bottom:15px;

    color:#CBD5E1;

}

/* =======================================================
CHART FILTERS
======================================================= */

.chart-filter{

    display:flex;

    gap:10px;

    flex-wrap:wrap;

}

.chart-filter .btn{

    min-width:80px;

}

/* =======================================================
RESPONSIVE DESIGN
======================================================= */

/* ---------- Large Tablets ---------- */

@media (max-width:1200px){

    .dashboard-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

/* ---------- Tablets ---------- */

@media (max-width:992px){

    .sidebar{

        width:80px;

    }

    .sidebar-logo h2,
    .sidebar-logo span,
    .sidebar-menu a span,
    .sidebar-footer{

        display:none;

    }

    .sidebar-menu a{

        justify-content:center;

        padding:18px;

    }

    .sidebar-menu i{

        font-size:22px;

        margin:0;

    }

    .main-content{

        margin-left:80px;

        width:calc(100% - 80px);

    }

    .dashboard-grid{

        grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    }

    .stats-grid{

        grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    }

}

/* ---------- Mobile ---------- */

@media (max-width:768px){

    .topbar{

        flex-direction:column;

        align-items:flex-start;

        height:auto;

        padding:18px;

        gap:15px;

    }

    .topbar-right{

        width:100%;

        justify-content:flex-end;

    }

    .content-area{

        padding:20px;

    }

    .page-header{

        flex-direction:column;

        align-items:flex-start;

        gap:15px;

    }

    .dashboard-grid{

        grid-template-columns:1fr;

    }

    .stats-grid{

        grid-template-columns:1fr;

    }

    .chart-summary{

        grid-template-columns:1fr;

    }

    .form-row{

        flex-direction:column;

    }

    .table{

        min-width:700px;

    }

    .table-actions{

        flex-direction:column;

        align-items:stretch;

    }

    .table-actions .btn{

        width:100%;

    }

    .btn-group{

        flex-direction:column;

        width:100%;

    }

    .btn-group .btn{

        width:100%;

    }

    .chart-header{

        flex-direction:column;

        align-items:flex-start;

    }

}

/* ---------- Small Phones ---------- */

@media (max-width:576px){

    .sidebar{

        width:70px;

    }

    .main-content{

        margin-left:70px;

        width:calc(100% - 70px);

    }

    .topbar-left h3{

        font-size:20px;

    }

    .widget{

        padding:18px;

    }

    .widget-value{

        font-size:28px;

    }

    .stat-value{

        font-size:26px;

    }

    .card-body{

        padding:18px;

    }

    .card-header{

        padding:16px 18px;

    }

    .footer{

        flex-direction:column;

        text-align:center;

        gap:10px;

    }

}

/* =======================================================
UTILITY CLASSES
======================================================= */

.text-primary{color:var(--primary)!important;}
.text-success{color:var(--success)!important;}
.text-warning{color:var(--warning)!important;}
.text-danger{color:var(--danger)!important;}
.text-muted{color:var(--muted)!important;}

.bg-primary{background:var(--primary)!important;}
.bg-success{background:var(--success)!important;}
.bg-warning{background:var(--warning)!important;}
.bg-danger{background:var(--danger)!important;}

.rounded{border-radius:var(--radius)!important;}

.shadow{
    box-shadow:var(--shadow)!important;
}

.w-100{
    width:100%!important;
}

.mt-1{margin-top:.25rem!important;}
.mt-2{margin-top:.5rem!important;}
.mt-3{margin-top:1rem!important;}
.mt-4{margin-top:1.5rem!important;}
.mt-5{margin-top:3rem!important;}

.mb-1{margin-bottom:.25rem!important;}
.mb-2{margin-bottom:.5rem!important;}
.mb-3{margin-bottom:1rem!important;}
.mb-4{margin-bottom:1.5rem!important;}
.mb-5{margin-bottom:3rem!important;}

@import url("gauge.css");

/* =======================================================
NOTIFICATION BUTTON
======================================================= */

.notification-btn{

    position:relative;

    width:48px;

    height:48px;

    border:none;

    border-radius:50%;

    background:#F8FAFC;

    border:1px solid var(--border);

    cursor:pointer;

    transition:.25s;

}

.notification-btn:hover{

    background:#EFF6FF;

}

.notification-btn i{

    font-size:20px;

    color:var(--primary);

}

.notification-count{

    position:absolute;

    top:-6px;

    right:-6px;

    min-width:22px;

    height:22px;

    border-radius:50%;

    background:#EF4444;

    color:#FFFFFF;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:11px;

    font-weight:700;

}

/* =======================================================
NOTIFICATION PANEL
======================================================= */

.notification-panel{

    position:fixed;

    top:70px;

    right:-420px;

    width:400px;

    height:calc(100vh - 70px);

    background:#FFFFFF;

    border-left:1px solid var(--border);

    box-shadow:-5px 0 25px rgba(0,0,0,.15);

    transition:.35s;

    z-index:9999;

    display:flex;

    flex-direction:column;

}

.notification-panel.show{

    right:0;

}

.notification-panel-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:20px;

    border-bottom:1px solid var(--border);

}

.notification-close{

    border:none;

    background:none;

    font-size:20px;

    cursor:pointer;

}

.notification-list{

    flex:1;

    overflow-y:auto;

    padding:15px;

}

.notification-footer{

    padding:15px;

    border-top:1px solid var(--border);

    text-align:center;

}

.notification-empty{

    text-align:center;

    color:var(--muted);

    margin-top:60px;

}

/* ==========================================================
   Casino Energy Report Table Header
========================================================== */

#reportTable thead th{

    background:#0B8F4D !important;   /* Casino Energy Green */

    color:#FFFFFF !important;

    font-weight:600;

    text-align:center;

    vertical-align:middle;

    border-color:#087A41 !important;

    padding:14px 12px;

}

#reportTable thead tr{

    background:#0B8F4D !important;

}

#reportTable{

    border-radius:10px;

    overflow:hidden;

}

#reportTable tbody td{

    vertical-align:middle;

}

#reportTable tbody tr:hover{

    background:#F5FFF9;

}
/* =======================================================
LOAD ANALYSIS DASHBOARD — 6 CARDS PER ROW
======================================================= */

.load-analysis-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.load-analysis-grid .widget {
    min-width: 0;
}

@media (max-width: 1400px) {
    .load-analysis-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .load-analysis-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .load-analysis-grid {
        grid-template-columns: 1fr;
    }
}
