﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #f4f6f9;
}

.banner-header {
    position: relative;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 24px 100px;
    background: #fff;

    border-top: 1px solid #2196F3;
    border-bottom: 1px solid #2196F3;

    overflow: visible; /* CHANGE THIS */
}

.left-box {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 531px;
    background: #2196F3;
    clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%);
    padding: 25px;
    color: #fff;
    z-index: 2;
}

.left-box h1 {
    font-size: 26px;
    font-weight: 600;
}

.left-box span {
    color: #FFEB3B;
}

.left-box p {
    font-size: 13px;
    margin-top: 5px;
    opacity: 0.8;
}

/* STRIPS CONTAINER */
.strips {
    position: absolute;
    left: 200px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
}



/* NAV */
.nav-area {
    margin-left: auto;
    z-index: 5;
}

/* MENU */
.menu {
    list-style: none;
    display: flex;
    gap: 35px;
}

.menu li {
    position: relative;
    z-index: 10;
}
/* LINKS */
.menu a, .drop-btn {
    text-decoration: none;
    color: #1483b6;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
}



/* ACTIVE LINK */
.menu a.active {
    color: #fff;
    background: #2196F3;
    padding: 6px 12px;
    border-radius: 6px;
}

/* HOVER EFFECT */
.menu a:hover,
.drop-btn:hover {
    color: #ffc107;
    transition: 0.3s;
}

/* OPTIONAL: ACTIVE + HOVER COMBINATION CLEAN LOOK */
.menu a.active:hover {
    background: #1976D2;
    color: #fff;
}




/* DROPDOWN */
.submenu {
    position: absolute;
    top: 100%;   /* better than 30px */
    left: 0;
    background: #fff;
    min-width: 150px;
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);

    opacity: 0;
    visibility: hidden;
    transition: 0.2s;

    z-index: 9999; /* IMPORTANT */
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
}

/* ITEMS */
.submenu a {
    display: block;
    padding: 8px 15px;
    color: #333;
}

.submenu a:hover {
    background: #f0f6ff;
}

/* SUB SUB MENU */
.sub-submenu {
    position: absolute;
    left: 150px;
    top: 0;
    background: #fff;
    min-width: 150px;
    border-radius: 8px;

    opacity: 0;
    visibility: hidden;
}

.sub-dropdown:hover .sub-submenu {
    opacity: 1;
    visibility: visible;
}











/* HEADER TEXT */
.dash-header {
    padding: 20px 100px;
}

.dash-header h2 {
    font-size: 30px;
    color: #2196F3;
}

.dash-header p {
    color: #000;
    font-size: 14px;
    margin-top: 5px;
}

/* FILTER BAR */
.filter-bar {
    margin: 10px 100px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
}

.box {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.box label {
    font-size: 13px;
    margin-bottom: 5px;
    color: #555;
}

.box select,
.box input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.search button {
    margin-top: 22px;
    padding: 10px 25px;
    border: none;
    background: #2196F3;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* GRID */
.stats {
    padding: 40px 100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
}

/* CARD */
.stat-card {
    position: relative;
    overflow: hidden;
    padding: 25px;
    border-radius: 18px;

    /* SINGLE COLOR THEME */
    background: linear-gradient(135deg, #2196F3, #E3F2FD);

    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.4s ease;
}

/* HOVER */
.stat-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 45px rgba(0,0,0,0.18);
}

/* ICON */
.icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.08);
    z-index: 2;
}

/* TEXT */
.content h3 {
    font-size: 16px;
    color: #0d47a1;
    margin-bottom: 4px;
}

.content p {
    font-size: 22px;
    font-weight: bold;
    color: #0d47a1;
}

/* ========================= */
/* BUBBLES */
/* ========================= */
.bubble {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    top: -40px;
    right: -40px;
    background: rgba(255,255,255,0.25);
    animation: float 6s ease-in-out infinite;
}

.bubble.small {
    width: 60px;
    height: 60px;
    top: auto;
    bottom: -20px;
    left: -20px;
    animation-duration: 4s;
}

/* FLOAT ANIMATION */
@keyframes float {
    0%   { transform: translateY(0px) scale(1); }
    50%  { transform: translateY(20px) scale(1.1); }
    100% { transform: translateY(0px) scale(1); }
}




