@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
/* General CSS */
a{
    text-decoration: none;
    transition: all 0.4s ease;
}
html{
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
body {
    margin: 0;
    overflow-x: hidden;
    font-family: "Manrope", sans-serif;
    background: #f8f9fa;
}
.section-space{
    padding-top: 100px;
    padding-bottom: 100px
}
.main-content{
    padding-top: 40px;
    padding-bottom: 40px;
    position: relative;
}
.btn-main {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    padding: 10px 20px;
    background: linear-gradient(120deg, #000, #222, #000);
    color: #fff;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #ddd;
    text-decoration: none;
    overflow: hidden;
    transition: color 0.3s ease;
}

.btn-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: all 0.4s ease;
    z-index: 0;
}

.btn-main:hover::before {
    left: 0;
}

.btn-main:hover {
    color: #333;
}
.btn-main span{
    position: relative;
    z-index: 1
}
.section-login{
        background-image: url(../../assets/img/login-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    min-height: 100vh;
    background-position: center;
}
.login-title{
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
}
.login-logo{
    width: 120px;
    margin-left: auto;
    margin-right: auto;
        filter: brightness(1) invert(1);
}
.ms-drop .nav-link{
        border-left: 1px solid #d7d7d7 !important;
            border-right: 1px solid #d7d7d7 !important;
}
.ms-drop .nav-link i{
        width: 21px;
    height: 21px;
    line-height: 20px;
    font-size: 13px !important;
    padding: 0px !important;
    text-align: center;
    display: inline-block;
    background: #4c4c4c;
    color: #fff;
    border-radius: 999px;
}
/* top bar */
.top-bar{
    padding-top: 10px;
    padding-bottom: 10px;
    background: linear-gradient(
        16deg, #292929, #313131, #292929);
    height: 92px;
}
.top-bar .top-bar-logo{
    width: 120px
}
.btn-flashy {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    padding: 8px 10px;
    background: #fff;
    color: #333;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #ddd;
    text-decoration: none;
    overflow: hidden;
    transition: color 0.3s ease;
}

.btn-flashy i {
    font-size: 15px;
}

.btn-flashy::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #000, #222, #000);
    transition: all 0.4s ease;
    z-index: 0;
}

.btn-flashy:hover::before {
    left: 0;
}

.btn-flashy:hover {
    color: #fff;
}

.btn-flashy span, .btn-flashy i{
    position: relative;
    z-index: 1;
    font-size: 14px;
}
/* menu bar */
.navbar-brand{
    display: none
}
.m-navbar{
    background-color: #f2f2f2 !important;
    padding-top: 0px;
    padding-bottom: 0px;
    transition: all 0.3s ease;
}
.m-navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1060;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.m-navbar .nav-link{

    font-weight: 500;

    letter-spacing: .5px;

    color: #373737;

    border-left: 1px solid #d7d7d7;

    padding: 10px 30px !important;

    font-size: 15px;
}
.m-navbar .nav-link i{
    font-size: 14px;
    padding-right: 4px;
}
.m-navbar .navbar-nav .nav-item:last-child .nav-link {
    border-right: 1px solid #d7d7d7;
}
.m-navbar .nav-link:hover{

    background: rgb(229 229 229);

    color: #000;
}
.m-navbar .nav-link.active{

    background: rgb(229 229 229);
}
.main-heading{
    position: relative;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
}
.m-card {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.m-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.m-card .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: #f2f2f2;
    color: #000000;
    font-size: 20px;
    position: absolute;
    right: 10px;
    top: 10px;
}

.m-card h6 {
    margin: 0;
    font-size: 16px;
    color: #121212;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.m-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0px;
    margin-top: 40px;
}
/* ==== Modern Table Styling ==== */
.m-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 100% !important;
    table-layout: auto !important;
}

.m-table thead {
    background: #f9fafb;
}

.m-table th {
    font-weight: 600;
    font-size: 14px;
    background: #e5e5e5;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: none;
    padding: 14px;
    white-space: nowrap;
}

.m-table td {
    font-weight: 600;
    font-size: 14px;
    color: #4b5563;
    padding: 10px;
    vertical-align: middle;
    white-space: nowrap;
}

.m-table tbody tr {
    transition: background 0.2s ease;
}

.m-table tbody tr:hover {
    background: #f3f4f6;
}
.big-card {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.m-form .form-group{
    
margin-bottom: 15px;
}
.m-form .form-group .label-top{
    
font-size: 14px;
    
margin-bottom: 7px;
    
font-weight: 600;
}
.m-form .form-control{
height: 45px;
font-size: 14px
}
.m-form .form-control:focus{
    
box-shadow: none;
    
outline: 0;
    
border-color: #000;
}
.m-form .btn-main{
    margin-top:15px
}
/* ==== Action Buttons ==== */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    margin: 0 4px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.action-btn.view {
    color: #2563eb;
    background: #e0e7ff;
}

.action-btn.edit {
    color: #16a34a;
    background: #dcfce7;
}

.action-btn:hover {
    transform: scale(1.1);
}

/* ==== DataTables Controls ==== */

/* Length & search row */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
}
.dataTables_length label{
    display:flex;
    align-items: center
}
/* Desktop Ã¢â€ â€™ inline */
@media (min-width: 768px) {
    .dataTables_wrapper .dataTables_length {
        float: left;
    }
    .dataTables_wrapper .dataTables_filter {
        float: right;
        text-align: right;
    }
}

/* Mobile Ã¢â€ â€™ stacked */
@media (max-width: 767px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        display: block;
        float: none;
        text-align: left;
        width: 100%;
    }
    .dataTables_wrapper .dataTables_filter {
        margin-top: 10px;
    }
    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
    }
}

