:root {
    --primary-color: #e2e8f0;
    --primary-color-10: #1e293b;
    --primary-light: #1e293b;
    --primary-dark: #00796b;
    --accent-color: #ff4081;
    --text-primary: #212121;
    --text-secondary: #757575;
    --background-light: #ffffff;
    --background-grey: #f5f5f5;
    --background-dark: #2c3e50;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #4caf50;
    --error-color: #f44336;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}



/* Rest of your existing CSS remains unchanged */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: "Raleway", sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: var(--text-primary);
}
#mySidebar,hr, ul, #topbar{
background-color: var(--primary-color);
color: var(--primary-light);
}

input[type=text], [type=password], [type=tel], [type=date], [type=number], select, [type=file] {
    width: 100%;
    padding: 14px 16px;
    margin: 8px 0 16px 0;
    display: inline-block;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    background-color: var(--background-light);
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-color);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.2);
}

input[type=submit] {
    width: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: var(--primary-light);
    padding: 16px 20px;
    margin: 16px 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 150, 136, 0.3);
}

div.user_form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    z-index: -1;
}

div._form {
    width: 90%;
    padding: 40px;
    max-width: 500px;
    height: auto;
    min-height: auto;
    box-shadow: 0 10px 30px var(--shadow-color);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url("../img/vec4.avif");
    background-position: center;
    background-size: cover;
    border-radius: 12px;
    background-color: var(--background-light);
}

div._form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    z-index: -1;
}

div.main_form {
    padding: 40px;
    border-radius: 12px;
    background-color: var(--background-light);
    box-shadow: 0 10px 30px var(--shadow-color);
    margin: 30px auto;
    max-width: 1200px;
    border: none;

}

