:root {
    --color-primary: #3f51b5;
    --color-text-dark: #1e293b;
    --color-text-light: #64748b;
    --color-bg-main: #f8fafc;
    --color-bg-card: #ffffff;
    --color-success: #4caf50;
    --color-danger: #f44336;
    --color-orange: #ff9800;
    --color-yellow: #ffc107;
    --color-purple: #9c27b0;
    --color-light-blue: #e8eaf6;
    --border-radius-base: 12px;
    --shadow-base: 0 4px 8px rgba(0, 0, 0, 0.05);
    --font-family: 'IBM Plex Sans Arabic', sans-serif;
    --layout-padding: 24px;
    --card-padding: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    letter-spacing: 0;
}

::selection {
    background-color: #2196f3;
    color: white;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-dark);
    direction: rtl;
    font-weight: 600;
}

html,
body {
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1,
h3 {
    font-weight: 700;
}

.dashboard-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/*sidebar section*/
.sidebar {
    background-color: var(--color-bg-card);
    border-left: 1px solid #eee;
    padding: var(--card-padding);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    overflow-y: auto;
    padding-bottom: 40px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 0 5px;
}

.logo-icon-wrap {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #198dec, #0b53a6);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.main-logo-icon {
    color: white;
    font-size: 1.1rem;
}

.logo-text-wrap h1 {
    font-size: 1.9rem;
    color: var(--color-text-dark);
    line-height: 1;
}

.logo-text-wrap p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-weight: 400;
}

.main-nav {
    margin-top: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 14px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: var(--color-text-dark);
    transition: background-color 0.2s;
    font-weight: 400;
    font-size: 1.1rem;
}

.nav-link:hover {
    background-color: #f5f5f5;
}

.nav-link.active {
    background-color: #f0f4ff;
    color: var(--color-primary);
    font-weight: 600;
    border-right: 4px solid var(--color-primary);
}

.nav-link i {
    margin-left: 15px;
    font-size: 1.1rem;
    color: var(--color-text-dark);
    width: 20px;
    text-align: center;
}

.nav-link.active i {
    color: var(--color-primary);
}

.quick-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.actions-heading {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
    padding-right: 15px;
    font-weight: 400;
}

.actions-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.action-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 15px;
    margin: 0;
    border: none;
    background: transparent;
    color: var(--color-text-dark);
    border-radius: 8px;
    width: 100%;
    transition: background-color 0.2s, transform 0.2s;
    font-weight: 400;
    font-size: 1rem;
}

.action-item:hover {
    background-color: #f5f5f5;
    transform: translateX(-5px);
}

