@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

.chart-loader {
    position: absolute;
    top: 15%;
    left: 0;
    right: 0;
    bottom: 5%;
    border-radius: 8px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}


body.main2php {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-image: linear-gradient(90deg, rgb(100, 100, 252), rgb(20, 20, 255), rgb(0, 0, 100));
    background-color: black;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    cursor: default;
    user-select: none;
}

.main2php .dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 2rem;
    padding-top: 0;
    justify-content: flex-start;
}

.main2php .header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;              /* never wrap — one single row */
    align-items: center;
    gap: 10px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #0f2c47;
    padding: 0.65rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    overflow-x: auto;              /* if screen too narrow, scroll instead of wrap */
    scrollbar-width: none;         /* hide scrollbar on Firefox */
}



.main2php .header::-webkit-scrollbar {
    display: none;                 /* hide scrollbar on Chrome/Safari */
}
 
.main2php .header h1 {
    margin: 0;
    font-size: clamp(14px, 1.6vmax, 24px);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;               /* title never shrinks */
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}


.main2php .filters {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;            /* all filters in one row */
    align-items: center;
    gap: 6px;
    flex: 1;                      /* take all remaining space */
    min-width: 0;                 /* allow shrinking */
}

.main2php .filters select,
.main2php .filters button {
    padding: 0.45rem 0.7rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background-color: #1d3a5f;
    color: white;
    font-size: clamp(10px, 0.85vmax, 13px);
    white-space: nowrap;
}
 
.main2php .filters button {
    padding: 0.45rem 0.75rem;
    font-size: 1rem;
    flex-shrink: 0;
}

.main2php .filters button:hover {
    animation: toggle_shadow 2s infinite ease-in-out;
}
 
.main2php .filters select:hover,
.main2php .filters select:focus {
    box-shadow: 0 0 4px 2px rgba(255, 255, 255, 1);
    animation: toggle_shadow 2s infinite ease-in-out;
    outline: none;
}
 

.main2php .filters select option:hover {
    color: black;
}

@keyframes toggle_shadow {

    0%,
    100% {
        box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.6);
    }

    50% {
        box-shadow: 0 0 20px 10px rgba(255, 255, 255, 1);
    }
}

.main2php .payment {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;               /* filter groups don't shrink/wrap */
    white-space: nowrap;
}
 
.main2php .payment p {
    font-size: clamp(10px, 0.85vmax, 13px);
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.main2php .card {
    position: relative;
    background: #112e4c;
    padding: 10px;
    border-radius: 1vw;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 1);
    opacity: 0.85;
    text-align: center;
    transition: 0.3s ease;
    flex: 1 1 calc(25% - 1rem);
    min-width: 22.9vw;
    height: 35vh;
    min-height: 300px;
    max-height: 33vmin;
}

.main2php .card:hover {
    opacity: 1;
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 1);
    cursor: pointer;
    animation: toggle_shadow 2s infinite ease-in-out;
}

.main2php .card canvas {
    min-height: 200px;
    max-height: 24.5vmin;
}

.main2php .header .nav-inline {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.main2php .card h3 {
    font-size: max(1.2vmax, 12px);
    margin-bottom: 0.5rem;
}

.main2php .value {
    font-size: max(1.5vmax, 10px);
    font-weight: bold;
    color: cyan;
}

.main2php .half-span {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50%);
}

.main2php .full-span {
    flex: 1 1 100%;
    max-width: 100%;
}

.main2php .bar,
.main2php .chart,
.main2php .pie {
    background: #0f2c47;
    border-radius: 8px;
    max-height: 30vh;
    margin-top: 1rem;
}

/* Sidebar styles for prediction model display */
#sidebar {
    position: fixed;
    top: 0;
    right: -30%;
    width: 30%;
    height: 100%;
    background: #1e1e2f;
    border-left: 2px solid #444;
    overflow-y: auto;
    transition: right 0.4s ease-in-out;
    padding: 15px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    z-index: 999;
    color: #f0f0f0;
}

#sidebar.open {
    right: 0;
}

#toggleSidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #4a90e2;
    color: #fff;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 5px 0 0 5px;
    z-index: 1000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

#sidebar h2 {
    margin-top: 15px;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #2c2c3e;
    color: #ffffff;
}

#sidebar table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #2a2a3b;
}

#sidebar th,
#sidebar td {
    border: 1px solid #555;
    padding: 6px;
    text-align: center;
    color: #f0f0f0;
}

#sidebar td[style*="color:lightgreen; background-color:red"] {
    color: #90ee90;
    background-color: #b22222;
}

#sidebar td[style*="color:red; background-color:lightgreen"] {
    color: #b22222;
    background-color: #90ee90;
}

#sidebar td[style*="color:white; background-color:orange"] {
    color: #ffffff;
    background-color: #ff8c00;
}

.hiddenTable {
    display: none;
}

@media (max-width: 1520px) {
    .main2php .dashboard {
        justify-content: center;
    }

    .main2php .card,
    .main2php .half-span {
        flex: 1 1 32%;
        min-width: 31%;
    }

    .main2php .full-span {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 100%;
    }

    .main2php .filters select,
    .main2php .filters button {
        width: 100%;
    }
}

