/*
    Created on : 28 Apr 2026, 12.50.28
    Author     : Fauzi
*/

:root {
    --primary: #6366f1;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
}

/* GLOBAL */
body {
    font-family: 'Inter', sans-serif !important;
    background: var(--bg) !important;
    color: var(--text);
}

/* NAVBAR */
.navbar {
    background: var(--card) !important;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.navbar a {
    color: var(--text) !important;
}

.navbar a:hover {
    color: var(--primary) !important;
}

/* SIDENAV */
.sidenav {
    background: var(--card) !important;
    border-right: 1px solid var(--border);
}

.sidenav a,
.dropdown-btn {
    color: var(--text-light);
    border-radius: 8px;
    padding: 10px;
}

.sidenav a:hover,
.dropdown-btn:hover,
.active {
    background: #eef2ff !important;
    color: var(--primary) !important;
}

/* MAIN FIX */
#main {
    padding: 15px;
    /*max-width: 1200px;*/
    /*margin: auto;*/
}

/* GRID PATCH (INI PENTING BANGET) */
.row {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px;
}

.col-8 {
    flex: 0 0 66.66%;
}

.col-4 {
    flex: 0 0 33.33%;
}

.col-12 {
    flex: 0 0 100%;
}

/* MOBILE */
@media (max-width: 768px) {
    .col-8, .col-4 {
        flex: 0 0 100%;
    }
}

/* CARD */
.card, .box {
    /*background: var(--card);*/
    border: 1px solid var(--border) !important;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--border);
}

/* BUTTON */
.btn {
    border-radius: 8px;
    transition: 0.2s;
}

.btn.bg-primary {
    background: var(--primary) !important;
}

.btn:hover {
    transform: translateY(-1px);
}