/* Main Form - Perfectly Centered */
div.main_form1 {
    padding: 40px;
    border-radius: 12px;
    background-color: var(--background-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none;

    /* Perfect window center */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Responsive sizing */
    width: 90%;
    max-width: 700px;
    box-sizing: border-box;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    div.main_form1 {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 40px auto;
        width: 95%;
        padding: 30px 25px;
    }
}

div.main_sub_form {
    border-radius: 12px;
    padding: 40px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    overflow-y: auto;
    max-width: 500px;
    max-height: 80vh;
    min-height: auto;
    background-color: var(--background-light);
    box-shadow: 0 10px 30px var(--shadow-color);
    border: none;
}

div.banner_heading {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

div.banner_heading_log {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

span.forgot_link {
    float: right;
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

span.forgot_link:hover {
    color: var(--primary-dark);
    cursor: pointer;
    text-decoration: underline;
}

span.signup_link {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

span.signup_link:hover {
    color: var(--primary-dark);
    cursor: pointer;
    text-decoration: underline;
}

span.signup_terms {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

span.signup_terms:hover {
    color: var(--primary-dark);
    cursor: pointer;
    text-decoration: underline;
}

div.login_footer {
    margin: 20px 0;
    text-align: center;
}

div.footer {
    position: fixed;
    bottom: 0; /* Always at bottom */
    left: 50%;
    transform: translateX(-50%);
    max-width: 300px;
    width: 100%;
    padding: 16px;
    font-size: 12px;
    color: var(--primary-color);
    text-align: center;
    /* Add margin/padding inside instead of bottom position */
    padding-bottom: 20px; /* This creates the 20px space */
}

div.error-class {
    padding: 30px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    background-color: var(--background-light);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: center;
    color: var(--error-color);
    font-weight: 500;
}

div.row.content {
    height: auto;
    padding: 20px;
}

@media screen and (max-width: 767px) {
    div.user_form, div._form, div.main_sub_form {
        width: 95%;
        padding: 30px 20px;
        position: relative;
        transform: none;
        top: auto;
        left: auto;
        margin: 20px auto;
    }

    div.main_form {
        padding: 20px;
        margin: 15px;
    }

    div.footer {
        position: relative;
        margin: 20px auto;
    }


}

/* Responsive design */
@media (max-width: 1100px) {
    .chart-container {
        grid-template-columns: 1fr;
    }
}
#coverScreen {
    background: var(--primary-color) url("../img/spin3.gif") no-repeat center center;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: visible;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    opacity: 0.991;
    font-size: 25px;
    color: var(--primary-light);
    font-style: italic;
    text-align: center;
    background-size: 120px 80px;
    backdrop-filter: blur(4px);
    flex-direction: column;
    gap: 20px;
}

div.pass_show {
    position: relative;
}

div.pass_show .ptxt {
    position: absolute;
    top: 50%;
    right: 16px;
    z-index: 2;
    color: var(--text-secondary);
    margin-top: -12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

div.pass_show .ptxt:hover {
    color: var(--text-primary);
    background: var(--background-grey);
}

.map-box-content {
    background-color: var(--background-dark);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 16px;
    color: #e0e0e0;
    height: auto;
    width: 300px;
    display: block;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
}

.map-box-inner-content {
    padding: 12px;
    display: block;
}

div.feeds {
    background: var(--background-grey);
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
}

.selected-row {
    background-color: rgba(76, 175, 80, 0.15) !important;
    border-left: 4px solid var(--success-color);
}

#field_class_name td {
    text-align: center;
    vertical-align: middle;
    background-color: var(--background-grey);
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

#form_class_lead td {
    text-align: left;
    vertical-align: middle;
    background-color: var(--background-grey);
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

#form_class_lead tr td:first-child {
    display: none;
}

#form_class_lead.dataTable tfoot th {
    border-collapse: collapse;
    background-color: var(--primary-light);
    color: var(--primary-light);
    padding: 12px;
}

.required:after {
    content: " *";
    color: var(--error-color);
    font-weight: bold;
}

table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

@media only screen and (max-width: 900px) {
    .one {
        display: none;
    }
}

.leads_source_tb td {
    text-align: left;
    vertical-align: middle;
    color: var(--text-primary);
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.setting_btn {
    width: 250px;
    box-shadow: var(--card-shadow);
    border: none;
    border-radius: 8px;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--primary-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px 0;
}

.setting_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.legder {
    border-radius: 12px;
    background-color: var(--background-light);
    padding: 24px;
    margin: 12px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    box-shadow: var(--card-shadow);
    width: 250px;
    max-width: 280px;
    height: 120px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    flex-direction: column;
    text-align: center;
}

.legder:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 150, 136, 0.3);
}

#myInput {
    background-position: 16px center;
    background-repeat: no-repeat;
    width: 100%;
    font-size: 16px;
    padding: 14px 20px 14px 48px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#myInput:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.2);
    outline: none;
}

#myUL {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#myUL li a {
    border: 1px solid var(--border-color);
    margin-top: -1px;
    background-color: var(--background-light);
    padding: 16px;
    text-decoration: none;
    font-size: 16px;
    color: var(--text-primary);
    display: block;
    transition: all 0.2s ease;
    border-radius: 4px;
}

#myUL li a:hover:not(.header) {
    background-color: var(--primary-light);
    color: var(--primary-light);
    transform: translateX(4px);
}

.ajs-cancel {
    display: none;
}

.fc-day-number {
    text-align: left;
    position: absolute;
    top: 8px;
    margin-left: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.fc-widget-header {
    background-color: var(--background-light);
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px;
}

#accordion {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

#accordion>div {
    flex: 1;
    padding: 20px;
    background: var(--background-grey);
    transition: all 0.3s ease;
    cursor: pointer;
    margin:15px;
}

#accordion>div:hover {
    background: var(--background-grey);
    color: var(--text-primary);
}

.double {
    transform: scale(2);
    transform-origin: 0 0;
}

.leaflet-control-container .leaflet-routing-container-hide {
    display: none;
}

.wrapper {
    display: table;
    width: 100%;
    table-layout: fixed;
    padding: 16px;
    border-radius: 8px;
    background: var(--background-light);
    box-shadow: var(--card-shadow);
    margin: 16px 0;
}

.column {
    display: table-cell;
    padding: 16px;
    overflow: hidden;
    vertical-align: middle;
    border-right: 1px solid var(--border-color);
}

.column:last-child {
    border-right: none;
}

.capitalize {
    text-transform: capitalize;
}

div.pcard {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--background-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    padding:15px;
}

div.pcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pcard_img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.price {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin: 12px 0;
}