@media (max-width: 1200px) {
    .main2php .dashboard {
        justify-content: center;
    }

    .main2php .special {
        display: none;
    }

    .main2php .half-span,
    .main2php .full-span {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 100%;
    }

    .main2php .card,
    .main2php .half-span-screen {
        flex: 1 1 49%;
        max-width: 49%;
        min-width: 48%;
    }

    .main2php .half-span-pie {
        max-width: 100%;
    }

    .main2php .filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .main2php .filters select,
    .main2php .filters button {
        width: 100%;
    }
}

@media (max-width: 880px) {
    .main2php .dashboard {
        justify-content: center;
    }

    .main2php .special {
        display: none;
    }

    .main2php .card,
    .main2php .half-span,
    .main2php .full-span {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 80%;
    }

    .main2php .chart {
        min-height: 1000px;
        max-height: 1000px;
    }

    .main2php .filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .main2php .filters select,
    .main2php .filters button {
        width: 100%;
    }

    .darkmode .navigation {
        min-width: 90% !important;
    }
}

.main2php table,
.main2php tr,
.main2php td,
.main2php th,
.main2php thead,
.main2php tbody {
    width: 100%;
    border: 1px white solid;
    border-collapse: collapse;
}

.main2php .payment button.active {
    background-color: #4CAF50;
    color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}

.main2php .payment button.active:hover {
    background-color: red;
    color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}

.main2php th,
.main2php td {
    padding: 0.5rem;
    max-width: 5%;
}

.main2php p,
.main2php h3 {
    margin: 0;
    padding: 1vh;
    font-size: min(2vmax, 40px);
}


