
:root {
    /* Primary Colors */
    --tanyya-blue: #0056b3;
    --dark-blue: #003a79;
    --light-blue: #e6f7ff;
    --accent-green: #00cc66;

    /* Neutral Colors */
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #e0e0e0;
    --background-gray: #f8f9fa;

    /* Status Colors */
    --info-blue: #0099ff;
    --success-green: #00cc66;
    --warning-amber: #ffaa00;
    --error-red: #dc3545;
  }

body {
    font-family: 'Poppins';
    font-size: 14px;
    background-color:#f8f9fa;
    color: #333;
    font-size: 16px;
}
.bg-blue-700 {
    --tw-bg-opacity: 1;
    background-color: rgba(29, 78, 216, var(--tw-bg-opacity));
}
.border-gray-200 {
    border-bottom: 1px solid #e5e7eb;
}
.font-semibold{
    font-weight: 600;
}
.wrapper, .main {
    background: transparent;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.content {   
    padding-top: 50px;
    box-shadow: 0px 0px 10px #222e3c;
}
.login-bg{
    background: linear-gradient(
        to bottom right, 
        rgba(30, 170, 221, 0.1), 
        rgba(0, 0, 255, 0.1)
    ), 
    url('../img/photos/miller-cover.webp');
    background-blend-mode: overlay; /* Makes gradient blend with the image */
    background-size: cover; /* Ensures the image covers the entire element */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat;
}
.login-main{
    position: absolute;
    bottom: 20px;
}
.login-pannel-start{
    background-color: #1EAAE7;
    border-radius: 5px;
    min-height: 400px;
}
.login-pannel-start h1 {
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1.4rem;
    margin-top: 0;
    color: #fff;
    text-align: center;
    padding: 30px 25px 10px;
    z-index: 9;
    position: relative;    
    margin-left: auto;
    margin-right: auto;
}
.login-pannel-start .text {
    padding: 0px 30px 0px;
    margin: 0 auto;
    color: #fff;
    opacity: 0.8;
    font-size: 16px;
    margin-bottom: 15px;
}
.login-contact {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
    color: #FFF;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 20px;
}
.login-form{
    width: 300px;
    min-height: 400px;
    background-color: #FFF;
    border-radius: 5px;    
}
.alert-danger {
    color: var(--bs-form-invalid-color);    
    font-size: 80%;
    margin-top: .25rem;
    width: 100%;
}
.profile-image{
    width: 128px;
    height: 128px;
    align-items: center;
    display: flex;
    justify-content: center;
    font-size: 48px;
    text-shadow: 5px 1px #ccc;
    letter-spacing: 5px;
}


/*#sidebar{
    width: 240px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #ffffff;
    border-right: 1px solid #e0e0e0;
}
 
.main > .navbar{
    position: fixed;
    left: 0px;
    width: 100%;
    z-index: 99;
}
main.content{
    width: calc(100% - 260px);
    margin-left: 260px;
}*/
.sidebar .dropdown-toggle::after{
 content: none;
}
#sidebar{
    position:sticky;
}
.wrapper .main{
    /*margin-left: 260px;*/
    padding: 0px;
}
#sidebar.collapsed + .main{
    margin-left: -0px;
    padding: 0px;
}
.sidebar-link, a.sidebar-link {
    padding: 12px 24px;
    display: block;
    transition: all 0.3s;
    font-weight: 500;
    background: transparent;
    background: transparent;
    color: #333;
    font-size: 16px;
}
.sidebar-content{
    background: #ffffff;
    border-right: 1px solid #e0e0e0;
}
.sidebar-item.active{
    background: #f0f7ff;
    color: #0056b3;
    
    font-weight: 500;
}
.sidebar-item:hover a, .sidebar-item.active .sidebar-link:hover, .sidebar-item.active .sidebar-link{
    background: #f0f7ff;
    color: #0056b3;    
    font-weight: 500;
}
.sidebar-item.active a.sidebar-link{
color: #0056b3;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
}

/** Tabs CSS **/
.nav-tabs {    
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0px;
}
.nav-item .nav-link{
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    border: 0px;
    color: #333;
}
.nav-tabs .nav-item .nav-link.active {
    color: var(--tanyya-blue);
    border-bottom-color: var(--tanyya-blue);
    background: transparent;
    border-bottom: 4px solid  var(--tanyya-blue);
}
.sidebar-link i, .sidebar-link svg, a.sidebar-link i, a.sidebar-link svg {
    color: rgb(0 86 179) !important;    
}