/* INPUT */
.form-control {
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 8px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* TABLE */
.table {
    /*background: white;*/
    border-radius: 10px;
    overflow: hidden;
    font-size: 13px;
}

.table td:first-child {
    width: 40%;
    color: #64748b;
}

.table td, .table th {
    border-bottom: 1px solid var(--border);
}

.table tr:hover {
    background: #f1f5f9;
}

/* LOADER */
.lds-dual-ring:after {
    border-color: var(--primary) transparent !important;
}

/* === FIX GRID TOTAL === */
.row {
    display: flex !important;
    flex-wrap: wrap;
    margin: 0 !important;
}

[class*="col-"] {
    float: none !important; /* MATIIN FLOAT LEGACY */
    /*padding: 5px;*/
}

/* PROPORSI FIX */
.col-8 {
    flex: 2;
}

.col-4 {
    flex: 1;
}

.col-12 {
    flex: 100%;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .col-8, .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.btn {
    border-radius: 8px;
    padding: 6px 12px;
}

.btn.bg-warning {
    background: #f59e0b !important;
    color: white;
}

.btn.bg-primary {
    background: #6366f1 !important;
}

.table-bordered td,
.table-bordered th {
    border: 1px solid #e2e8f0 !important;
}

.table td {
    vertical-align: middle;
}

.table input,
.table select {
    width: 100%;
    max-width: 100%; /* biar gak full panjang */
}

.card {
    height: fit-content;
    width: 100%;
}

.card-header {
    background: linear-gradient(135deg, #f9a8d4, #fbcfe8) !important;
    color: #831843 !important;
    border-bottom: none !important;
    border-radius: 12px 12px 0 0;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.2);
}

.card-header h3,
.card-header i {
    color: #831843 !important;
}

/* DEFAULT ICON */
.sidenav i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    transition: 0.2s;
    color: #94a3b8; /* neutral awal */
}

/* HOVER */
.sidenav a:hover i,
.dropdown-btn:hover i {
    color: #6366f1; /* primary */
}

/* ACTIVE */
.sidenav .active i {
    color: #ec4899 !important; /* pink brand */
}

.sidenav .active {
    background: #fdf2f8 !important;
    color: #ec4899 !important;
}

.sidenav .active i {
    color: #ec4899 !important;
}

/* ===== MINI TAILWIND (UTILITY LAYER) ===== */

/* FONT */
.font-sans {
    font-family: 'Inter', system-ui, sans-serif !important;
}

/* SPACING */
.p-2 {
    padding: 8px !important;
}
.p-3 {
    padding: 12px !important;
}
.p-4 {
    padding: 16px !important;
}
.p-5 {
    padding: 20px !important;
}

.mt-2 {
    margin-top: 8px !important;
}
.mt-3 {
    margin-top: 12px !important;
}
.mt-4 {
    margin-top: 16px !important;
}

.mb-3 {
    margin-bottom: 12px !important;
}

/* FLEX */
.flex {
    display: flex !important;
}
.items-center {
    align-items: center !important;
}
.justify-between {
    justify-content: space-between !important;
}

/* GRID */
.grid {
    display: grid !important;
}
.grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* CARD MODERN */
.card-modern {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* HEADER PINK ELEGAN */
.card-header-modern {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: white;
    padding: 8px 10px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
}

/* TEXT */
.text-sm {
    font-size: 13px;
}
.text-md {
    font-size: 14px;
}
.text-lg {
    font-size: 16px;
}

.text-gray {
    color: #6b7280;
}

/* INPUT MODERN */
.input-modern {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    background: #f9fafb;
}

.input-modern:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 2px rgba(236,72,153,0.2);
    outline: none;
}

/* BUTTON */
.btn-modern {
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn-pink {
    background: #ec4899;
    color: white;
}

.btn-pink:hover {
    background: #db2777;
}

/* TABLE CLEAN */
.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern td {
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
}

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

/* container menu */
.sidenav a,
.dropdown-btn {
    padding: 8px 12px !important;   /* sebelumnya kegedean */
    margin: 2px 6px !important;     /* rapetin jarak antar menu */
    font-size: 13.5px;
    border-radius: 8px;
}

/* icon spacing */
.sidenav i {
    font-size: 16px !important;
    margin-right: 8px !important;
    padding: 0 !important;
}

/* hover effect biar modern */
.sidenav a:hover,
.dropdown-btn:hover {
    background: #fce7f3 !important; /* pink soft */
}


/* dropdown isi */
.dropdown-container a {
    padding-left: 28px !important; /* indent */
    font-size: 13px;
}

/* hilangin jarak berlebih */
.dropdown-container {
    margin: 0 !important;
}

/* header sidebar (r1.tiara.network) */
.sidenav .menu.text-center {
    padding: 10px !important;
    font-size: 14px;
}



/* ===== ICON BASE ===== */
.sidenav i {
    transition: 0.2s;
}

/* DASHBOARD */
.fa-dashboard {
    color: #3b82f6 !important;
}

/* HOTSPOT */
.fa-wifi {
    color: #10b981 !important;
}

/* USERS */
.fa-users {
    color: #8b5cf6 !important;
}
.fa-user-plus {
    color: #a855f7 !important;
}

/* VOUCHER / TICKET */
.fa-ticket {
    color: #f59e0b !important;
}

/* LOG */
.fa-align-justify {
    color: #64748b !important;
}

/* SYSTEM */
.fa-gear,
.fa-cog {
    color: #ef4444 !important;
}

/* PPP */
.fa-book {
    color: #06b6d4 !important;
}

/* DHCP */
.fa-sitemap {
    color: #0ea5e9 !important;
}

/* HOST */
.fa-laptop {
    color: #14b8a6 !important;
}

/* IP BINDING */
.fa-address-book {
    color: #6366f1 !important;
}

/* COOKIES */
.fa-hourglass {
    color: #f97316 !important;
}

/* MONITOR */
.fa-area-chart {
    color: #22c55e !important;
}

/* BILLING */
.fa-money {
    color: #eab308 !important;
}

/* REPORT */
.nav-icon.fa-money {
    color: #84cc16 !important;
}

/* SETTINGS */
.fa-upload,
.fa-edit {
    color: #f43f5e !important;
}

/* ABOUT */
.fa-info-circle {
    color: #14b8a6 !important;
}

/* ACTIVE STATE */
.sidenav a.active i {
    filter: brightness(0.75);
}

/* HOVER EFFECT */
.sidenav a:hover i {
    transform: scale(1.15);
}

/* ALERT SUCCESS WITH ICON */
.box.box-bordered {
    position: relative;
    padding-left: 40px !important;
    border-radius: 10px;
    border: 1px solid #86efac !important;
    background: #dcfce7 !important;
    color: #166534;
    font-weight: 500;
}

/* ICON CHECK */
.box.box-bordered::before {
    content: "\f00c"; /* Font Awesome check */
    font-family: "FontAwesome";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);

    background: #22c55e;
    color: white;

    width: 20px;
    height: 20px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
}