.pcard button {
    border: none;
    outline: 0;
    padding: 16px;
    color: var(--primary-light);
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    text-align: center;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pcard button:hover {
    opacity: 0.9;
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
}

img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(0.75);
}

.box {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding: 20px;
    justify-content: center;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

.alertify.popup2 {
    background: rgba(217, 92, 92, 0.95);
    border-radius: 12px;
}

.badges-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 20px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    background: var(--background-light);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: var(--card-shadow);
    flex: 1;
    min-width: 200px;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
    color: var(--primary-light);
}

.badge-content {
    flex: 1;
}

.badge-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.badge-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.badge-trend {
    font-size: 12px;
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.trend-up {
    color: var(--success-color);
}

.trend-down {
    color: var(--error-color);
}

.warning {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 16px;
    background-color: var(--primary-color);
    color: var(--primary-light);
    position: relative;
    margin: 16px 0;
    box-shadow: var(--card-shadow);
}

* {
    box-sizing: border-box;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -16px;
}

.col-25 {
    flex: 25%;
}

.col-50 {
    flex: 50%;
}

.col-75 {
    flex: 75%;
}

.col-70 {
    flex: 70%;
}

.col-30 {
    flex: 30%;
}

.col-70,
.col-30,
.col-25,
.col-50,
.col-75 {
    padding: 0 16px;
}

.container {
    background-color: var(--background-light);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin: 16px 0;
}

input[type=text] {
    width: 100%;
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

input[type=text]:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.2);
    outline: none;
}

label {
    margin-bottom: 12px;
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.icon-container {
    margin-bottom: 16px;
    padding: 16px 0;
    font-size: 24px;
    display: flex;
    gap: 12px;
}

.btn {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-color));
    color: var(--text-primary);
    padding: 5px 15px;
    margin: 5px 2px;
    border: none;
    width: 150px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 300;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb, 0, 100, 200), 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow:
            0 8px 25px rgba(var(--primary-color-rgb, 0, 100, 200), 0.3),
            0 0 0 2px rgba(var(--primary-color-rgb, 0, 100, 200), 0.1);
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-dark));
    color: var(--primary-color);
}



a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: "Calibri Light";
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

hr {
    border: 1px solid var(--border-color);
    margin: 24px 0;
}

span.price {
    float: right;
    color: var(--text-primary);
}

@media (max-width: 800px) {
    .row {
        flex-direction: column-reverse;
    }
    .col-25 {
        margin-bottom: 20px;
    }
}

.mpesa-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    text-align: center;
}

.mpesa-icon {
    display: inline-flex;
    align-items: center;
    font-size: 24px;
    color: #34B233;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
}

.mpesa-icon i {
    margin-right: 8px;
    color: #EA2127;
}

.mpesa-icon span {
    font-weight: bold;
    text-transform: uppercase;
}

.bank-icon {
    display: inline-flex;
    align-items: center;
    font-size: 20px;
    color: #007bff;
    font-family: "Raleway", sans-serif;
    font-weight: 600;
}

.bank-icon i {
    margin-right: 8px;
    color: #34B233;
}

.bank-icon span {
    font-weight: bold;
    text-transform: uppercase;
}

.blink_me {
    animation: blinker 2s ease-in-out infinite;
}

@keyframes blinker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.waitingForConnection2 {
    animation: blinker2 1.7s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}

@keyframes blinker2 {
    to { opacity: 0.6; }
}



.box-left, .box-right {
    flex: 1;
    padding: 24px;
    border-radius: 12px;
    background-color: var(--background-light);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.box-left:hover, .box-right:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}



#errorPage {
    border: 1px solid var(--border-color);
    font-family: monospace;
    background-color: #1a1a1a;
    color: #00ff00;
    overflow: auto;
    padding: 20px;
    resize: both;
    width: 100%;
    font-size: 14px;
    border-radius: 8px;
    line-height: 1.5;
}

.form-container {
    background: var(--background-light);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    width: 100%;
    margin: 16px 0;
}

.form-group {
    margin-bottom: 20px;
}

.tbl_btncluster {
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: var(--primary-light);
    font-size: 16px;
    margin: 8px 0;
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
}

.tbl_btncluster:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 150, 136, 0.3);
}
.tbl_btn{
    width: 30px;
}

