:root {
    --outer-frame: #2d2d2d;
    /* The dark border color */
    --inner-bg: #f8fafc;
    --accent-blue: #94bfff;
}

body {
    background-color: #d1d8e0;
    /* The very outer background */
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

/* --- The Master Frame --- */
.dashboard-container {
    background-color: var(--outer-frame);
    width: 100vw;
    height: 100vh;
    border-radius: 0px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2);

}

/* --- Left Sidebar --- */
.sidebar {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    flex-shrink: 0;
}

.sidebar-logo {
    color: white;
    font-size: 24px;
    margin-bottom: 50px;
}

.nav-link-custom {
    display: block;
    /* Ensures the whole area is clickable */
    color: #717171;
    text-decoration: none;
    /* Removes blue underline */
    font-size: 1.2rem;
    margin: 15px 0;
    position: relative;
    width: 100%;
    text-align: center;
}

.nav-link-custom:hover {
    color: #fff;
}

.nav-link-custom.active {
    color: white;
}

/* The small dot indicator */
.nav-link-custom.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 4px;
    background: white;
    border-radius: 0 4px 4px 0;
}

/* --- Main Content Area (The White Part) --- */
.main-content {
    /* background-color: var(--inner-bg); */
    background: rgb(248, 250, 252);
    background-image:
        linear-gradient(135deg, rgba(208, 209, 211, 0.788) 0%, rgba(248, 250, 252, 0.843) 100%),
        url('../../../assets/images/bg/bg1.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    flex-grow: 1;
    margin: 15px;
    /* Creates the border effect from the image */
    /* border-radius: 50px; */
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    overflow-y: auto;
    padding: 40px;
}

.topname {
    font-size: 1.6rem;
    font-weight: bold;
}

@media(max-width:767px) {
    .main-content {
        padding: 2px;
    }

    .topbtn {
        display: none;
    }

    .topname {
        font-size: 1rem;
        font-weight: bold;
    }
}

.grad-text1 {

    color: #30CFD0;
    background-image: linear-gradient(to right, #004791 0%, #da573a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    display: inline-block;

}

/* --- Cards & Glass Effect --- */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    border: none;
    border-radius: 30px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.glass-card h2,
.glass-card h4,
.glass-card h3 {
    font-weight: bold;
}

@media (max-width:1192px) {
    .glass-card h2 {
        font-weight: 500;
        font-size: 20px !important;
    }

    .glass-card h4 {
        font-size: 20px;
        font-weight: 500;
    }

    .transaction-list h3 {
        font-size: 20px;
    }
}

@media (max-width:767px) {
    .glass-card h2 {
        font-weight: bold;
        font-size: 28px !important;
    }

    .glass-card h4 {
        font-size: 25px;
        font-weight: bold;
    }

    .transaction-list h3 {
        font-size: 30px;
    }
}

.visa-black {
    background-color: #1a1a1a;
    /* This adds the globe image on top of the dark color */
    background-image:
        linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%),
        url('../images/globe.png');
    /* Replace with your downloaded PNG */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    color: white;
    position: relative;
    overflow: hidden;
    border: none;
}

.search-box {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #eee;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.search-box input {
    border: none;
    outline: none;
    margin-left: 10px;
    width: 100%;
    font-size: 0.9rem;
}

/* Custom Scrollbar for the inner content */
.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-thumb {
    background: #e2e2e2;
    border-radius: 10px;
}

/* Action Buttons */
.btn-action {
    border-radius: 18px;
    padding: 12px 20px;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: 0.2s;
}

.btn-action.primary {
    background: var(--accent-blue);
    color: white;
}

/* Chart Labels */
.chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.visa-white {
    background-color: #ffffff;
    /* We use a very light grey gradient to ensure the white map pattern is visible */
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.6) 100%),
        url('https://www.transparenttextures.com/patterns/world-map.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    color: #1a1a1a;
    /* Dark text for readability */
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
    /* Added a subtle border to define the card edge */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Optional: If the map is too light to see on white, 
   you can use a CSS filter to darken the background image specifically */
.visa-white::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('../images/globe.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    opacity: 0.1;
    /* Control map visibility here */
    filter: invert(1);
    /* This turns a white map pattern into a dark one */
    z-index: 0;
}

/* Ensure content stays above the pseudo-element map */
.visa-white>* {
    position: relative;
    z-index: 1;
}

.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #f0f1f5;
    border-radius: 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.card {
    margin-bottom: 1.875rem;
    background: #f2eded;
    background: linear-gradient(rgba(248, 249, 251, 0.5), rgba(248, 249, 251, 0.5)),
        url('../../../assets/images/sbg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left center;


    transition: all .5s ease-in-out;
    position: relative;
    border: 1px solid transparent;
    border-radius: 20px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    height: calc(100% - 30px);
}

#basic-addon1 {
    width: 40px;
    color: #ff9617;
    background-color: #e8f3eb;
}
.btn-secondary {
    border-radius: 22px !important;
}