@media (max-width: 1024px) {

    /* HEADER TEXT */
    .dash-header {
        padding: 15px 20px;
        text-align: center;
    }

    .dash-header h2 {
        font-size: 22px;
    }

    .dash-header p {
        font-size: 13px;
    }

    /* FILTER BAR */
    .filter-bar {
        margin: 10px 15px;
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }

    .box {
        width: 100%;
        min-width: 100%;
    }

    .search button {
        width: 100%;
        margin-top: 10px;
    }

    /* STATS GRID */
    .stats {
        padding: 20px 15px;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* CARD */
    .stat-card {
        flex-direction: row;
        padding: 18px;
    }

    .icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .content h3 {
        font-size: 14px;
    }

    .content p {
        font-size: 18px;
    }

    /* BUBBLES (reduce for mobile performance) */
    .bubble {
        width: 80px;
        height: 80px;
        top: -20px;
        right: -20px;
    }

    .bubble.small {
        width: 40px;
        height: 40px;
        bottom: -10px;
        left: -10px;
    }
}



/* ========================= */
/* HAMBURGER (HIDDEN ON DESKTOP)
/* ========================= */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    margin-left: auto;
    z-index: 9999;
    color: #2196F3;
}

/* ========================= */
/* MOBILE RESPONSIVE
/* ========================= */
@media (max-width: 1024px) {

    .banner-header {
        padding: 15px 0px;
        height: auto;
        flex-wrap: wrap;
    }

    .left-box {
        position: relative;
        width: 100%;
        clip-path: none;
        text-align: center;
    }

    .nav-area {
        width: 100%;
        display: none;
        background: #fff;
        position: absolute;
        top: 80px;
        left: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-area.active {
        display: block;
    }

    .menu {
        flex-direction: column;
        gap: 0;
    }

    .menu li {
        border-bottom: 1px solid #eee;
    }

    .menu a,
    .drop-btn {
        display: block;
        padding: 12px 20px;
    }

    .submenu {
        position: relative;
        top: 0;
        left: 0;
        box-shadow: none;
        display: none;
        opacity: 1;
        visibility: visible;
    }

    .submenu.open {
        display: block;
    }

    .sub-submenu {
        position: relative;
        left: 0;
        display: none;
    }

    .sub-submenu.open {
        display: block;
    }

    .hamburger {
        display: block;
    }
    
    .nav-area {
    top: calc(100% + 5px);
}
    
}
























































.master-form {
    background: #fff;
    padding: 25px;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.master-form h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #0d1b3c;
    border-left: 5px solid #4a6cf7;
    padding-left: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.form-box {
    display: flex;
    flex-direction: column;
}

.form-box label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.form-box input,
.form-box select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: 0.2s;
    background: #f9fafc;
}

.form-box input:focus,
.form-box select:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 5px rgba(74,108,247,0.3);
}

.master-form {
    background: #fff;
    padding: 25px;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);

    width: 90%;
    max-width: 1350px;

    margin-left: auto;
    margin-right: auto;
}

.master-form h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #0d1b3c;
    border-left: 5px solid #4a6cf7;
    padding-left: 10px;
}

/* ✅ FIXED 4 COLUMN GRID */
.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.form-box {
    display: flex;
    flex-direction: column;
}

.form-box label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.form-box input,
.form-box select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    background: #f9fafc;
}

.form-box input:focus,
.form-box select:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 5px rgba(74,108,247,0.3);
}

.form-action {
    margin-top: 20px;
    text-align: right;
}

