/* =====================================================
   DASHBOARD - GLOBAL
===================================================== */

.dashboard-card{
    border: none;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: .3s;
}

.dashboard-card:hover{
    transform: translateY(-3px);
}

.card{
    border: none;
    border-radius: 12px;
}

.card-header{
    font-size: 14px;
    font-weight: 600;
}

.btn{
    border-radius: 8px;
}

.badge{
    font-size: 13px;
    padding: 6px 10px;
}

.table th{
    font-weight: 600;
    background: #f8f9fa;
}


/* =====================================================
   CARD WARNA
===================================================== */

.card-primary{
    background: #1976D2;
    color: #fff;
}

.card-success{
    background: #4CAF50;
    color: #fff;
}

.card-warning{
    background: #FF9800;
    color: #fff;
}

.card-danger{
    background: #F44336;
    color: #fff;
}


/* =====================================================
   STATISTIK DASHBOARD
===================================================== */

.card-stat{
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: .2s;
}

.card-stat:hover{
    transform: translateY(-2px);
}

.card-stat h2{
    font-weight: 600;
    margin-bottom: 0;
}


/* =====================================================
   DESKTOP (>= 992px)
===================================================== */

@media (min-width: 992px){

    .monitoring-table th,
    .monitoring-table td{
        vertical-align: middle;
    }

    .monitoring-table .badge{
        min-width: 90px;
    }

    .table-nowrap th,
    .table-nowrap td{
        white-space: nowrap;
    }

    .action-buttons{
        display:flex;
        gap:6px;
    }

}


/* =====================================================
   TABLE RESPONSIVE
===================================================== */

.table-responsive{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-nowrap th,
.table-nowrap td{
    white-space: nowrap;
}


/* =====================================================
   MOBILE (< 992px)
===================================================== */

@media (max-width: 991.98px){

    /* Statistik */

    .card-stat{
        margin-bottom: 15px;
    }

    .card-stat h2{
        font-size: 28px;
    }

    .card-stat i{
        font-size: 28px !important;
    }

    /* Card Dashboard */

    .dashboard-card{
        border-radius: 10px;
    }

    .card-header{
        font-size: 13px;
        padding: 10px 15px;
    }

    .card-body{
        padding: 15px;
    }

    /* Monitoring Per Gedung */

    .monitoring-table{
        font-size: 13px;
    }

    .monitoring-table th,
    .monitoring-table td{
        white-space: nowrap;
        vertical-align: middle;
    }

    .monitoring-table .badge{
        font-size: 11px;
        padding: 4px 8px;
    }

    /* Nama Gedung */

    .gedung-title{
        font-size: 15px;
        font-weight: 600;
    }

    /* Nama Lantai */

    .lantai-title{
        font-size: 14px;
    }

    /* Nama Ruangan */

    .ruangan-title{
        font-size: 14px;
        font-weight: 600;
    }

}

@media (max-width:768px){

    .btn-mobile{
        width:100%;
    }

    .table{
        font-size:13px;
    }

    .table th,
    .table td{
        white-space:nowrap;
        vertical-align:middle;
    }

    .action-buttons{
        display:flex;
        flex-direction:row;
        gap:4px;
        justify-content:center;
    }

    .action-buttons .btn{
        width:auto;
        min-width:40px;
    }

    .badge{
        font-size:11px;
    }

}


/* =====================================================
   EXTRA SMALL DEVICE (< 576px)
===================================================== */

@media (max-width: 575.98px){

    .card-stat h2{
        font-size: 24px;
    }

    .card-stat i{
        font-size: 24px !important;
    }

    .card-header{
        font-size: 12px;
    }

    .table{
        font-size: 12px;
    }

    .badge{
        font-size: 10px;
        padding: 4px 6px;
    }

}