.section-title, h1.h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.tab-pane .section-title {
    margin: 40px 0px;
}
/* Table CSS **/
.table {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 24px;
}
.table>thead {    
    background: #f8f9fc;
}
table thead th{
    padding: 16px 10px !important;
    background-color: #f8f9fc;
    border: 0px;
    font-weight: 600;
    font-size: 13px !important;
    color: #495057 !important;
    border-bottom: 1px solid var(--light-gray);
}
table tbody tr td{ 
    padding: 16px 10px !important;
    border: 0px;
    border-bottom: 1px solid var(--light-gray);
    align-items: center;
    transition: background-color 0.2s ease;    
    color: #334155 !important;
    font-size: 13px;
}
table.table-hover tbody tr:hover {
    background-color: var(--light-blue);
    --bs-table-accent-bg: none !important;
}
.table-striped>tbody>tr:nth-of-type(odd) {
    --bs-table-accent-bg: #FFF;
    color: #333;
}
table thead tr{
    border: 0px;
}
.table>:not(caption)>*>* {
    padding: 0.7rem 0.5rem;
}
td .bg-success {
    background-color: #dcf5e8 !important;
    color: #0d914b;
    width: 85px;
}
td .bg-secondary{
    background-color: #e2e8f0 !important;
    color: #64748b;
    width: 85px;
}
td .badge {
    display: inline-block;
    padding: 7px 15px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
}
.btn-warning {
    background-color: #ffc107;
    color: #fff;
}
td .btn{
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.dataTables_filter, .pagination{
    float: right;
    margin-bottom: 10px;
}
.dataTables_filter label{
    display: flex;
    align-items: center;
    gap: 10px;
}
.pagination{
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-title {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}
/** Buttons CSS **/
.btn.btn-primary{
    background-color: var(--tanyya-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.2s ease;
    width: fit-content;
}
.btn{
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;    
}
button[type='button'].close{
    background: transparent;
    border: 0px;
    color: #FFF;
    font-size: 26px;
    line-height: 20px;
}
.modal-footer .btn-secondary {
    background-color: white;
    color: #555;
    border: 1px solid #ddd;
}
.modal-footer .btn-secondary:hover {
    background-color: white;
    color: #333 !important;
    border: 1px solid #ddd;
}
.modal-footer .btn.btn-primary{
    background-color: #4361ee;
    color: white;
    border: none;
    line-height: 20px;
}
.modal-content {
    background-color: white;
    border-radius: 8px;    
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
.modal-header {
    background-color: #4361ee;
    padding: 16px 20px;    
}
.modal-header .modal-title{
    color: white; 
    font-size: 20px;
}
.modal-body h4.text-muted {
    color: #6c757d !important;
    font-size: 16px;
    margin: 30px auto;
}
.btn-close{
    opacity: 1;
    filter: invert(1);
}
.form-label, label {
    margin-bottom: .5rem;
    display: block;
    margin-bottom: 0px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.form-control, .form-select{
    height:40px;
}
.custom-toast{
    right: 0px;
    top: 80px;
}
.btn.remove-buyer, .btn.remove-product{
    padding:5px 10px;
}
#add-buyer.btn, .add-product.btn{
    padding: 5px 10px;
}
.content {
    padding: 3rem 1rem 1.5rem;
}
.payment_update_div .col-auto {
    min-width: 16;
}
table#logTable b, table#logTable strong {
    background: #f0f7ff;
    padding: 2px 8px;
    border-radius: 15px;
}
table#logTable hr:not([size]) {    
    padding: 0px;
    margin: 3px 0px;
}
.logdetailsroe {
    font-size: 14px;
}


.datalist-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.datalist-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    appearance: none; /* Removes default browser styling */
}

.datalist-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Optional: Show a dropdown icon inside the input field */
.datalist-wrapper::after {
    content: "▼";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    font-size: 14px;
}
/* Wrapper for dropdown */
.dropdown-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
}

/* Input field */
.dropdown-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
}

/* Dropdown List */
.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn){
    width: 100%;
    padding: 0px;
    height: 38px;
}
.bootstrap-select>.dropdown-toggle{
    height: 38px !important;
    background: transparent;
}
.dropdown-toggle:after{
    display: none;
}
.bootstrap-select>.dropdown-toggle.bs-placeholder, .bootstrap-select>.dropdown-toggle.bs-placeholder:active, .bootstrap-select>.dropdown-toggle.bs-placeholder:focus, .bootstrap-select>.dropdown-toggle.bs-placeholder:hover{
    background: transparent !important;
    height: 38px;
}
/* Disable default DataTables sort icons */
table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  font-family: 'bootstrap-icons';
  font-weight: normal;
  font-style: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  speak: never;
}

/* Default state */
table.dataTable thead th.sorting:after {
  content: "\f127"; /* bi-arrow-down-up */
}

/* Ascending sort */
table.dataTable thead th.sorting_asc:after {
  content: "\f148"; /* bi-arrow-up */
}

/* Descending sort */
table.dataTable thead th.sorting_desc:after {
  content: "\f128"; /* bi-arrow-down */
}
  

@media (max-width: 992px) {
    .login-main{
        position:unset;
        bottom: 20px;
    }
    .login-pannel-start{
        display: none;
    }
    .login-form{
        width: 100%;
        max-width: 400px;
    }
}