:root {
    --primary-color: #6366f1;
    --secondary-color: #818cf8;
    --bg-color: #f8fafc;
    --sidebar-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --income-color: #10b981;
    --expense-color: #f43f5e;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

.container {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
}


/* Sidebar Styles */

.sidebar {
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li {
    margin-bottom: 0.5rem;
}

.sidebar nav ul li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar nav ul li.active a,
.sidebar nav ul li a:hover {
    background-color: #eff6ff;
    color: var(--primary-color);
}

.user-profile {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-info .name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-info .status {
    font-size: 0.8rem;
    color: var(--text-secondary);
}


/* Main Content Styles */

.main-content {
    padding: 2rem;
    overflow-y: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.notification-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.notification-btn:hover {
    background-color: #f1f5f9;
}

.add-funds-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.add-funds-btn:hover {
    background-color: var(--secondary-color);
}


/* Cards & Stats */

.overview {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
}

.main-balance {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.balance-amount {
    margin-bottom: 1.5rem;
}

.balance-amount .currency {
    font-size: 1.5rem;
    font-weight: 500;
}

.balance-amount .amount {
    font-size: 3rem;
    font-weight: 700;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.trend {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    background-color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--card-shadow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.income {
    background-color: #d1fae5;
    color: var(--income-color);
}

.stat-icon.expense {
    background-color: #fee2e2;
    color: var(--expense-color);
}

.stat-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-info p {
    font-weight: 700;
    font-size: 1.1rem;
}


/* Transactions Table */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.transaction-list {
    background-color: white;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    padding: 0.5rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.item-details p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.transaction-amount {
    font-weight: 700;
    font-size: 1rem;
}

.transaction-amount.income {
    color: var(--income-color);
}

.transaction-amount.expense {
    color: var(--expense-color);
}


/* Right Panel Styles */

.right-panel {
    background-color: var(--sidebar-bg);
    border-left: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.credit-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.credit-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-top i.fa-chip {
    font-size: 2rem;
    color: #ffd700;
}

.card-top i.fa-mastercard {
    font-size: 2.5rem;
}

.card-number {
    font-size: 1.25rem;
    letter-spacing: 2px;
    word-spacing: 5px;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
}

.card-bottom span {
    font-size: 0.7rem;
    opacity: 0.7;
    text-transform: uppercase;
}

.card-bottom p {
    font-size: 0.85rem;
    font-weight: 600;
}


/* Quick Transfer */

.contacts {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.contact-item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.contact-item:hover img {
    border-color: var(--primary-color);
}

.contact-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

.add-contact {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.transfer-input {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.icon_logo3 {
    content: "";
    position: absolute;
    /*border-radius: 6%;*/
    /*border: 1.5px solid #1a1a1a;*/
    top: 1;
    left: 5%;
    width: 55px;
    height: 55px;
    /*background-color: #070707;*/
    z-index: 0;
}

.transfer-input input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
}

.send-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.send-btn:hover {
    background-color: var(--secondary-color);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 200px 1fr;
    }
    .right-panel {
        display: none;
    }
}
