@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,400;6..12,500;6..12,600;6..12,700;6..12,800&display=swap");

/* Global dashboard surface (light, minimal) */
.content-wrapper {
    background: #f9fafb !important;
    font-family: "Nunito Sans", sans-serif !important;
    color: #111827;
}

.content-wrapper .content {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

/* High–level dashboard layout */
.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dashboard-section {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 1.25rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(209, 213, 219, 0.85);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.dashboard-section + .dashboard-section {
    margin-top: 0;
}

.token-section-placeholder {
    padding: 1.5rem 0.5rem;
}

.top-info-area .profile-area {
    border-radius: 20px;
    padding: 19px;
}

.top-info-area .profile-area .profile-text {
    font-size: 22px;
    font-weight: bold;
    margin-top: 5px;
}

.top-info-area .profile-area .notification-and-refresh-area .refresh-button {
    border: none;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    background-color: #009f63;
}

.notification-and-refresh-area .notification-value {
    position: relative;
    font-size: 10px;
    top: 4px;
    right: 10px;
    background-color: #f97059;
    color: white;
    padding: 1px 4px;
    border-radius: 15px;
}

.profile-picture {
    margin-top: -50px;
}
.profile-area-icon {
    font-size: 22px;
    color: #009f63;
    background: #c4f2e1;
    padding: 10px;
    border-radius: 25px;
}
.profile-area-text-icon-text {
    color: #a7a2a2;
}
.edit-profile-button {
    background-color: #009f63;
    padding: 10px 14px;
    border-radius: 5px;
}

/* dashboard area */

.value-container {
    padding-left: 0.75rem; /* 12px */
    padding-right: 0.75rem; /* 12px */
}
/* Metric tiles - single blur for all cards */
.detail-area {
    border-radius: 1rem;
    border: 1px solid rgba(209, 213, 219, 0.5);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 20px rgba(148, 163, 184, 0.2);
    padding: 0.75rem 0.75rem 0.25rem 0.75rem;
}

.detail-area .detail-icon i {
    font-size: 34px;
}

.detail-area .detail-card p:first-child {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Primary metric value text inside cards (e.g. 125) */
.detail-area .detail-card p.h4,
.detail-area .detail-card .h4 {
    font-size: 1.35rem;
    font-weight: 700;
}

.bgSky {
    background-color: #1c9fb9;
}
.bgBlue {
    background-color: #007afe;
}
.bgGreen {
    background-color: #26a843;
}
.bgGray {
    background-color: #1b2850;
}
.bgPurple {
    background-color: #6f42c1;
}
.bgRed {
    background-color: #dc2626;
}
.bgYellow {
    background-color: #fec008;
}

.colorSky {
    color: #1c9fb9;
}
.colorBlue {
    color: #1d4ed8;
}
.colorGreen {
    color: #26a843;
}
.colorGray {
    color: #6d767c;
}
.colorPurple {
    color: #6f42c1;
}
.colorRed {
    color: #dd324b;
}
.colorYellow {
    background: #525252;
}

.colorLime {
    background: #4d7c0f;
}
.bg-today-col {
    background-color: #0f766e;
}
.pending-bill-col {
    background-color: #be185d;
}
.prev-col {
    background-color: #420c47;
}
.bg-month-col {
    background: #4f46e5;
}
.total-col {
    background: #0e7490;
}
.new-Client {
    background: #990099;
}
.discount-month {
    background: #404040;
}

.detail-area .detail-card {
    border-radius: 0.75rem;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 500;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.15s ease-out,
        box-shadow 0.15s ease-out;
}

.detail-area .detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.box-card {
    border-radius: 12px;
}

.box-card-item {
    box-shadow: 0px 0px 8px #00000066;
}

.bill-collection-area {
    border-radius: 16px;
}

/* Tables inside dashboard */
th {
    color: #111827 !important;
    background: linear-gradient(90deg, #eff6ff, #e5e7eb);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

table.table {
    color: #111827;
}

table.table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

table.table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

table.table tbody tr:hover {
    background-color: #e5f2ff;
}

table.table td,
table.table th {
    border-color: #e5e7eb;
}

/* Chart layout */
.dashboard-charts {
    margin: -0.25rem -0.25rem 0 -0.25rem;
}

.chart-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Blurred colored shapes behind chart */
.chart-card::before {
    content: "●";
    position: absolute;
    top: 10px;
    right: 30px;
    font-size: 100px;
    color: #6366f1;
    filter: blur(12px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.chart-card::after {
    content: "◆";
    position: absolute;
    bottom: 20px;
    left: 40px;
    font-size: 70px;
    color: #0ea5e9;
    filter: blur(10px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.chart-card-header {
    padding: 0.4rem 0.75rem 0.1rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.5);
}

.chart-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
}

.chart-card-body {
    padding: 0.1rem 0.35rem 0.4rem 0.35rem;
    position: relative;
    z-index: 1;
}

/* More blurred shapes */
.chart-card-body::before {
    content: "★";
    position: absolute;
    top: 30%;
    left: 50%;
    font-size: 60px;
    color: #ec4899;
    filter: blur(10px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.chart-card-body::after {
    content: "■";
    position: absolute;
    bottom: 30px;
    right: 50px;
    font-size: 50px;
    color: #10b981;
    filter: blur(10px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.chart-container {
    width: 100%;
    height: 180px;
    padding: 0.25rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

@media (min-width: 1200px) {
    .chart-container {
        height: 210px;
    }
}

.online-user-box {
    background: linear-gradient(to right, rgb(34, 197, 94), rgb(21, 128, 61));
    border-radius: 0.9rem;
    display: block;
    box-shadow: 0 14px 32px rgba(22, 163, 74, 0.65);
}

.pop-allowed-box {
    background: linear-gradient(to right, #b91c1c, #7f1d1d);
}

.online-user-box i {
    color: #fff;
    font-size: 32px;
    transition: font-size 0.3s ease;
}

.online-user-box:hover i {
    font-size: 36px;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 250ms;
}