.action-item i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    border-radius: 8px;
    margin-left: 15px;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.action-item.send-money i {
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

.action-item.add-money i {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

.action-item.pay-bill i {
    color: #9333ea;
    background-color: rgba(147, 51, 234, 0.1);
}

.action-item.invest i {
    color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.1);
}


@media (max-width: 1280px) {

    .logo-text-wrap,
    .nav-link span,
    .actions-heading,
    .action-item span {
        display: none;
    }

    .sidebar {
        width: 80px;
        padding: 15px 5px;
        overflow-x: hidden;
    }

    .dashboard-wrap {
        grid-template-columns: 80px 1fr;
    }

    .logo-box {
        justify-content: center;
        margin-bottom: 25px;
    }

    .nav-link,
    .action-item {
        justify-content: center;
        padding: 12px 0;
        margin-bottom: 12px;
    }

    .nav-link i,
    .action-item i {
        margin: 0;
    }

    .nav-link.active {
        border-right: none;
        border-radius: 8px;
    }

    .action-item i {
        width: 40px;
        height: 40px;
    }

    .action-item:hover {
        transform: none;
        background-color: #f5f5f5;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

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

/*--main section--*/
.main-content-area {
    padding: var(--layout-padding);
    overflow-x: hidden;
}

/*--header section--*/
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 20px;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 12px;
}

.header-branding .logo-icon-wrap {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #198dec, #0b53a6);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-branding .logo-icon-wrap i {
    color: white;
    font-size: 1.1rem;
}

.header-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.branding-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.branding-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: #e8f5e9;
    color: #28a745;
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border-radius: 15%;
    color: #495057;
    font-size: 1.1rem;
    transition: all 0.2s;
    border: 1px solid #eee;
}

.control-btn:hover {
    background-color: #f5f5f5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.notify-btn {
    position: relative;
}

.notify-count {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #dc3545;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid white;
    line-height: 1;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.user-info {
    text-align: right;
    line-height: 1.2;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.user-tier {
    font-size: 0.75rem;
    color: #747474;
}

.user-profile:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .main-header {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        flex-wrap: nowrap;
    }
}

@media (max-width: 640px) {
    .main-header {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
        align-items: flex-start;
        gap: 10px;
    }

    .header-branding {
        width: 100%;
        flex-grow: 0;
        gap: 10px;
        order: 1;
        flex-wrap: wrap;
        min-width: 0;
    }

    .header-controls {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        order: 2;
        margin-top: 10px;
        min-width: 0;
    }

    .status-badge {
        width: 100%;
        justify-content: center;
        padding: 8px 15px;
        order: 10;
        margin-top: 10px;
    }

    .user-profile {
        flex-shrink: 1;
        min-width: 0;
        margin-right: auto;
        padding: 0;
        border: none;
        background: none;
    }

    .user-info {
        display: none;
    }

    .user-avatar,
    .control-btn {
        flex-shrink: 1;
        min-width: 15px;

    }
}

/*--summary section--*/
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.summary-card {
    background-color: var(--color-bg-card);
    padding: 25px;
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-base);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.card-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 5px;
    font-weight: 500;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.2;
    margin-bottom: 15px;
}

.balance-card .card-value {
    color: var(--color-primary);
}

.card-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 15px;
}

.card-trend i {
    font-size: 0.7rem;
}

.trend-up {
    color: var(--color-success);
    background-color: rgba(76, 175, 80, 0.1);
}

.trend-down {
    color: var(--color-danger);
    background-color: rgba(244, 67, 54, 0.1);

}

@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .summary-card {
        padding: 18px;
    }

    .card-value {
        font-size: 1.6rem;
    }
}