.quotation {
    max-width: 800px;
    margin: auto;
    padding: 32px;
    background-color: #e6f7f7;
    border: 2px solid var(--teal-color);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.quotation-header {
    border-bottom: 2px solid var(--teal-color);
    padding-bottom: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.quotation-header h1 {
    color: var(--teal-color);
    margin: 0;
    font-size: 28px;
}

.quotation-details {
    margin-bottom: 32px;
}

.quotation-details p {
    margin: 8px 0;
    color: var(--text-primary);
}

.tableQote {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.tableQote th, .tableQote td {
    border: 1px solid var(--teal-color);
    padding: 12px;
    text-align: left;
}

.tableQote th {
    background-color: #d0f0f0;
    color: #004d4d;
    font-weight: 600;
}

.total {
    text-align: right;
    font-weight: bold;
    font-size: 18px;
    color: var(--teal-color);
}

.user-container {
    margin-bottom: 20px;
}

.user-name {
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-primary);
}

.progress-bar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
    height: 25px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress {
    height: 100%;
    text-align: right;
    padding-right: 12px;
    color: var(--primary-light);
    font-weight: bold;
    line-height: 25px;
    transition: width 0.5s ease-in-out;
}

.green { background: linear-gradient(to right, var(--primary-color), var(--primary-dark)); }
.yellow { background: linear-gradient(to right, #ffc107, #ff9800); }
.red { background: linear-gradient(to right, #f44336, #d32f2f); }

.status-container {
    background-color: var(--background-light);
    box-shadow: var(--card-shadow);
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
    width: 100%;
}

.bankContainer7 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.detailBoxes7 {
    flex: 1 1 calc(50% - 10px); /* Subtract half the gap */
    background: var(--background-light);
    padding: 24px;
    box-sizing: border-box;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    min-height: 150px; /* Consistent minimum height */
    min-width: 300px; /* Minimum width to prevent squeezing */
}

.detailBoxes7:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Ensure proper wrapping on smaller screens */
@media (max-width: 768px) {
    .detailBoxes7 {
        flex: 1 1 100%;
    }
}


.fixed-div {
    border: 1px solid var(--border-color);
    background: var(--background-light);
    padding: 16px;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    -webkit-overflow-scrolling: touch;
}

.scrollable-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

.scrollable-table table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
}

.scrollable-table th,
.scrollable-table td {
    border: 1px solid var(--border-color);
    padding: 12px;
    var(--primary-light)-space: nowrap;
}

.scrollable-table th {
    background-color: var(--primary-light);
    color: var(--primary-light);
    font-weight: 600;
}


.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px;
    background-color: var(--background-light);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-title i {
    color: var(--primary-color);
}

.dashboard-controls {
    display: flex;
    gap: 15px;
}


 /*Canvas Styles */
canvas {
    width: 100% !important;
    max-height: 400px;
    background-color: var(--background-light);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    padding:10px;
}

canvas:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Chart container styles */
.chart-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 25px;
    margin-bottom: 30px;
    overflow-x: auto; /* Prevent overflow */
}

.chart-card {
    background-color: var(--background-light);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 20px;
    transition: all 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-title i {
    color: var(--text-primary);
}

.chart-options {
    display: flex;
    gap: 10px;
}

.chart-option-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.chart-option-btn:hover, .chart-option-btn.active {
    background-color: var(--primary-color);
    color: var(--primary-light);
}

/* Metrics section */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.metric-card {
    background-color: var(--background-light);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.metric-title {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.metric-change {
    margin-top: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.positive-change {
    color: var(--success-color);
}

.negative-change {
    color: var(--error-color);
}

.btn_dsh {
    padding: 10px 20px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: var(--primary-light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn_dsh:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 150, 136, 0.3);
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .chart-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .chart-options {
        align-self: stretch;
        justify-content: center;
    }

    .badges-container {
        flex-direction: column;
    }
}

@media (max-width: 550px) {
    .chart-card {
        padding: 15px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .badge {
        min-width: 100%;
    }
    .main-content {
        padding: 15px;
    }
}

.date-filter {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background-light);
    color: var(--text-primary);
    font-size: 14px;
}