.main2php .modal {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.main2php .show {
    display: flex;
}

.main2php .modalContent canvas {
    max-width: 90vw;
    max-height: 75vh;
    min-height: 150px;
}

.main2php .modalContent {
    max-width: 90vw;
    max-height: 90vh;
    background-color: #112e4c;
    color: white;
    position: relative;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.main2php .close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    background: #ff4c4c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    z-index: 11;
}

.darkmode .navigation {
    min-width: 30vw;
    min-height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    background: linear-gradient(to bottom right, #000000, #0b1e35);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.6);
    z-index: 100;
    padding: 24px;
    transition: transform 450ms ease-in-out, min-width 450ms ease;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 2px solid rgba(0, 255, 255, 0.3);
}

.darkmode .navigation-hide {
    transform: translateX(100%);
}

.darkmode .navigation .navBar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.darkmode .navigation .navBar .update {
    background-color: transparent;
    border: none;
    color: #00ffff;
    font-size: 24px;
    transition: transform 250ms ease-in-out, color 250ms;
    cursor: pointer;
    align-self: flex-end;
    position: fixed;
    z-index: 200;
}

.darkmode .navigation .navBar .update:hover {
    transform: scale(1.5);
    color: #00ccff;
}

.darkmode .navigation .navBar .navList {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.darkmode .navigation .navBar .navListItems {
    padding: 12px 18px;
    background: rgba(0, 255, 255, 0.08);
    border-left: 4px solid transparent;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    transition: all 200ms ease;
    position: relative;
    cursor: pointer;
}

.darkmode .navigation .navBar .navListItems:hover {
    background: rgba(0, 255, 255, 0.15);
    border-left: 4px solid #00ffff;
    color: #00ffff;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.3);
}

.darkmode .navigation .navBar .child-content {
    display: none;
    padding-left: 15px;
    list-style-type: none;
    margin: 0;
}

.darkmode .navigation .navBar .navigation-parent.active .child-content {
    display: block;
}

.darkmode .navigation .navBar .navigation-parent {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.darkmode .navigation .navBar .collapse-arrow {
    float: right;
    transition: transform 0.3s ease;
}

.darkmode .navigation .navBar .navigation-parent.active .collapse-arrow {
    transform: rotate(90deg);
}

.darkmode .selectedDashboard {
    background: rgba(0, 255, 255, 0.15) !important;
    border-left: 4px solid #00b6b6 !important;
    color: #00ffff !important;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.3) !important;
    cursor: default !important;
}

.darkmode .usernameHeading {
    color: #00ffff;
    font-size: 24px;
    font-weight: 600;
    max-width: 90%;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6), 0 0 15px rgba(0, 255, 255, 0.3);
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 6px;
    letter-spacing: 0.5px;
    padding-top: 0;
    margin-top: 0;
}

body.change_password {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to right, #d3cce3, #e9e4f0);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.change_password .container {
    background: rgba(255, 255, 255, 0.92);
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 400px;
}

.change_password h2 {
    text-align: center;
    color: #4B0082;
}

.change_password .form-group {
    margin-bottom: 20px;
}

.change_password label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.change_password input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

.change_password input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #4B0082;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

.change_password input[type="submit"]:hover {
    background-color: #3a006b;
}

.change_password .message {
    margin-top: 15px;
    color: #d8000c;
    font-weight: bold;
    text-align: center;
}

.change_password .message.success {
    color: green;
}

.change_password #back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #1c87c9;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

body.forgot_password {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, #74ebd5, #acb6e5);
    margin: 0;
}

.forgot_password .forgot-container {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 350px;
}

.forgot_password h2 {
    margin-bottom: 20px;
    color: #333;
}

.forgot_password label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    color: #444;
}

.forgot_password input[type="text"] {
    padding: 10px;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.forgot_password button {
    background-color: #1c87c9;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.forgot_password button#back-button {
    position: fixed;
    left: 20px;
    top: 20px;
    background-color: #1c87c9;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.forgot_password button:hover {
    background-color: #155d8b;
}

.forgot_password .message {
    margin-top: 15px;
    font-weight: bold;
    color: red;
}


body.landingphp {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    color: #333;
    padding: 20px;
    text-align: center;
}

.landingphp h1 {
    padding-bottom: 40px;
    font-size: 2.5rem;
    color: #2c3e50;
}

.landingphp .mainDiv {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 3vw;
    padding-left: 2vw;
    justify-content: center;
}

.landingphp .mainDiv .homepageCards {
    position: relative;
    min-width: 20vw;
    min-height: 20vw;
    max-height: 20vw;
    background: url(./data/homepageCards\ logo.png);
    background-size: 75%;
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.35);
    transition: all 0.35s ease-in-out;
    cursor: pointer;
    overflow: hidden;
    padding: 2vh;
    gap: 1vh;
}

.landingphp .mainDiv .homepageCards:hover {
    transform: translateY(-6px) scale(1.07);
    box-shadow: 0 14px 28px rgba(30, 58, 138, 0.45);
}

.landingphp .mainDiv .homepageCards .navigationByCards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    opacity: 0;
    border-radius: 50%;
    z-index: 1;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1vh;
    padding: 5%;
    box-sizing: border-box;
}

.landingphp .mainDiv .homepageCards:hover .navigationByCards {
    opacity: 1;
}

.landingphp .mainDiv .homepageCards>*:not(.navigationByCards) {
    position: relative;
    z-index: 2;
}

.landingphp .mainDiv .homepageCards .navigationByCards button {
    position: relative;
    z-index: 2;
    padding: 0.6em 1.2em;
    min-width: 10vw;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease-in-out;
}

.landingphp .mainDiv .homepageCards .navigationByCards button:hover {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.landingphp .mainDiv .homepageCards .navigationByCards img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 1vh;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease-in-out;
    z-index: 2;
}



.navigation {
    min-width: 30vw;
    min-height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    background: linear-gradient(to bottom right, #ffffff, #f2f2f2);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 24px;
    transition: transform 450ms ease-in-out;
    color: #222222;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 2px solid rgba(0, 0, 0, 0.1);
}

.navigation-hide {
    transform: translateX(100%);
}

.navigation .navBar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.navigation .navBar .update {
    background-color: transparent;
    border: none;
    color: #1d3a5f;
    font-size: 24px;
    transition: transform 250ms ease-in-out, color 250ms;
    cursor: pointer;
    align-self: flex-end;
    position: fixed;
    z-index: 200;
}

.navigation .navBar .update:hover {
    transform: scale(1.5);
    color: #0f2b45;
}

.navigation .navBar .navList {
    list-style: none;
    padding: 0;
    padding-top: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.navigation .navBar .navListItems {
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.03);
    border-left: 4px solid transparent;
    border-radius: 10px;
    color: #222222;
    font-weight: 500;
    font-size: 16px;
    transition: all 200ms ease;
    position: relative;
    cursor: pointer;
}

.navigation .navBar .navListItems:hover {
    background: rgba(0, 0, 0, 0.06);
    border-left: 4px solid #1d3a5f;
    color: #1d3a5f;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.navigation .navBar .child-content {
    display: none;
    padding-left: 15px;
    list-style-type: none;
    margin: 0;
}

.navigation .navBar .navigation-parent.active .child-content {
    display: block;
}

.navigation .navBar .navigation-parent {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.navigation .navBar .collapse-arrow {
    float: right;
    transition: transform 0.3s ease;
}

.navigation .navBar .navigation-parent.active .collapse-arrow {
    transform: rotate(90deg);
}

.selectedDashboard {
    background: rgba(0, 0, 0, 0.06) !important;
    border-left: 4px solid #1d3a5f !important;
    color: #1d3a5f !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1) !important;
    cursor: default !important;
}

.usernameHeading {
    color: #1d3a5f;
    font-size: 24px;
    font-weight: 600;
    padding-bottom: 16px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 6px;
    letter-spacing: 0.5px;
    padding-top: 0;
    margin-top: 0;
    text-align: left;
    max-width: 90%;
}

.menuButton {
    position: fixed;
    right: 2.25vw;
    top: 2.2vw;
    padding: 0.7vw 1.4vw;
    border-radius: 0.5vw;
    border: none;
    cursor: pointer;
    background-color: #1d3a5f;
    color: white;
    font-size: 1vmax;
}

.menuButton:hover {
    animation: toggle_shadow 2s infinite ease-in-out;
}

.landingphp .mainDiv {
    min-width: 100%;
    min-height: 80vh;
}


body.loginhtml {
    background: #f6f5f7;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    height: 100vh;
    margin: -20px 0 50px;
}

.loginhtml h1 {
    font-weight: bold;
    margin: 0;
}

.loginhtml h2 {
    text-align: center;
}

.loginhtml p {
    font-size: 14px;
    font-weight: 100;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 20px 0 30px;
}

.loginhtml span {
    font-size: 12px;
}

.loginhtml a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
}

.loginhtml button {
    border-radius: 20px;
    border: 1px solid #FF4B2B;
    background-color: #FF4B2B;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
}

.loginhtml button:active {
    transform: scale(0.95);
}

.loginhtml button:focus {
    outline: none;
}

.loginhtml button.ghost {
    background-color: transparent;
    border-color: #FFFFFF;
}

.loginhtml form {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
}

.loginhtml input {
    background-color: #eee;
    border: none;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
}

.loginhtml .container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
        0 10px 10px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
}

.loginhtml .form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.loginhtml .sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.loginhtml .container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.loginhtml .sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.loginhtml .container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {

    0%,
    49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%,
    100% {
        opacity: 1;
        z-index: 5;
    }
}

.loginhtml .overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.loginhtml .container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.loginhtml .overlay {
    background: #FF416C;
    background: -webkit-linear-gradient(to right, #FF4B2B, #FF416C);
    background: linear-gradient(to right, #FF4B2B, #FF416C);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.loginhtml .container.right-panel-active .overlay {
    transform: translateX(50%);
}

.loginhtml .overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.loginhtml .overlay-left {
    transform: translateX(-20%);
}

.loginhtml .container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.loginhtml .overlay-right {
    right: 0;
    transform: translateX(0);
}

.loginhtml .container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

.loginhtml .social-container {
    margin: 20px 0;
}

.loginhtml .social-container a {
    border: 1px solid #DDDDDD;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 40px;
    width: 40px;
}

.loginhtml footer {
    background-color: #222;
    color: #fff;
    font-size: 14px;
    bottom: 0;
    position: fixed;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 999;
}

.loginhtml footer p {
    margin: 10px 0;
}

.loginhtml footer i {
    color: red;
}

.loginhtml footer a {
    color: #3c97bf;
    text-decoration: none;
}

.loginhtml .show-password {
    display: inline-flex;
    align-items: center;
    min-width: 100%;
}

.loginhtml .show-password input[type="checkbox"] {
    display: inline;
    max-width: 10%;
    margin-left: auto;
}

.loginhtml .show-password span {
    display: inline;
    max-width: 50%;
    margin-right: auto;
}

.loginhtml #error,
.loginhtml .s_error {
    color: red;
    margin: 0;
    padding: 0;
    display: none;
}

#preloader {
    margin: 0;
    padding: 0;
    z-index: 100;
    background: transparent center center;
    background-size: 10%;
    position: fixed;
    min-width: 100vw;
    min-height: 100vh;
    transition: opacity 0.5s ease-out;
    display: block;
    float: left;
}

.fade-out {
    opacity: 0;
    pointer-events: none;
}

@keyframes fade_out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes loadingCompanyName {
    0% {
        color: blue;
    }

    14% {
        color: rgb(40, 40, 230);
    }

    28% {
        color: rgb(80, 80, 200);
    }

    42% {
        color: rgb(120, 120, 230);
    }

    56% {
        color: rgb(255, 255, 255);
    }

    70% {
        color: rgb(120, 120, 230);
    }

    84% {
        color: rgb(80, 80, 200);
    }

    100% {
        color: blue;
    }
}

.preloader .company {
    position: fixed;
    top: 44.6%;
    left: 39%;
    font-size: 40px;
    z-index: 200;
}

.preloader .company span {
    color: blue;
    font-size: 4vw;
    font-weight: bolder;
    gap: 0.2vw;
    animation-name: loadingCompanyName;
    animation-duration: 1.2s;
    animation-iteration-count: infinite;
    transition: ease-in-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
}


:nth-child(2) {
    animation-delay: 0.04s;
}

:nth-child(3) {
    animation-delay: 0.08s;
}

:nth-child(4) {
    animation-delay: 0.12s;
}

:nth-child(5) {
    animation-delay: 0.16s;
}

:nth-child(6) {
    animation-delay: 0.2s;
}

:nth-child(7) {
    animation-delay: 0.24s;
}

:nth-child(8) {
    animation-delay: 0.28s;
}

:nth-child(9) {
    animation-delay: 0.32s;
}

:nth-child(10) {
    animation-delay: 0.36s;
}


body.profilephp {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffffff, #006aff);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.profilephp .container {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.25);
    background-color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 8px 8px 32px rgba(0, 0, 0);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}


.profilephp h1 {
    margin-bottom: 30px;
    color: #2c3e50;
}

.profilephp .profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.profilephp .avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #3498db;
    margin-bottom: 20px;
}

.profilephp .profile-info h2 {
    margin-bottom: 10px;
    color: #34495e;
}

.profilephp .profile-info p {
    margin: 6px 0;
    font-size: 16px;
}

.profilephp .action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.profilephp button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.profilephp button:hover {
    background-color: #2980b9;
}

.profilephp .container button#logout-btn,
.profilephp .container button#edit-btn {
    background-color: white;
    color: black;
}


