body {
    overflow: auto;
    background-color: rgba(248, 247, 247, 1);
}

/* تحسينات للـ Country Pie Chart */
#countryPieChart {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

#countryPieChart:hover {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* تأثيرات للحاوية */
.chart-container-enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chart-container-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b7924f, #d4af37, #b7924f);
    border-radius: 20px 20px 0 0;
}

.chart-container-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* تحسين العنوان */
.chart-title-enhanced {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

/* أنيميشن للأيقونة */
.chart-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Sidebar */
.sidebar {
    width: 300px;
    background-color: #fff;
    box-shadow: 0px 14px 10px rgba(8, 15, 52, 0.06);
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 1040;
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

/* Sidebar scrollbar styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #b7924f, #d4af37);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d4af37, #b7924f);
}

.sidebar .logo img {
    max-width: 152px;
    height: auto;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 0.8rem;
}

.sidebar ul li a {
    color: rgba(39, 58, 65, 1);
    text-decoration: none;
    font-size: 16px;
    padding: .7rem;
}

.sidebar ul li.active a {
    color: #b7924f !important;
    font-weight: bold;
}

.sidebar ul li a:hover {
    color: #b7924f;
}

.sidebar .nav-link.active {
    color: #b7924f;
}

.sidebar .icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease-in-out;
}

.sidebar ul li.active .icon,
.sidebar ul li:hover .icon {
    filter: brightness(0) saturate(100%) invert(64%) sepia(29%) saturate(343%) hue-rotate(8deg) brightness(95%) contrast(90%);
    transform: scale(1.05);
}

.sidebar .nav-item:hover {
    background-color: rgba(249, 248, 244, 1);
    border-radius: 8px;
}

.sidebar .nav-item.active {
    background-color: rgba(249, 248, 244, 1);
    border-radius: 8px;
}

/* Close Button */
.sidebar-close {
    display: none;
    position: absolute;
    top: 2%;
    left: 0;
    font-size: 2rem;
    color: black;
}

/* custom container */

.custom-container {
    padding: 0 20rem 0 0;
}

/* navbar */
.search-bar {
    padding-right: 1rem;
    width: 100%;
}

.search-bar input {
    background-color: rgba(39, 58, 65, 0.05);
    border: none;
    padding: .7rem;
}

.search-bar input::placeholder {
    color: rgba(156, 156, 156, 1);
    font-size: 14px;
    padding: .5rem;
}

.search-bar input {
    background-color: #f7f7f7;
    border: none;
    padding-right: 2.5rem;
}

.search-bar input:focus {
    box-shadow: none;
    background-color: #f7f7f7;
}

.search-bar i {
    color: rgba(158, 158, 158, 1);
    font-size: 16px;
}

/* Content */
.content {
    margin-right: 270px;
    padding: 1rem 3rem;
    transition: margin-left 0.3s ease-in-out;
}

/* Table */
.user-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.active-status p {
    background-color: rgba(23, 89, 65, 0.2);
    color: rgba(23, 89, 65, 1);
    border-radius: 16px;
    padding: .5rem;
}

/* states conatiner */

.stat-card {
    border-radius: 20px;
    text-align: right;
}

.stat-card h4 {
    color: rgba(43, 54, 116, 1);
    font-size: 24px;
}

.stat-card p {
    font-size: 16px;
    color: rgba(163, 174, 208, 1);
}

.chart-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.chart-container h5 {
    font-size: 18px;
    margin-bottom: 15px;
    color: rgba(137, 134, 141, 1);
}

.chart-container .total {
    text-align: right;
    font-weight: bold;
    color: rgba(39, 58, 65, 1);
    margin-top: 10px;
}

@media (max-width: 767.98px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .programmes-table {
        font-size: 14px;
    }

    .pagination-controls select {
        width: 80px;
    }
}

/* Responsive Sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.show {
        transform: translateX(0%);
    }

    .sidebar-close {
        display: block;
    }

    .content {
        margin-right: 0 !important;
        padding: .5rem;
    }

    .custom-container {
        padding: 0;
    }

    .search-bar {
        width: 100%;
    }
}

.btn-custom {
    background-color: rgba(211, 171, 85, 1);
    color: rgba(248, 247, 247, 1);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
}

.btn-custom:hover {
    background-color: rgb(211, 160, 51);
    color: rgba(248, 247, 247, 1);
}

.stat-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.progress-bar-custom {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
}

.progress {
    border-radius: 10px;
}

@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }

    .stat-card {
        margin-bottom: 10px;
    }
}

.card {
    margin-top: 50px;
}

.chart-container {
    position: relative;
    height: 400px;
}
/* Card */
.analytics-card {
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
    direction: rtl;
}

/* Header */
.analytics-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.analytics-title {
    font-size: 22px;
    color: #273a41;
}

.analytics-total {
    display: flex;
    align-items: center;
    gap: 10px;
}

.total-value {
    font-size: 28px;
    font-weight: bold;
}

.total-growth {
    background: #dff5e5;
    color: #2e9b5f;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
}

/* Meta */
.date-filter {
    background: #d6a84a;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    margin-bottom: 10px;
}

.legend {
    display: flex;
    gap: 14px;
    font-size: 13px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
}

.dot.gold { background:#d6a84a; }
.dot.dark { background:#1f2f34; }
.dot.gray { background:#cfcfcf; }

/* Chart */
.analytics-chart {
    overflow-x: auto;
}

.chart-wrapper {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 16px;
}

/* Y Axis */
.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 260px;
    padding-bottom: 24px;
    font-size: 12px;
    color: #8fa1b3;
}

/* Bars */
.chart-bars {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 22px;
    height: 260px;
    padding-bottom: 24px;
}

.chart-bars::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        to top,
        rgba(143,161,179,0.25),
        rgba(143,161,179,0.25) 1px,
        transparent 1px,
        transparent 52px
    );
}

/* Month */
.chart-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 38px;
    z-index: 1;
}

/* Stacked Bar */
.stacked-bar {
    display: flex;
    flex-direction: column-reverse;
    width: 10px;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.stack {
    width: 100%;
}

.stack.gold { background:#d6a84a; }
.stack.dark { background:#1f2f34; }
.stack.gray { background:#cfcfcf; }

.chart-item span {
    margin-top: 8px;
    font-size: 12px;
    color: #8fa1b3;
}
/* Card */
.gauge-card {
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
    direction: rtl;
    max-width: 420px;
    width: 100%;
    height: 100%;
}

/* Header */
.gauge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gauge-header h4 {
    font-size: 20px;
    color: #273a41;
}

.export-btn {
    background: #d6a84a;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
}

/* Gauge */
.gauge-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0 20px;
}

.gauge {
    position: relative;
    width: 240px;
    height: 120px;
    overflow: hidden;
}

/* Arcs */
.arc {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 8px solid transparent;
    top: 0;
    left: 0;
    transform: rotate(180deg);
}

/* Gray 20% */
.arc-gray {
    border-top-color: #cfcfcf;
    transform: rotate(216deg); /* 180 + (20% of 180) */
}

/* Dark 50% */
.arc-dark {
    border-top-color: #1f2f34;
    transform: rotate(270deg); /* 180 + (50% of 180) */
}

/* Gold 30% */
.arc-gold {
    border-top-color: #d6a84a;
    transform: rotate(324deg); /* 180 + (30% of 180) */
}

/* Value */
.gauge-value {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    font-weight: bold;
    color: #273a41;
}

/* Legend */
.gauge-legend {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.percent {
    color: #273a41;
    font-weight: 500;
}

.label {
    position: relative;
    padding-right: 14px;
}

.label::before {
    content: "";
    position: absolute;
    right: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.label.gold::before { background:#d6a84a; }
.label.dark::before { background:#1f2f34; }
.label.gray::before { background:#cfcfcf; }
/* Card */
.map-card {
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
    direction: rtl;
}

/* Header */
.map-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.export-btn {
    background: #d6a84a;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
}

.map-total {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-total .value {
    font-size: 26px;
    font-weight: bold;
}

.map-total .growth {
    background: #dff5e5;
    color: #2e9b5f;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
}

/* Content */
.map-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* Stats */
.country-stats {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stat-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.percent {
    color: #9bb1c9;
}

.stat-bar {
    height: 3px;
    border-radius: 2px;
}

.stat-bar.gold { background:#d6a84a; }
.stat-bar.blue { background:#4b6fff; }
.stat-bar.light { background:#dfe6ff; }
.stat-bar.dark { background:#1f2f34; }
.stat-bar.red { background:#e05656; }

/* Map */
.world-map {
    position: relative;
    height: 260px;
    border-radius: 16px;
}

/* Dotted World Map */
.map-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#cfe0ff 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.6;
}

/* Pins */
.map-pin {
    position: absolute;
    width: 14px;
    height: 14px;
    background: rgba(214,168,74,0.3);
    border-radius: 50%;
}

.map-pin::after {
    content: "";
    position: absolute;
    inset: 4px;
    background: #d6a84a;
    border-radius: 50%;
}

/* Pin positions */
.map-pin.saudi { top: 45%; right: 35%; }
.map-pin.europe { top: 30%; right: 48%; }
.map-pin.usa { top: 35%; right: 75%; }
.map-pin.africa { top: 55%; right: 45%; }
.map-pin.asia { top: 40%; right: 25%; }

/* Country Popup */
.country-popup {
    position: absolute;
    top: 30%;
    right: 20%;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Mini Gauge */
.mini-gauge {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 8px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mini-arc {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 8px solid transparent;
    border-top-color: #1f2f34;
    transform: rotate(140deg);
}

.mini-value {
    font-size: 18px;
    font-weight: bold;
}

.mini-label {
    font-size: 12px;
    color: #888;
}
/* Card */
.rings-gauge {
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
    direction: rtl;
    margin: auto;
}

/* Header */
.gauge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gauge-header h4 {
    font-size: 20px;
    color: #273a41;
}

.export-btn {
    background: #d6a84a;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
}

/* Rings Wrapper */
.rings-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

/* Chart */
.rings-chart {
    position: relative;
    width: 220px;
    height: 220px;
}

/* Ring Base */
.ring {
    position: absolute;
    border-radius: 50%;
    border: 8px solid transparent;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
}

/* Gold Ring (30%) */
.ring-gold {
    width: 200px;
    height: 200px;
    border-top-color: #d6a84a;
    border-right-color: #d6a84a;
    border-left-color: #d6a84a;
}

/* Dark Ring (50%) */
.ring-dark {
    width: 170px;
    height: 170px;
    border-top-color: #1f2f34;
    border-right-color: #1f2f34;
}

/* Gray Ring (20%) */
.ring-gray {
    width: 140px;
    height: 140px;
    border-top-color: #cfcfcf;
}

/* Center */
.rings-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rings-center .value {
    font-size: 32px;
    font-weight: bold;
    color: #273a41;
}

/* Legend */
.rings-legend {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.percent {
    width: 40px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.gold { background:#d6a84a; }
.dot.dark { background:#1f2f34; }
.dot.gray { background:#cfcfcf; }

.label {
    color: #333;
}
.reports-header {
    flex-wrap: wrap;
    gap: 16px;
}

.reports-title {
    font-size: 35px;
    color: rgba(39, 58, 65, 1);
    font-weight: bold;
}

.reports-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-report {
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    color: #fff;
    background: #d6a84a;
}

.btn-report:hover {
    opacity: 0.9;
}
/* Filter Box */
.filter-box {
    /* background: #fff; */
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    /* box-shadow: 0 8px 30px rgba(0,0,0,0.12); */
}

/* Date Input */
.filter-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
}

.filter-input i {
    color: #999;
    font-size: 16px;
}

.filter-input input {
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    background: transparent;
}

.filter-label {
    font-size: 13px;
    color: #777;
    white-space: nowrap;
}

/* Filter Button */
.filter-apply-btn {
    background: #d6a84a;
    border: none;
    color: #fff;
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 13px;
    cursor: pointer;
}

.filter-apply-btn:hover {
    opacity: 0.9;
}
.w-fit {
    width: fit-content;
}
.border-radius-custom {
    border-radius: 20px;
}