@media (max-width: 360px) {
    .summary-grid {
        gap: 10px;
    }

    .summary-card {
        padding: 10px;
    }

    .card-value {
        font-size: 1.2rem;
        word-wrap: break-word;
    }

    .card-label {
        font-size: 0.8rem;
    }

    .card-trend {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
}

/*top_section*/
.top_section {
    display: grid;
    grid-template-columns: 1fr 2.05fr;
    gap: 25px;
    direction: rtl;
}

.right-side {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.widget.recent-transactions {
    grid-column: 2 / 3;
    height: 100%;
}

.widget.new-activities,
.widget.monthly-bills {
    flex-grow: 1;
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 15px;
}

.activity-log {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.log-item {
    display: flex;
    align-items: center;
    border-radius: 12px;
    padding: 12px 15px;
    transition: 0.3s;
    position: relative;
    border-left: 4px solid transparent;
}

.activity-log-blue {
    background-color: #c2daff;
}

.activity-log-green {
    background-color: #d4efd5;
}

.item-icon {
    font-size: 20px;
    margin-left: 15px;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-blue {
    border-left-color: var(--color-primary);
}

.activity-blue .item-icon {
    color: var(--color-primary);
    background-color: rgba(63, 81, 181, 0.1);
}

.activity-green {
    border-left-color: var(--color-success);
    margin-bottom: 15px;
}

.activity-green .item-icon {
    color: var(--color-success);
    background-color: rgba(76, 175, 80, 0.1);
}

.item-details {
    flex-grow: 1;
}

.item-details .item-title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}

.item-title span {
    font-size: 13px;
    font-weight: 600;
}

.activity-blue .item-title span {
    color: #3f51b5;
}

.activity-green .item-title span {
    color: #10b981;
}

.item-text {
    font-size: 10px;
    color: var(--color-text-light);
    margin-bottom: 0;
    white-space: nowrap;
}

.item-time {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 5px;
}

.view-more {
    display: block;
    text-align: center;
    color: var(--color-primary);
    font-weight: 400;
    padding-top: 15px;
    position: relative;
}

.view-more::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(transparent, #f5f1f1, transparent);
}

.widget-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.widget-header-row .view-more-link {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s;
}

.widget-header-row .view-more-link:hover {
    color: var(--color-primary, #3f51b5);
}

.bill-total-box {
    text-align: center;
    margin-bottom: 25px;
}

.bill-total-box .total-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-dark, #333);
    line-height: 1.2;
    margin: 0;
}

.bill-total-box .total-label {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 4px;
    margin-bottom: 0;
}

.bills-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.bill-item {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    border: 1px solid #eee;
    color: #64748b;
}

.bill-item i {
    font-size: 20px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #fff;
    margin: 0 auto 8px;
}

.bill-item p {
    font-weight: 700;
    font-size: 17px;
    margin-top: 5px;
    margin-bottom: 5px;
    line-height: 1.4;
    color: black;
}

.bill-item.item-blue i {
    background-color: #85b4ff;
}

.bill-item.item-yellow i {
    background-color: #ffe492;
    color: #333;
}

.bill-item.item-green i {
    background-color: #6fdfba;
}

.bill-item.item-red i {
    background-color: #f7a39d;
}

.due-text {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

.text-danger {
    color: var(--color-danger);
}

.text-warning {
    color: var(--color-orange);
}

.text-success {
    color: var(--color-success);
}

.text-secondary {
    color: #94a3b8;
}

/*recent-transactions section*/
.table-scroll-wrap {
    overflow-x: auto;
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    font-size: 14px;
    min-width: 700px;
}

th,
td {
    padding: 15px 12px;
    text-align: right;
    border-bottom: none;
    white-space: nowrap;
}

thead tr {
    background-color: #f8fafc;
    border-radius: 8px;
}

thead {
    position: relative;
}

thead::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(transparent, #f5f1f1, transparent);
}

th {
    font-weight: 500;
    color: var(--color-text-light);
}

.table-row {
    background-color: var(--color-bg-card);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background-color var(--transition-fast);
}

.table-row:hover {
    background-color: var(--color-light-blue);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
    font-weight: 600;
}

.user-cell img,
.user-cell i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #64748b;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-cell .food {
    background-color: rgb(255, 255, 169);
}

.user-cell .shopping {
    background-color: #77baf1;
}

.user-cell .gas {
    background-color: rgb(247, 196, 196);
}

.user-cell .club {
    background-color: #aad9ff;
}

.user-cell .course {
    background-color: #bfffea;
}

.user-cell .film {
    background-color: rgb(182, 171, 249);
}

.sub-text {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.2;
    display: block;
    font-weight: 400;
}

.badge {
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.badge i {
    margin-left: 5px;
}

.badge-green {
    background-color: rgb(167, 255, 167);
    color: green;
}

.badge-orange {
    background: rgb(234, 206, 154);
    color: rgb(178, 118, 7);
}

.badge-blue {
    background: #77baf1;
    color: blue;
}

.badge-red {
    background: rgb(247, 196, 196);
    color: rgb(188, 13, 13);
}

.badge-purple {
    background-color: rgb(247, 190, 247);
    color: blueviolet;
}

.badge-mauve {
    background-color: rgb(182, 171, 249);
    color: rgb(91, 79, 155);
}

.badge-gray {
    background-color: #aad9ff;
    color: rgb(116, 116, 215);
}

.badge-lightgreen {
    background-color: #bfffea;
    color: green;
}

.status-cell {
    text-align: center;
}

.amount-cell {
    font-weight: bold;
    text-align: center;
}

.status-complete {
    color: #16a34a;
    background-color: #dcfce7;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
}

.status-pending {
    color: #d97706;
    background-color: #fef3c7;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
}

.income-amount {
    color: var(--color-success);
}

.expense-amount {
    color: var(--color-danger);
}

@media (max-width: 1400px) {

    .widget.recent-transactions {
        overflow-x: auto;
    }

    .item-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .log-item {
        padding: 10px 12px;
    }

    .item-text {
        white-space: nowrap;
        overflow: hidden;
        max-width: 90%;
        font-size: 10px;
    }

    .item-details .item-title {
        font-size: 14px;
    }

    .bill-item i {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .bill-item {
        padding: 10px;
    }

    .bill-item p {
        font-size: 15px;
    }

    .bills-list-grid {
        gap: 10px;
    }

    .bill-total-box .total-amount {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .main-content-area {
        padding-left: 15px;
        padding-right: 15px;
    }

    .top_section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .right-side {
        display: contents;
    }

    .widget.new-activities,
    .widget.recent-transactions,
    .widget.monthly-bills {
        grid-column: 1 / -1;
        width: 100%;
    }

    .widget.new-activities {
        order: 1;
    }

    .widget.recent-transactions {
        order: 2;
    }

    .widget.monthly-bills {
        order: 3;
    }

    .widget {
        overflow: hidden;
    }

    .widget.recent-transactions {
        overflow-x: auto;
    }

    table {
        min-width: 650px;
        font-size: 13px;
    }

    th,
    td {
        padding: 12px 10px;
    }
}

@media (max-width: 480px) {
    .main-content-area {
        padding-left: 10px;
        padding-right: 10px;
    }

    .widget {
        padding: 10px;
    }

    .bills-list-grid {
        grid-template-columns: 1fr;
    }

    table {
        min-width: 550px;
    }

    .badge,
    .status-complete,
    .status-pending {
        font-size: 12px;
        padding: 4px 8px;
    }
}

@media (max-width: 360px) {
    .item-text {
        white-space: normal;
        overflow: visible;
        max-width: 100%;
        font-size: 7px;
    }

    .widget.new-activities .item-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
        margin-left: 7px;
    }

    .widget.new-activities .log-item {
        padding: 6px 8px;
    }

    .widget.new-activities .item-details .item-title {
        font-size: 10px;
    }

    .widget.new-activities .item-title span {
        font-size: 8px;
    }
}

/*bottom_section */
.bottom_section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    padding-top: 1.5rem;
}

.bottom_section #payment-methods {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
}

.bottom_section #budget-overview {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.bottom_section #income-expenses {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.bottom_section #account-summary {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}


.widget-box {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.widget-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
}

.view-more-link {
    font-size: 0.875rem;
    color: #4a5568;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.view-more-link:hover {
    color: #2d3748;
}

.BudgetBox-Summary {
    background-color: #ebf8ff;
    border: 1px solid #cceeff;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.SummaryData-Row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.Summary-LabelAlt {
    font-size: 0.875rem;
    color: #718096;
}

.Summary-Label {
    font-size: 0.875rem;
    color: #1e51a8;
}

.Summary-MainAmount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e51a8;
}

.Summary-AltAmount {
    font-size: 1.125rem;
    font-weight: 600;
    color: #3b82f6;
}

.Data-RightAlign {
    text-align: right;
}

.Summary-ProgressBar {
    width: 100%;
}

.Progress-TextDetails {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #4a5568;
    margin-bottom: 0.25rem;
}

.Progress-Container {
    width: 100%;
    background-color: #e2e8f0;
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
}

.Progress-Fill {
    height: 100%;
    background-color: #3b82f6;
    border-radius: 9999px;
    width: 0;
    animation: fill-progress 1.5s ease-out forwards;
    transition: width 1.5s ease-out;
}


.Progress-SummaryFill {
    width: 84%;
}

.Progress-50 {
    width: 50%;
}

.Progress-100 {
    width: 100%;
}

.Progress-80 {
    width: 80%;
}

.Progress-86 {
    width: 86%;
}

@keyframes fill-progress {
    from {
        width: 0%;
    }
}

.BudgetBox-CategoryList {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.Category-Item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    padding-bottom: 15px;
    background-color: #fafafa;
    border: 1px solid #f0f0f0;
}

.Category-Item:hover {
    background-color: #ffffff;
    transform: translateY(3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: #dddddd;
}

.Category-Header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.Category-Info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.Icon-Wrapper {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.Category-Orange .Amount-Value {
    color: #f59e0b;
}

.Category-Red .Amount-Value {
    color: #ef4444;
}

.Category-Pink .Amount-Value {
    color: #ec4899;
}

.Category-Green .Amount-Value {
    color: #22c55e;
}


.Icon-Orange {
    background-color: #fee9bf;
    color: #f59e0b;
}

.Icon-Red {
    background-color: #fef2f2;
    color: #ef4444;
}

.Icon-Pink {
    background-color: #fdf2f8;
    color: #ec4899;
}

.Icon-Green {
    background-color: #d9f9e3;
    color: #22c55e;
}

.Fill-Orange {
    background-color: #f59e0b;
}

.Fill-Red {
    background-color: #ef4444;
}

.Fill-Pink {
    background-color: #ec4899;
}

.Fill-Green {
    background-color: #22c55e;
}

.Item-Title {
    font-weight: 500;
    color: #2d3748;
}

.Item-Subtitle {
    font-size: 0.75rem;
    color: #718096;
}

.Category-Amount {
    text-align: right;
}

.Amount-Value {
    font-weight: 600;
    color: #2d3748;
}


.Status-Badge {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.Status-Green {
    color: #16a34a;
    background-color: #dcfce7;
}

.Status-Red {
    color: #dc2626;
    background-color: #fee2e2;
}

.Status-Yellow {
    color: #d97706;
    background-color: #fef3c7;
}

/*income-expenses section*/
.Chart-Legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #4a5568;
}

.Legend-Item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.Legend-Color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.Color-Income {
    background-color: #34d399;
}

.Color-Expense {
    background-color: #f87171;
}

#income-expenses-chart.Chart-Area {
    height: 12rem;
}

.Chart-GroupedBars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 100%;
    width: 100%;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 35px;
}

.Chart-Group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 20%;
}

.Chart-BarsContainer {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    height: 100%;
}

.Bar-Income,
.Bar-Expense {
    width: 1.25rem;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.Bar-Income {
    background-color: #34d399;
}

.Bar-Expense {
    background-color: #f87171;
}

.Bar-Income:hover,
.Bar-Expense:hover {
    opacity: .7;
    transform: translateY(-2px);
}

.Chart-Label {
    font-size: 0.75rem;
    color: #718096;
}

.bar-height-98 {
    height: 98px;
}

.bar-height-96 {
    height: 96px;
}

.bar-height-95 {
    height: 95px;
}

.bar-height-92 {
    height: 92px;
}

.bar-height-45 {
    height: 45px;
}

.bar-height-42 {
    height: 42px;
}

.bar-height-38 {
    height: 38px;
}

/*payment-methods section*/
.Payment-CardsList {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.Card-Flipper {
    height: 190px;
    perspective: 1000px;
}

.Card-Inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.Card-Flipper:hover .Card-Inner {
    transform: rotateY(180deg);
}

.Card-Face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    color: #ffffff;
}

.Card-Visa {
    background: #4A148C;
}

.Card-Mastercard {
    background: #B71C1C;
}

.Card-Paypal {
    background: #0D47A1;
}

.Card-Back {
    background: #1f2937;
    transform: rotateY(180deg);
}

.Primary-Tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.Card-Header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.Brand-Icon {
    font-size: 2.5rem;
}

.Card-Body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-top: 15px;
}

.Card-ChipMockup {
    width: 48px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: grid;
    place-items: center;
}

.Chip-Inner {
    width: 50%;
    height: 60%;
    background-color: rgba(255, 255, 255, 0.45);
    border: none;
    border-radius: 4px;
}

.Card-Number {
    font-size: 18px;
    letter-spacing: 2px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
}

.Card-DetailsRow {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 10px;
}

.Detail-Label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
}