/* Search box styling */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    margin-left: 0px;
}

/* Dropdown styling */
.dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 4px 8px;
    margin: 0 8px;
    background: #fff;
    appearance: auto;
}

/* Pagination styling */
.dataTables_wrapper .dataTables_paginate .paginate_button {

    border: none !important;
    transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #2563eb !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {


}

/* ==== Fix Horizontal Scroll Issue ==== */

/* Prevent DataTables from forcing wide inner table */
.dataTables_wrapper .dataTables_scrollHeadInner,
.dataTables_wrapper .dataTables_scrollBody > table {
    width: 100% !important;
}

/* Table itself should never overflow unless many columns */
table.dataTable {
    width: 100% !important;
    table-layout: auto !important;
}

/* Ensure nowrap doesn't break responsiveness */
table.dataTable td,
table.dataTable th {
    white-space: nowrap;
}

/* Hide unnecessary horizontal scrollbar */
.dataTables_wrapper .dataTables_scroll {
    overflow-x: hidden !important;
}
.dataTables_wrapper.dt-bootstrap5{
    width: 100%;
    overflow-x: hidden
}
.dataTables_paginate .pagination{
    justify-content: end;
}
.dataTables_wrapper  input:focus, .dataTables_wrapper  select:focus{
    box-shadow: none;
    outline: 0
}
.row.dt-row{
    margin-bottom: 20px
}
/* Match .m-form .form-control style */
.m-form .select2-container--default .select2-selection--single {
    height: 45px !important;      
    border: 1px solid #ced4da;    
    border-radius: 4px;           
    font-size: 14px;            
    display: flex;
    align-items: center;          
    padding: 0 10px;
}

.m-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 14px;              
    line-height: 1.5;
    color: #212529;
    padding-left: 0;              
}

.m-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;                 
    right: 10px;
}
.m-create-tbl td:first-child{
    min-width: 300px;
}
/* Media Queries */
@media(max-width: 992.2px){
    .dataTables_wrapper .dataTables_length select{
        width: 100px
    }
    .dataTables_wrapper.dt-bootstrap5{
        width: auto;
        overflow-x: auto
    }
    .dataTables_paginate .pagination {
        justify-content: start;
        margin-top: 15px
    }
    .main-content {
        padding-top: 80px;
        padding-bottom: 30px;
        height: 200vh;
    }
    .m-card{
        padding: 15px
    }
    .m-card .icon-box{
        position: relative;
        top: auto;
        right: auto;
    }
    .m-card h3{
        margin-top: 10px;
        font-size: 19px;
    }
    .m-card h6{
        margin-top: 20px;
        font-size: 14px;
    }
    .top-bar{
        height: 50px
    }
    .top-bar .top-bar-logo{
        display: none
    }
    .btn-flashy{
        padding: 6px 8px;
        gap: 4
    }
    .btn-flashy span, .btn-flashy i{
        font-size: 11px
    }
    .navbar-brand {
        display: block;
        padding-top: 0px;
        padding-bottom: 0px
    }
    .navbar-brand img{
        width: 80px;
        filter: brightness(1) invert(1);
    }
    .m-navbar {
        padding-top: 5px;
        padding-bottom: 5px;
        top: 50px;
        position: fixed;
        width: 100%;
        z-index: 1060;
    }
    .m-navbar   .navbar-toggler-icon {
        width: 1em;
        height: 1em;
    }
    .m-navbar .nav-link{
        border-left: 0px;
        border-right: 0px !important;
        padding: 10px 10px !important;
    }
    .m-navbar .navbar-nav{
        padding-top: 10px
    }
}