.profilephp .container button#logout-btn:hover,
.profilephp .container button#edit-btn:hover {
    background-color: #3498db;
    color: white;
}

.profilephp .container button#logout-btn {
    right: 20px;
    position: absolute;
}


.profilephp .container button#edit-btn {
    left: 20px;
    position: absolute;
}

@media (max-width: 500px) {
    .profilephp .profile-card {
        padding: 10px;
    }

    .profilephp .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

.profilephp .edit-field {
    display: none;
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.profilephp .info-group {
    text-align: left;
    margin-bottom: 15px;
}

.profilephp .info-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    color: #2c3e50;
}

.profilephp .avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    cursor: pointer;
}

.profilephp .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #3498db;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.profilephp .avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.profilephp .avatar:hover .avatar-overlay {
    opacity: 1;
}

.profilephp .edit-icon {
    font-size: 24px;
    pointer-events: none;
}

.profilephp #upload-avatar {
    display: none;
}

.profilephp .phone-fields {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 12px;
}

.profilephp .phone-code,
.phone-number {
    padding: 8px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.profilephp .phone-code {
    width: 15%;
}

.profilephp .phone-number {
    width: 83.5%;
}

.profilephp .error {
    display: none;
}


body.profilehtml {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffffff, #006aff);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.profilehtml .container {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.25);
    background-color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 8px 8px 32px rgba(0, 0, 0);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}


.profilehtml h1 {
    margin-bottom: 30px;
    color: #2c3e50;
}

.profilehtml .profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.profilehtml .avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #3498db;
    margin-bottom: 20px;
}

