/* ----------------------------------------------------
   GLOBAL FONT
---------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: #f5f7fa;
}

/* LOGIN PAGE  */
body.login-page {
    display: flex !important;
    flex-wrap: nowrap !important;
    height: 100vh !important;
    overflow: hidden;
}

/* LEFT PANEL */
.left-panel {
    width: 50%;
    background: linear-gradient(135deg, #1b1f3b, #3c4cad);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.left-panel h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.left-panel p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 450px;
}

.brand-logo {
    position: absolute;
    top: 30px;
    left: 60px;
    font-size: 1.6rem;
    font-weight: 600;
}

/* RIGHT LOGIN PANEL */
.login-wrapper {
    width: 50%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-card {
    width: 420px;
    padding: 40px 35px;
    border-radius: 20px;
    background: white;
    box-shadow: 0px 0px 25px rgba(0,0,0,0.08);
    animation: fadeIn 0.8s ease;
}

/* Fade animation */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.login-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #3c4cad;
}

.login-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 25px;
}

/* Input with icons */
.input-group-custom {
    position: relative;
    margin-bottom: 18px;
}

.input-icon {
    position: absolute;
    top: 12px;
    left: 14px;
    font-size: 1.1rem;
    color: #6a11cb;
}

.input-field {
    width: 100%;
    padding: 12px 15px 12px 42px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    transition: 0.3s ease;
}

.input-field:focus {
    border-color: #3c4cad;
    box-shadow: 0 0 10px rgba(60,76,173,0.3);
}

.eye-icon {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 1.1rem;
    cursor: pointer;
    color: #6a11cb;
}

/* Login Button */
.btn-login {
    background: linear-gradient(135deg, #3c4cad, #6a11cb);
    border: none;
    padding: 12px;
    font-weight: 600;
    color: white;
    border-radius: 12px;
    width: 100%;
    font-size: 1rem;
    transition: 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0px 8px 20px rgba(60,76,173,0.3);
}


/* ---------------------------------------------
   LOGIN RESPONSIVE
--------------------------------------------- */
@media (max-width: 992px) {
    body.login-page {
        flex-direction: column !important;
        height: auto !important;
    }

    .left-panel {
        width: 100%;
        padding: 35px 25px;
        text-align: center;
    }

    .login-wrapper {
        width: 100%;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .left-panel h1 { font-size: 1.9rem; }
    .left-panel p { font-size: 1rem; }
    .login-card { padding: 30px 25px; }
}



/* ==========================================================
   ADMIN PANEL STYLING (DOES NOT AFFECT LOGIN PAGE)
========================================================== */
body:not(.login-page) {
    display: block !important;
    flex-wrap: unset !important;
    height: auto !important;
}


/* WRAPPER */
.admin-wrapper {
    width: 100%;
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 240px;
    background: #0d1b2a;
    color: #fff;
    padding: 25px 15px;
    min-height: 100vh;
    position: fixed;
}

.sidebar-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
}

.sidebar-menu {
    margin: 0;
    padding: 0;
}

.sidebar-menu li {
    list-style: none;
    margin: 12px 0;
}

.sidebar-menu a {
    color: #dbe7f5;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 12px;
    display: block;
    border-radius: 6px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.20);
    color: #fff;
}

.sidebar-menu a i {
    width: 22px;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    margin-left: 240px;
    background: #f5f7fa;
}

/* TOPBAR */
.topbar {
    background: #2f3d52;
    padding: 15px 25px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 22px;
    font-weight: 600;
}

.user-btn {
    background: #fff;
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 600;
}

/* DASHBOARD CARDS */
.dashboard-card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.dashboard-card h3 {
    font-size: 28px;
    margin-top: 10px;
}

.icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    margin:auto;
    font-size:22px;
}

.blue { background:#2196f3; }
.green { background:#4caf50; }
.orange { background:#ff9800; }
.purple { background:#9c27b0; }

/* TABLES */
.table td, .table th {
    vertical-align: middle;
}

.btn-sm {
    padding: 3px 10px !important;
}

/* MODAL READONLY */
input:disabled,
select:disabled {
    background: #e9ecef !important;
    cursor: not-allowed;
}

/* SERVICE PAGE EXTRA */

#mobile_field.d-none,
#broadband_field.d-none {
    display: none !important;
}

#serviceTable td,
#serviceTable th {
    vertical-align: middle;
}

/* PLAN PAGE */

.plan-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.plan-type {
    font-size: 18px;
    font-weight: 600;
    color: #3c4cad;
}

.plan-benefits {
    font-size: 14px;
    margin-top: 10px;
    color: #555;
}

.plan-price {
    margin-top: 15px;
    font-weight: 700;
    color: #6a11cb;
}

/* RENEWAL PAGE */

.renew-btn {
    padding: 4px 12px !important;
}

.icon.red {
    background: #ff4d4d;
    color: white;
}

/* ============================
   REPORTS SUBMENU (SIDEBAR)
============================ */

.has-submenu > a {
    cursor: pointer;
    position: relative;
}

.has-submenu .fa-caret-down {
    transition: 0.3s;
}

.has-submenu.open .fa-caret-down {
    transform: rotate(-180deg);
}

.sidebar-submenu {
    list-style: none;
    padding-left: 30px;
    margin-top: 6px;
    display: none;
}

.sidebar-submenu li {
    margin: 6px 0;
}

.sidebar-submenu a {
    font-size: 14px;
    padding: 6px 10px;
    display: block;
    border-radius: 5px;
}

.sidebar-submenu a:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

/* CUSTOMER PLANS MODAL — CLEAN UI */
.customer-info-box {
    background: #f8f9fc;
    border: 1px solid #e4e6ef;
}

/* Plan Card */
.plan-card-box {
    background: white;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: 0.2s ease;
}

.plan-card-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.plan-title {
    font-weight: 700;
    font-size: 15px;
    color: #3c4cad;
    margin-bottom: 10px;
}

.plan-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.plan-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.plan-value {
    font-size: 13px;
    font-weight: 600;
    color: #111;
}