.form-action button {
    background: linear-gradient(135deg, #4a6cf7, #6a11cb);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
/* ================= TABLET ================= */
@media (max-width: 1024px) {
    .master-form {
        width: 95%;
        margin: 20px auto;
    }

    .form-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================= MOBILE FIX (MAIN FIX) ================= */
@media (max-width: 600px) {

    /* FIX CONTAINER */
    .master-form {
        width: 100%;
        margin: 0;
        padding: 15px;
        border-radius: 0;
    }

    /* FORCE SINGLE COLUMN */
    .form-grid-4 {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* INPUT + SELECT SAFE WIDTH */
    .form-box input,
    .form-box select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 14px;
        padding: 9px;
    }

    /* TITLE SMALL */
    .master-form h2 {
        font-size: 18px;
    }

    /* BUTTON FULL WIDTH */
    .form-action button {
        width: 100%;
    }
}

/* ================= EXTRA SAFETY ================= */
@media (max-width: 400px) {
    .master-form h2 {
        font-size: 16px;
    }

    .form-box label {
        font-size: 13px;
    }
}

.form-action {
    margin-top: 20px;
    display: flex;
    justify-content: center;  /* ✅ CENTER BUTTON */
    align-items: center;
}

.form-action button {
    background: #2196F3;
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.form-action button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74,108,247,0.3);
}



















.master-table {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-top: 20px;
    margin-left: 126px;
    width: 1353px;
}

.master-table h2 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #0d1b3c;
    border-left: 5px solid #4a6cf7;
    padding-left: 10px;
}

/* TABLE WRAPPER */
.table-responsive {
    overflow-x: auto;
}

/* TABLE */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

/* HEADER */
.custom-table thead {
    background: #4a6cf7;
    color: #fff;
}

.custom-table th {
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

/* ROW */
.custom-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.custom-table tbody tr:hover {
    background: #f5f7ff;
}

/* BADGES */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.success {
    background: #e6f7ec;
    color: #1a7f37;
}

.pending {
    background: #fff4e5;
    color: #b26a00;
}

/* ICONS */
.icon-btn {
    font-size: 16px;
    cursor: pointer;
    color: #4a6cf7;
}

.success-icon {
    color: #1a7f37;
}

.danger-icon {
    color: #d93025;
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {

    .master-table {
        width: 100%;
        margin: 10px 0;
        padding: 12px;
        border-radius: 8px;
    }

    .custom-table {
        min-width: 700px; /* enables horizontal scroll */
    }

    .custom-table th {
        font-size: 12px;
        padding: 8px;
    }

    .custom-table td {
        font-size: 12px;
        padding: 8px;
    }

    .icon-btn {
        font-size: 14px;
    }

    .badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}



















.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    overflow: auto;
}

.modal-content.large-modal {
    background: #fff;
    width: 90%;
    max-width: 1200px;
    margin: 3% auto;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

.close {
    position: absolute;
    right: 30px;
    top: 24px;
    font-size: 25px;
    cursor: pointer;
}

/* form spacing inside popup */
.master-form {
    margin-top: 10px;
}

.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
#popupModal .view-box {
    background: #f8f9fc;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

#popupModal .view-box .title {
    font-size: 12px;
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 4px;
}

#popupModal .view-box .value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

@media (max-width: 600px) {

    .modal-content.large-modal {
        width: 95%;
        margin: 8% auto;
        padding: 15px;
    }

    .form-grid-4 {
        grid-template-columns: repeat(1, 1fr); /* 1 column mobile */
    }

    .close {
        right: 15px;
        top: 10px;
        font-size: 22px;
    }
}


















.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content.large-modal {
    background: #fff;
    width: 92%;
    max-width: 950px;
    margin: 3% auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

/* HEADER */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, #0d6efd, #4f8cff);
    color: #fff;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.close {
    font-size: 26px;
    cursor: pointer;
}

/* FORM */
.popup-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
    background: #f8f9fc;
}

.form-box label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.form-box input,
.form-box select {
    width: 100%;
    padding: 9px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: 0.2s;
    background: #fff;
}

.form-box input:focus,
.form-box select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 5px rgba(13,110,253,0.2);
}

/* BUTTON */
.btn-box {
    display: flex;
    align-items: end;
}
.btn-box {
    grid-column: 1 / -1;   /* forces full row in grid */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.btn-box button {
    width: 20%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #198754;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-box button:hover {
    background: #157347;
}

/* TABLE */
.table-wrapper {
    padding: 15px 20px 25px;
}

.popup-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

.popup-table th {
    background: #0d6efd;
    color: #fff;
    padding: 10px;
    font-size: 13px;
}

.popup-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.popup-table tr:hover {
    background: #f1f5ff;
}
@media (max-width: 480px) {

    .modal-content.large-modal {
        margin: 15% auto;
    }

    .modal-header h2 {
        font-size: 15px;
    }

    .form-box label {
        font-size: 12px;
    }

    .form-box input,
    .form-box select {
        padding: 8px;
        font-size: 13px;
    }

    .btn-box button {
        font-size: 14px;
        with:100px;
    }
}