.profilehtml .profile-info h2 {
    margin-bottom: 10px;
    color: #34495e;
}

.profilehtml .profile-info p {
    margin: 6px 0;
    font-size: 16px;
}

.profilehtml .action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.profilehtml button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.profilehtml button:hover {
    background-color: #2980b9;
}

@media (max-width: 500px) {
    .profilehtml .profile-card {
        padding: 10px;
    }

    .profilehtml .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

.profilehtml .edit-field {
    display: none;
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.profilehtml .info-group {
    text-align: left;
    margin-bottom: 15px;
}

.profilehtml .info-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    color: #2c3e50;
}

.profilehtml .avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    cursor: pointer;
}

.profilehtml .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #3498db;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.profilehtml .avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.profilehtml .avatar:hover .avatar-overlay {
    opacity: 1;
}

.profilehtml .edit-icon {
    font-size: 24px;
    pointer-events: none;
}

.profilehtml #upload-avatar {
    display: none;
}

.profilehtml .phone-fields {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 12px;
}

.profilehtml .phone-code,
.phone-number {
    padding: 8px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.profilehtml .phone-code {
    width: 15%;
}

.profilehtml .phone-number {
    width: 83.5%;
}

.profilehtml .error {
    display: none;
}

body.resetpasswordphp {
    font-family: Arial, sans-serif;
    padding: 40px;
}

.resetpasswordphp form {
    max-width: 400px;
    margin: auto;
}

.resetpasswordphp input {
    padding: 10px;
    margin: 8px 0;
    width: 100%;
    box-sizing: border-box;
}

.resetpasswordphp button {
    padding: 10px 15px;
    background-color: #1c87c9;
    color: white;
    border: none;
    cursor: pointer;
}

.resetpasswordphp .message {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
}

.resetpasswordphp .error {
    color: red;
}

.resetpasswordphp .success {
    color: green;
}

body.send_otp_php {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

.send_otp_php h2 {
    margin-bottom: 10px;
    color: #333;
}

.send_otp_php form {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
}

.send_otp_php label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.send_otp_php input[type="email"],
.send_otp_php input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}

.send_otp_php button {
    width: 100%;
    padding: 10px 12px;
    background-color: #007BFF;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.send_otp_php button:hover {
    background-color: #0056b3;
}

.send_otp_php p {
    margin: 15px 0;
    font-size: 14px;
    color: #444;
    text-align: center;
}

body.verifyotp_php {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #74ebd5, #acb6e5);
    margin: 0;
}

.verifyotp_php .otp-container {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 300px;
}

.verifyotp_php h2 {
    margin-bottom: 20px;
    color: #333;
}

.verifyotp_php input[type="number"] {
    padding: 10px;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.verifyotp_php button {
    background-color: #1c87c9;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.verifyotp_php button:hover {
    background-color: #155d8b;
}

.verifyotp_php .message {
    margin-top: 15px;
    font-weight: bold;
    color: red;
}

body.sales_dashboard {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-image: linear-gradient(90deg, rgb(100, 100, 252), rgb(20, 20, 255), rgb(0, 0, 100));
    background-size: cover;
    background-attachment: fixed;
    color: white;
    cursor: default;
    user-select: none;
}

.sales_dashboard .dashboard:hover>.card {
    opacity: 1;
}

.sales_dashboard .dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(49vw, 0.1rem));
    gap: 1rem;
    padding: 2rem;
}

.sales_dashboard .dashboard #churnReason{
    display: none;
}

.sales_dashboard table,
.sales_dashboard tr,
.sales_dashboard td,
.sales_dashboard th,
.sales_dashboard thead,
.sales_dashboard tbody {
    min-width: 100%;
    max-width: 100vw;
    border: 1px white solid;
    border-collapse: collapse;
}

.sales_dashboard th,
.sales_dashboard td {
    padding: 0.5rem;
    text-align: center;
}

.sales_dashboard th {
    position: sticky;
    top: 0;
    background-color: #0d47a1;
}

.sales_dashboard .header {
    grid-column: span 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sales_dashboard .header h1 {
    margin: 0;
    font-size: 3rem;
}

.sales_dashboard .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    cursor: pointer;
}

.sales_dashboard .miniGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15%, 1fr));
    gap: 0.5rem;
    min-height: 100%;
}

.sales_dashboard .miniCard {
    background-color: #1d3a5f;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    align-content: center;
}

.sales_dashboard .miniCard h2 {
    font-size: 20px;
    padding: 0;
    margin: 0;
}

.sales_dashboard .span2 {
    grid-column: span 2;
}

.sales_dashboard .span3 {
    grid-column: span 3;
}

.sales_dashboard input {
    cursor: pointer;
    background-color: #0f2c47;
    color: white;
    border: 0px;
    text-align: center;
    border-radius: 100px;
    user-select: none;
    padding-left: 12px;
    padding-right: 12px;
}