.Detail-Value {
    font-weight: bold;
    font-size: 14px;
    color: #ffffff;
}

.Card-TitleStyle {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.Mag-Stripe {
    height: 140px;
    border-radius: 4px;
    margin: 0 3px;
    background: linear-gradient(to right, #252424 10%, #373737 75%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.Signature-Panel {
    height: 70px;
    margin: 0.75rem 5px 0;
    padding: 0 0.5rem;
    position: relative;
    background: #edf6ff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.Signature-Panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: radial-gradient(ellipse at center,
            #8f98a3 5%,
            #aeb5bb 40%,
            #fcfcfc 90%);
    border-radius: 6px;
    z-index: 1;
}

.Signature-Scribble {
    flex: 1;
    height: 100%;
    z-index: 2;
}

.Last4-Digits {
    font-family: 'Courier New', Courier, monospace;
    font-style: italic;
    color: #1f2937;
    font-weight: 600;
    z-index: 3;
    position: relative;
    margin-right: auto;
    padding-left: 10px;
}

.CVV-Row {
    display: flex;
    margin-top: 0.5rem;
    align-items: center;
}

.Code-Label {
    font-size: 0.75rem;
    color: #d1d5db;
    text-transform: uppercase;
}

.Code-Box {
    background-color: #ffffff;
    color: #1f2937;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    font-family: 'Courier New', Courier, monospace;
    margin-right: 0.5rem;
}

.Flex-Spacer {
    flex: 1;
}

.Status-Verified {
    color: #4ADE80;
}

.Micro-Print {
    color: #798086;
    margin-top: 5px;
    font-size: small;
}

/*account-summary section*/
.AccountBox-List {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.Account-Item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.Account-Item:hover {
    background-color: #e9ecef;
}

.Account-Info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.Icon-Blue {
    background-color: #e0f2fe;
    color: #3b82f6;
}

.Icon-Green {
    background-color: #d3fade;
    color: #22c55e;
}

.Icon-Purple {
    background-color: #e3c8ff;
    color: #6129e3;
}

.Account-Balance {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
}

.Account-Balance.Balance-Debit {
    color: #ef4444;
}

/*responsive to bottom section*/
@media (max-width: 1400px) {

    .widgets-grid {
        gap: 25px;
        padding-top: 25px;
    }

    .widget-box {
        padding: 15px;
    }

    .widget-title,
    .bottom_section .widget-title {
        font-size: 19px;
    }

    .Summary-MainAmount {
        font-size: 1.2rem;
    }

    .Summary-AltAmount {
        font-size: 1rem;
    }

    .BudgetBox-Summary {
        padding: 0.9rem;
        margin-bottom: 1.4rem;
    }

    .Icon-Wrapper {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .Item-Title {
        font-size: 0.85rem;
    }

    .Item-Subtitle {
        font-size: 0.55rem;
    }

    .Amount-Value {
        font-size: 0.95rem;
    }

    .Chart-Legend {
        font-size: 0.85rem;
    }

    .Account-Balance {
        font-size: .8rem;
    }

    .Account-Info .Icon-Wrapper {
        width: 35px;
        height: 38px;
        font-size: 0.95rem;
    }

    .Account-Info .Item-Title {
        font-size: 0.9rem;
    }


    .Card-Number {
        font-size: 14px;
    }

    .Card-Face {
        padding: 18px;
    }

    .Detail-Value {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .bottom_section {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
        padding-top: 20px;
    }

    .bottom_section #budget-overview {
        grid-column: 1 / -1;
        grid-row: auto;
        order: 4;
    }

    .bottom_section #income-expenses {
        grid-column: 1 / -1;
        grid-row: auto;
        order: 5;
    }

    .bottom_section #account-summary {
        grid-column: 1 / -1;
        grid-row: auto;
        order: 6;
    }

    .bottom_section #payment-methods {
        grid-column: 1 / -1;
        grid-row: auto;
        order: 7;
    }

    .widget-box {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .bottom_section {
        gap: 15px;
        padding-top: 15px;
    }

    .Summary-MainAmount {
        font-size: 1.1rem;
    }

    .Summary-AltAmount {
        font-size: 0.9rem;
    }

    .Summary-Label,
    .Summary-LabelAlt {
        font-size: 0.75rem;
    }

    .Progress-TextDetails {
        font-size: 0.65rem;
    }

    .Icon-Wrapper {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .Item-Title {
        font-size: 0.85rem;
    }

    .Item-Subtitle {
        font-size: 0.65rem;
    }

    .Amount-Value {
        font-size: 0.8rem;
    }

    .Card-Flipper {
        height: 150px;
    }

    .Primary-Tag {
        font-size: 15px;
        padding: 1px 3px;
        line-height: 1;
        height: auto;
        top: 3px;
    }

    .Card-Face {
        padding: 12px;
    }

    .Card-Number {
        font-size: 14px;
    }

    .Account-Balance {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .bottom_section {
        padding-left: 2px;
        padding-right: 2px;
        gap: 8px;
    }

    .widget-title {
        font-size: 0.75rem;
    }

    .widget-header-row .view-more-link {
        font-size: 0.6rem;
    }

    .SummaryData-Row .Summary-Label {
        font-size: 0.6rem;

    }

    .Summary-MainAmount {
        font-size: 0.8rem;
    }

    .Summary-AltAmount {
        font-size: 0.7rem;
    }

    .BudgetBox-Summary {
        padding: 0.3rem;
        margin-bottom: 0.5rem;
    }

    .BudgetBox-CategoryList {
        gap: 0.3rem;
    }

    .Icon-Wrapper {
        width: 20px;
        height: 20px;
        font-size: 0.55rem;
    }

    .Item-Title {
        font-size: 0.65rem;
    }

    .Item-Subtitle {
        font-size: 0.5rem;
    }

    .Amount-Value {
        font-size: 0.5rem;
    }

    .Status-Badge {
        font-size: 0.4rem;
        padding: 1px 3px;
    }

    .Chart-Legend {
        gap: 0.3rem;
        font-size: 0.6rem;
        margin-bottom: 0.3rem;
    }

    .Chart-BarsContainer {
        gap: 0.05rem;
    }

    .Bar-Income,
    .Bar-Expense {
        width: 0.6rem;
    }

    .Chart-Label {
        font-size: 0.5rem;
    }


    .Account-Info .Icon-Wrapper {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }

    .Account-Info .Item-Title {
        font-size: 0.6rem;
    }

    .Account-Info .Item-Subtitle {
        font-size: 0.45rem;
    }

    .Account-Balance {
        font-size: 0.5rem;
    }

    .Account-Item {
        padding: 6px;
    }

    .Card-Flipper {
        height: 100px;
    }

    .Card-Face {
        padding: 5px;
    }

    .Card-Number {
        font-size: 9px;
        letter-spacing: 0;
    }

    .Brand-Icon {
        font-size: 1.5rem;
    }

    .Primary-Tag {
        font-size: 7px;
        padding: 1px 3px;
        line-height: 1;
        height: auto;
        top: 0;
    }

    .Card-ChipMockup {
        width: 25px;
        height: 18px;
    }

    .Card-TitleStyle {
        font-size: 0.75rem;
    }

    .Detail-Label,
    .Detail-Value {
        font-size: 7px;
        padding-right: 0px;
        margin-right: 0px;
        white-space: nowrap;
    }

    .Status-Badge {
        font-size: 0.5rem;
        padding: 0px 2px;
    }

    .Mag-Stripe {
        height: 95px;
    }

    .Micro-Print {
        font-size: 7px;
    }

    .Signature-Panel {
        height: 50px;
    }

    .Last4-Digits {
        font-size: 0.5rem;
        line-height: 1.2;
    }

    .Code-Box {
        padding: 0px 2px;
        font-size: 0.5rem;
    }

    .Signature-Message {
        font-size: 0.45rem;
        line-height: 1;
    }
}

/*responsive between 1280:769 px for top and bottom sections*/
@media (min-width: 769px) and (max-width: 1280px) {
    .widgets-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding-top: 25px;
    }

    .top_section {
        display: contents;
        grid-template-columns: auto;
        gap: 0;
    }

    .top_section,
    .bottom_section,
    .right-side {
        display: contents;
        /*ملحوظه مهمه ليا الفاليو دي عشان الاستركشر اقدر اتحكم فيه بحريه ومشروحه في الكراسه بالكامل*/
    }

    .widget.new-activities {
        grid-column: 1 / 2;
        order: 1;
    }

    #income-expenses {
        grid-column: 2 / 3;
        order: 2;
    }

    .widget.recent-transactions {
        grid-column: 1 / 3;
        order: 3;
    }

    .widget.monthly-bills {
        grid-column: 1 / 2;
        order: 4;
    }

    #account-summary {
        grid-column: 2 / 3;
        order: 5;
    }

    #budget-overview {
        grid-column: 1 / 2;
        order: 6;
    }

    #payment-methods {
        grid-column: 2 / 3;
        order: 7;
    }

    .bottom_section #income-expenses,
    .bottom_section #account-summary,
    .bottom_section #budget-overview,
    .bottom_section #payment-methods {
        grid-row: auto;
        grid-column: auto;
    }


    .widget,
    .widget-box {
        padding: 15px;
    }

    .widget-title,
    .bottom_section .widget-title {
        font-size: 18px;
    }

    .bottom_section {
        gap: 1.25rem;
        padding-top: 1.25rem;
    }

    .bottom_section .view-more-link {
        font-size: 0.8rem;
    }

    .BudgetBox-Summary {
        padding: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .Summary-MainAmount {
        font-size: 1.3rem;
    }

    .Summary-AltAmount {
        font-size: 1rem;
    }

    .Summary-Label,
    .Summary-LabelAlt {
        font-size: 0.8rem;
    }

    .Progress-TextDetails {
        font-size: 0.7rem;
    }

    .BudgetBox-CategoryList {
        gap: 1rem;
    }

    .Category-Item {
        padding: 0.5rem;
    }

    .Icon-Wrapper {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .Item-Title {
        font-size: 0.9rem;
    }

    .Item-Subtitle {
        font-size: 0.7rem;
    }

    .Amount-Value {
        font-size: 0.9rem;
    }

    .Status-Badge {
        font-size: 0.65rem;
    }

    .Chart-Legend {
        gap: 1rem;
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    #income-expenses-chart.Chart-Area {
        height: 10rem;
    }

    .Chart-BarsContainer {
        gap: 0.2rem;
    }

    .Bar-Income,
    .Bar-Expense {
        width: 1rem;
    }

    .Chart-Label {
        font-size: 0.65rem;
    }

    .Card-Flipper {
        height: 160px;
    }

    .Primary-Tag {
        top: 1px;
        font-size: 10px;
        color: wheat;
    }

    .Card-Face {
        padding: 15px;
    }

    .Brand-Icon {
        font-size: 2.3rem;
    }

    .Card-ChipMockup {
        width: 40px;
        height: 28px;
    }

    .Card-Number {
        font-size: 16px;
    }

    .Detail-Label {
        font-size: 9px;
    }

    .Detail-Value {
        font-size: 12px;
    }

    .Card-TitleStyle {
        font-size: 1rem;
    }

    .Mag-Stripe {
        height: 110px;
    }

    .Signature-Panel {
        height: 55px;
    }

    .Last4-Digits {
        font-size: 0.7rem;
    }

    .Code-Label {
        font-size: 0.65rem;
    }

    .Code-Box {
        padding: 1px 6px;
        font-size: 0.75rem;
    }

    .AccountBox-List {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        height: 100%;
    }

    .Account-Item {
        flex: 1;
        padding: 0.8rem;
    }

    .Account-Balance {
        font-size: .8rem;
    }

    .Balance-Debit {
        font-size: .7rem;
    }

    .Account-Info .Icon-Wrapper {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .Account-Info .Item-Title {
        font-size: 0.9rem;
    }

    .Account-Info .Item-Subtitle {
        font-size: 0.6rem;
    }
}