:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #9b59b6;
}

body {
    padding-top: 0;
    padding-bottom: 2rem;
    transition: background-color 0.3s ease;
}

.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
}

.nav-link:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

/* Dropdown menu styling */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.dropdown-item i {
    width: 1.2rem;
    text-align: center;
    margin-inline-end: 0.5rem;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.form-section {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flash-messages {
    position: fixed;
    top: 20px;
    inset-inline-end: 20px;
    z-index: 1050;
    min-width: 300px;
}

.alert {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.loading-spinner {
    display: none;
    width: 3rem;
    height: 3rem;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #1a1a1a;
    --bs-body-color: #e9ecef;
}

footer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* Account item hover effect */
.account-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

/* Spinning animation for loading indicators */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Chart container styles */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1.5rem;
}

/* Transaction list styles */
.transaction-list .transaction-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Category badge styles */
.category-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50rem;
}

/* Category chip styles */
.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50rem;
    background-color: rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
    font-weight: 500;
}

.category-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-name {
    color: inherit;
    white-space: nowrap;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .chart-container {
        height: 250px;
    }
}