.sales_dashboard input[type="date"]:focus {
    outline: none;
}

.sales_dashboard input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

.sales_dashboard .card {
    background: #112e4c;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
    text-align: center;
    transition: opacity 0.3s ease;
    max-height: fit-content;
    min-width: 17.5vw;
    max-width: fit-content;
}

.sales_dashboard .card:hover,
.sales_dashboard .card:focus {
    opacity: 1;
    cursor: pointer;
    transition: ease-in-out 0.3s;
}

.sales_dashboard .card h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.sales_dashboard .value {
    font-size: 1.5rem;
    font-weight: bold;
}

.sales_dashboard .full-span {
    grid-column: span 4;
    max-width: 99vw;
    max-height: 35vh;
    overflow-x: hidden;
    overflow-y: scroll;
}

.sales_dashboard .half-span {
    grid-column: span 2;
    max-width: 49vw;
}

.sales_dashboard .three-span{
    grid-column: span 3;
    max-width: 73vw;
}

.sales_dashboard .line {
    min-height: 277px;
    max-height: 277px;
}

.sales_dashboard .bar,
.sales_dashboard .pie,
.sales_dashboard .chart {
    background: #0f2c47;
    border-radius: 8px;
    max-height: 30vh;
}

.sales_dashboard .quarterSelect {
    background-color: #1d3a5f;
    border-radius: 10px;
    padding: 1vh 1vw;
    text-align: center;
}

.sales_dashboard .quarterSelect button.active {
    background-color: cyan;
    color: black;
}

.sales_dashboard p {
    margin: 0;
    padding: 1vh;
}

.sales_dashboard .modal p {
    text-align: center;
    font-size: larger;
}

.sales_dashboard .quarterSelect button {
    padding: 10px;
    background-color: #0f2c47;
    margin: 0 0.5vh;
    border-radius: 8px;
    border: none;
    color: white;
    font-size: 1rem;
}

.sales_dashboard .quarterSelect button:hover {
    background-color: cadetblue;
}

.sales_dashboard select,
.sales_dashboard button {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: #1d3a5f;
    color: white;
    font-size: 1rem;
}

.sales_dashboard select {
    min-width: 20vw;
}

.sales_dashboard .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.25s, opacity 0.25s ease-in;
}

.sales_dashboard .modal.show {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.sales_dashboard .modalContent {
    background: #112e4c;
    padding: 2rem;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    position: relative;
}

.sales_dashboard .modalContent canvas,
.sales_dashboard .modalContent .value {
    max-width: 100%;
    max-height: 70vh;
}

.sales_dashboard .close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    background: #ff4c4c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
}


body.salesAnalyticsDashboard {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-image: linear-gradient(90deg, rgb(100, 100, 252), rgb(20, 20, 255), rgb(0, 0, 100));
    background-color: black;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    cursor: default;
    user-select: none;
}

.salesAnalyticsDashboard .dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem;
    justify-content: flex-start;
}

.salesAnalyticsDashboard .header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
}


.salesAnalyticsDashboard .header h1 {
    margin: 0;
    font-size: 2vmax;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    transition: text-shadow 0.3s ease;
}

.salesAnalyticsDashboard .filters {
    display: flex;
    cursor: pointer;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 1vw;
    margin-right: 1vw;
}

.salesAnalyticsDashboard .filters select,
.salesAnalyticsDashboard .filters button {
    padding: 0.7vw 1.4vw;
    border-radius: 0.5vw;
    border: none;
    cursor: pointer;
    background-color: #1d3a5f;
    color: white;
    font-size: 1vmax;
}

.salesAnalyticsDashboard .filters button {
    margin-right: max(5px, 0.5vw);
}

.salesAnalyticsDashboard .filters button:hover {
    animation: toggle_shadow 2s infinite ease-in-out;
}

.salesAnalyticsDashboard .filters select:hover,
.salesAnalyticsDashboard .filters select:focus {
    box-shadow: 0 0 4px 2px rgba(255, 255, 255, 1);
    animation: toggle_shadow 2s infinite ease-in-out;
}

.salesAnalyticsDashboard .filters select option:hover {
    color: black;
}

@keyframes toggle_shadow {

    0%,
    100% {
        box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.6);
    }

    50% {
        box-shadow: 0 0 20px 10px rgba(255, 255, 255, 1);
    }
}

.salesAnalyticsDashboard .payment {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.salesAnalyticsDashboard .card {
    background: #112e4c;
    padding: 10px;
    border-radius: 1vw;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 1);
    opacity: 0.85;
    text-align: center;
    transition: 0.3s ease;
    flex: 1 1 calc(32.5% - 1rem);
    min-width: 22.9vw;
    height: 41vh;
    min-height: 300px;
    max-height: 33vmin;
}

.salesAnalyticsDashboard .card:hover {
    opacity: 1;
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 1);
    cursor: pointer;
    animation: toggle_shadow 2s infinite ease-in-out;
}

.salesAnalyticsDashboard .card canvas {
    min-height: 150px;
    max-height: 24.5vmin;
}

.salesAnalyticsDashboard .card h3 {
    font-size: max(1.2vmax, 12px);
    margin-bottom: 0.5rem;
}

.salesAnalyticsDashboard .value {
    font-size: max(1.5vmax, 10px);
    font-weight: bold;
    color: cyan;
}

.salesAnalyticsDashboard .half-span {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50%);
}

.salesAnalyticsDashboard .full-span {
    flex: 1 1 100%;
    max-width: 100%;
}

.salesAnalyticsDashboard .bar,
.salesAnalyticsDashboard .chart,
.salesAnalyticsDashboard .pie {
    background: #0f2c47;
    border-radius: 8px;
    max-height: 30vh;
    margin-top: 1rem;
}

@media (max-width: 1400px) {
    .salesAnalyticsDashboard .dashboard {
        justify-content: center;
    }

    .salesAnalyticsDashboard .card,
    .salesAnalyticsDashboard .half-span {
        flex: 1 1 32%;
        max-width: 32%;
        min-width: 31%;
    }

    .salesAnalyticsDashboard .full-span {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 100%;
    }

    .salesAnalyticsDashboard .filters select,
    .salesAnalyticsDashboard .filters button {
        width: 100%;
    }
}

@media (max-width: 1200px) {
    .salesAnalyticsDashboard .dashboard {
        justify-content: center;
    }

    .salesAnalyticsDashboard .special {
        display: none;
    }

    .salesAnalyticsDashboard .half-span,
    .salesAnalyticsDashboard .full-span {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 100%;
    }

    .salesAnalyticsDashboard .card,
    .salesAnalyticsDashboard .half-span-screen {
        flex: 1 1 49%;
        max-width: 49%;
        min-width: 48%;
    }

    .salesAnalyticsDashboard .half-span-pie {
        max-width: 100%;
    }

    .salesAnalyticsDashboard .filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .salesAnalyticsDashboard .filters select,
    .salesAnalyticsDashboard .filters button {
        width: 100%;
    }
}

@media (max-width: 880px) {
    .salesAnalyticsDashboard .dashboard {
        justify-content: center;
    }

    .salesAnalyticsDashboard .special {
        display: none;
    }

    .salesAnalyticsDashboard .card,
    .salesAnalyticsDashboard .half-span,
    .salesAnalyticsDashboard .full-span {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 80%;
    }

    .salesAnalyticsDashboard .chart {
        min-height: 1000px;
        max-height: 1000px;
    }

    .salesAnalyticsDashboard .filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .salesAnalyticsDashboard .filters button {
        width: 100%;
    }
}

.salesAnalyticsDashboard table,
.salesAnalyticsDashboard tr,
.salesAnalyticsDashboard td,
.salesAnalyticsDashboard th,
.salesAnalyticsDashboard thead,
.salesAnalyticsDashboard tbody {
    width: 100%;
    border: 1px white solid;
    border-collapse: collapse;
}


.salesAnalyticsDashboard th,
.salesAnalyticsDashboard td {
    padding: 0.5rem;
    max-width: 5%;
}

.salesAnalyticsDashboard p,
.salesAnalyticsDashboard h3 {
    margin: 0;
    padding: 1vh;
    font-size: min(2vmax, 40px);
}


.salesAnalyticsDashboard .modal {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.salesAnalyticsDashboard .show {
    display: flex;
}

.salesAnalyticsDashboard .modalContent canvas {
    max-width: 90vw;
    max-height: 75vh;
    min-height: 150px;
}

.salesAnalyticsDashboard .modalContent {
    max-width: 90vw;
    max-height: 90vh;
    background-color: #112e4c;
    color: white;
    position: relative;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.salesAnalyticsDashboard .close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    background: #ff4c4c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    z-index: 11;
}

.salesAnalyticsDashboard .kpiRow {
    min-width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background-color: #112e4c;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px black;
    color: white;
}

.salesAnalyticsDashboard .totalRevenueKpi,
.salesAnalyticsDashboard .totalOrdersKpi,
.salesAnalyticsDashboard .avgOrderValueKpi,
.salesAnalyticsDashboard .deliveryRateKpi,
.salesAnalyticsDashboard .paidOrdersKpi,
.salesAnalyticsDashboard .deliveredOrdersKpi {
    display: flex;
    flex-direction: column;
    flex: 1;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 8px;
    background: linear-gradient(145deg, #ffffff, #b0b0b0);
    box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.1),
        inset -2px -2px 4px rgba(0, 0, 0, 0.7);
    transition: all 0.2s ease, background 0.2s ease-in-out;
}

.salesAnalyticsDashboard .totalRevenueKpi:hover,
.salesAnalyticsDashboard .totalOrdersKpi:hover,
.salesAnalyticsDashboard .avgOrderValueKpi:hover,
.salesAnalyticsDashboard .deliveryRateKpi:hover,
.salesAnalyticsDashboard .paidOrdersKpi:hover,
.salesAnalyticsDashboard .deliveredOrdersKpi:hover {
    transform: scale(1.05);
    background: linear-gradient(145deg, #222, #2a2a2a);
}

.salesAnalyticsDashboard .totalRevenueKpi {
    color: #006d6d;
}

.salesAnalyticsDashboard .totalOrdersKpi {
    color: #0d47a1;
}

.salesAnalyticsDashboard .avgOrderValueKpi {
    color: #b58900;
}

.salesAnalyticsDashboard .deliveryRateKpi {
    color: #1b5e20;
}

.salesAnalyticsDashboard .paidOrdersKpi {
    color: #e65100;
}

.salesAnalyticsDashboard .deliveredOrdersKpi {
    color: #880e4f;
}

.salesAnalyticsDashboard .totalRevenueKpi:hover {
    color: #4BC0C0;
}

.salesAnalyticsDashboard .totalOrdersKpi:hover {
    color: #36A2EB;
}

.salesAnalyticsDashboard .avgOrderValueKpi:hover {
    color: #FFCE56;
}

.salesAnalyticsDashboard .deliveryRateKpi:hover {
    color: #4CAF50;
}

.salesAnalyticsDashboard .paidOrdersKpi:hover {
    color: #FF9F40;
}

.salesAnalyticsDashboard .deliveredOrdersKpi:hover {
    color: #FF6384;
}

.salesAnalyticsDashboard span {
    opacity: 0.8;
}

.salesAnalyticsDashboard .kpiRow .kpiValue {
    font-size: 18px;
    opacity: 1;
}

.salesAnalyticsDashboard .kpiRow .comment {
    opacity: 0.5;
}

.salesAnalyticsDashboard .kpiRow img {
    max-width: 20px;
    background-color: rgb(217, 217, 217);
    padding: 2px;
}


body.uploaderphp {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.uploaderphp .container {
    max-width: 80%;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.uploaderphp .header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.uploaderphp .header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.uploaderphp .header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.uploaderphp .content {
    padding: 40px;
}

.uploaderphp .dashboard-selector {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.uploaderphp .dashboard-selector h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.uploaderphp .dashboard-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.uploaderphp .dashboard-tab {
    padding: 12px 20px;
    border: 2px solid #667eea;
    border-radius: 25px;
    background: white;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
    align-content: center;
}

.uploaderphp .dashboard-tab.active {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.uploaderphp .dashboard-tab:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.uploaderphp .template-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.uploaderphp .template-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.uploaderphp .template-section p span {
    cursor: pointer;
}

.uploaderphp .template-section p span:hover {
    color: blue;
    text-decoration: underline;
}

.uploaderphp .template-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.uploaderphp .column-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.uploaderphp .column-item:hover {
    transform: translateY(-2px);
}

.uploaderphp .column-item.required {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.uploaderphp .column-name {
    font-weight: 600;
    font-size: 1em;
    color: #333;
    margin-bottom: 5px;
}

.uploaderphp .column-details {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 3px;
}

.uploaderphp .column-type {
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
    color: #888;
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}

.uploaderphp .upload-section {
    margin-bottom: 40px;
}

.uploaderphp .upload-box {
    border: 3px dashed #667eea;
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.uploaderphp .upload-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.uploaderphp .upload-box:hover::before {
    left: 100%;
}

.uploaderphp .upload-box:hover {
    border-color: #764ba2;
    background: linear-gradient(135deg, #f0f2ff 0%, #ffffff 100%);
    transform: translateY(-2px);
}

.uploaderphp .upload-box.dragover {
    border-color: #28a745;
    background: linear-gradient(135deg, #f0fff0 0%, #ffffff 100%);
    transform: scale(1.02);
}

.uploaderphp .upload-icon {
    font-size: 4.5em;
    color: #667eea;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.uploaderphp .upload-text {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.uploaderphp .upload-subtext {
    color: #666;
    font-size: 1em;
    margin-bottom: 20px;
}

.uploaderphp .supported-formats {
    background: #e8f4f8;
    color: #0c5460;
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9em;
    font-weight: 500;
}

.uploaderphp .file-input {
    display: none;
}

.uploaderphp .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.uploaderphp .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.uploaderphp .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.uploaderphp .file-info {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #e8f5e8 0%, #ffffff 100%);
    border-radius: 12px;
    display: none;
    border: 1px solid #c3e6cb;
}

.uploaderphp .file-info h4 {
    color: #155724;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.uploaderphp .file-list {
    list-style: none;
    padding: 0;
}

.uploaderphp .file-list li {
    background: white;
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uploaderphp .file-size {
    color: #666;
    font-size: 0.9em;
}

.uploaderphp .progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.uploaderphp .progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.uploaderphp .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progress-shine 1.5s infinite;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.uploaderphp .alert {
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    display: none;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.uploaderphp .alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #f0fff0 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 5px solid #28a745;
}

.uploaderphp .alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #fff5f5 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-left: 5px solid #dc3545;
}

.uploaderphp .back-btn {
    position: relative;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    font-weight: 600;
    transition: all 0.3s ease;
}

.uploaderphp .back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.uploaderphp .legend {
    display: flex;
    gap: 25px;
    margin-top: 15px;
    font-size: 0.95em;
    flex-wrap: wrap;
}

.uploaderphp .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.uploaderphp .legend-color {
    width: 20px;
    height: 4px;
    border-radius: 2px;
}

.uploaderphp .required-color {
    background: #dc3545;
}

.uploaderphp .optional-color {
    background: #667eea;
}

.uploaderphp .stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.uploaderphp .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.uploaderphp .stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    overflow-wrap: break-word;
}

.uploaderphp .stat-number {
    font-size: 1.8em;
    font-weight: bold;
    display: block;
}

.uploaderphp .stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .uploaderphp .container {
        margin: 10px;
        border-radius: 10px;
    }

    .uploaderphp .content {
        padding: 20px;
    }

    .uploaderphp .dashboard-tabs {
        grid-template-columns: 1fr;
    }

    .uploaderphp .template-columns {
        grid-template-columns: 1fr;
    }

    .uploaderphp .legend {
        justify-content: center;
    }
}