* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --secondary-color: #4CAF50;
    --danger-color: #f44336;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes dotPulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

.splash-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.app-logo {
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.logo-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.app-name {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.app-tagline {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.splash-loader {
    margin-top: 3rem;
}

.loader-dots {
    display: flex;
    gap: 0.5rem;
}

.loader-dots span {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.loader-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    position: relative;
}

.screen {
    display: none;
    flex-direction: column;
    min-height: 100vh;
}

.screen.active {
    display: flex;
}

.header {
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-blue {
    background: var(--primary-color);
    color: var(--white);
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.back-btn {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
}

.content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    padding-bottom: 80px;
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.radio-group.horizontal {
    flex-direction: row;
    justify-content: center;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--primary-color);
    background: rgba(33, 150, 243, 0.05);
}

.radio-option input[type="radio"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-option span {
    font-size: 1.125rem;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.btn-text {
    background: transparent;
    color: var(--primary-color);
    padding: 0.5rem;
}

.account-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.account-type-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.account-type-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.account-type-card .icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.account-type-card h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.account-type-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1.5rem;
}

.back-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    margin-right: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-field {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.input-with-currency {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.input-with-currency .input-field {
    padding-left: 2.5rem;
}

.input-with-voice {
    position: relative;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-with-voice input {
    flex: 1;
}

.voice-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.voice-btn:hover {
    background: rgba(33, 150, 243, 0.1);
    transform: scale(1.05);
}

.voice-btn.recording {
    background: var(--danger-color);
    border-color: var(--danger-color);
    animation: pulse 1.5s infinite;
}

.voice-status {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    min-height: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.voice-status.listening {
    color: var(--danger-color);
    font-weight: 600;
}

.voice-status.success {
    color: var(--secondary-color);
    font-weight: 600;
}

.month-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.month-selector button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 700;
}

.month-selector button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.month-selector button:active {
    transform: scale(0.95);
}

.month-selector span {
    font-weight: 700;
    font-size: 1.125rem;
    color: white;
    letter-spacing: 0.5px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    padding: 0.6rem 0.35rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.summary-card .label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    font-weight: 600;
}

.summary-card .amount {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.1;
}

.summary-card.income {
    border-left: 3px solid var(--secondary-color);
}

.summary-card.income .amount {
    color: var(--secondary-color);
}

.summary-card.expense {
    border-left: 3px solid var(--danger-color);
}

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

.summary-card.balance {
    border-left: 3px solid var(--primary-color);
}

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

.summary-card.due {
    border-left: 3px solid var(--danger-color);
}

.summary-card.due .amount {
    color: var(--danger-color);
}

.summary-card.customers {
    border-left: 3px solid var(--primary-color);
}

.summary-card.customers .amount {
    color: var(--primary-color);
}

.search-container {
    margin-bottom: 1rem;
}

.search-with-voice {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 0.875rem 3.5rem 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.search-input::placeholder {
    color: var(--text-light);
}

.voice-btn-search {
    position: absolute;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-btn-search:hover {
    background: rgba(33, 150, 243, 0.1);
    transform: scale(1.1);
}

.voice-btn-search.recording {
    background: var(--danger-color);
    animation: pulse 1.5s infinite;
}

.records-list,
.customers-list {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--text-light);
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
}

.empty-state::before {
    content: '';
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23757575'%3E%3Cpath d='M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.record-item,
.customer-item {
    padding: 0.875rem 0.75rem;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.record-item-wrapper,
.customer-item-wrapper {
    position: relative;
    margin-bottom: 0.75rem;
}

.record-actions {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-shrink: 0;
}

.edit-btn,
.delete-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

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

.edit-btn:hover {
    background: rgba(33, 150, 243, 0.1);
    border-color: var(--primary-color);
}

.edit-btn::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232196F3'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.delete-btn {
    color: var(--danger-color);
}

.delete-btn:hover {
    background: rgba(244, 67, 54, 0.1);
    border-color: var(--danger-color);
}

.delete-btn::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f44336'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.record-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
}

.record-item.income::before {
    background: var(--secondary-color);
}

.record-item.expense::before {
    background: var(--danger-color);
}

.record-item:hover,
.customer-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.record-info,
.customer-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.record-info::before {
    content: '';
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: center;
}

.record-item.income .record-info::before {
    background-color: var(--secondary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z'/%3E%3C/svg%3E");
}

.record-item.expense .record-info::before {
    background-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z'/%3E%3C/svg%3E");
}

.customer-info::before {
    content: '';
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: center;
}

.record-details,
.customer-details {
    flex: 1;
}

.record-info h4,
.customer-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.record-info p,
.customer-info p {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.record-info p::before {
    content: '';
    width: 14px;
    height: 14px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23757575'%3E%3Cpath d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.customer-info p::before {
    content: '';
    width: 14px;
    height: 14px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23757575'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.record-amount {
    font-size: 1rem;
    font-weight: 700;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    background: var(--bg-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.record-amount.income {
    color: var(--secondary-color);
    background: rgba(76, 175, 80, 0.1);
}

.record-amount.expense {
    color: var(--danger-color);
    background: rgba(244, 67, 54, 0.1);
}

.record-amount.due {
    color: var(--danger-color);
    background: rgba(244, 67, 54, 0.1);
}

.fab {
    position: fixed;
    bottom: 80px;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
    transition: all 0.3s ease;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.5);
}

.fab:active {
    transform: scale(1.05) rotate(90deg);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 0.25rem 0;
    border-top: 1px solid var(--border-color);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s ease;
    position: relative;
    border-radius: 12px;
    margin: 0 0.25rem;
}

.nav-item:hover {
    background: rgba(33, 150, 243, 0.05);
}

.nav-item span:first-child {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    transition: transform 0.3s ease;
}

.nav-item span:last-child {
    font-size: 0.7rem;
    font-weight: 600;
}

.nav-item.active {
    color: var(--primary-color);
    background: rgba(33, 150, 243, 0.1);
}

.nav-item.active span:first-child {
    transform: scale(1.1);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 0 0 3px 3px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.profile-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.profile-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.mode-switch {
    display: flex;
    gap: 0.5rem;
}

.mode-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    font-weight: 500;
}

.settings-list {
    display: flex;
    flex-direction: column;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-dark);
    text-align: left;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item.danger {
    color: var(--danger-color);
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.language-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-dark);
}

.language-option:hover {
    border-color: var(--primary-color);
    background: rgba(33, 150, 243, 0.05);
}

.language-name {
    font-weight: 500;
}

.check-icon {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.check-icon.active {
    opacity: 1;
}

.modal-large {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.report-month-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.report-month-selector button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.report-month-selector button:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.report-month-selector h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.report-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.report-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.report-card.income-card {
    border-color: var(--secondary-color);
    background: rgba(76, 175, 80, 0.05);
}

.report-card.expense-card {
    border-color: var(--danger-color);
    background: rgba(244, 67, 54, 0.05);
}

.report-card.balance-card {
    border-color: var(--primary-color);
    background: rgba(33, 150, 243, 0.05);
}

.report-icon {
    font-size: 2.5rem;
}

.report-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.report-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.report-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.report-card.income-card .report-value {
    color: var(--secondary-color);
}

.report-card.expense-card .report-value {
    color: var(--danger-color);
}

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

.report-stats {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.report-stats h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span:first-child {
    color: var(--text-light);
}

.stat-row span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.report-actions {
    display: flex;
    gap: 1rem;
}

.report-actions .btn {
    flex: 1;
}

.report-chart {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.report-chart h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.chart-container {
    width: 100%;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bar-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.bar-wrapper {
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.bar {
    height: 100%;
    border-radius: 15px;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.bar-income {
    background: linear-gradient(90deg, var(--secondary-color), #66bb6a);
}

.bar-expense {
    background: linear-gradient(90deg, var(--danger-color), #ef5350);
}

.bar-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Reports Page Styles - Enhanced Responsive Design */
.back-btn-white {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    padding: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-btn-white:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.back-btn-white:active {
    transform: scale(0.95);
}

.reports-content {
    padding: 1rem;
    padding-bottom: 2rem;
    max-width: 100%;
}

/* Month Selector - Enhanced */
.report-month-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.05) 100%);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(33, 150, 243, 0.2);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

.report-month-selector button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    font-weight: bold;
}

.report-month-selector button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.report-month-selector button:active {
    transform: scale(0.95);
}

.report-month-selector h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    flex: 1;
}

/* Report Cards Grid - Responsive */
.report-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.report-big-card {
    background: var(--white);
    padding: 1.5rem 1rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.report-big-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.report-big-card:hover::before {
    opacity: 1;
}

.report-big-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.report-big-card.income-card {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08) 0%, rgba(76, 175, 80, 0.15) 100%);
    color: var(--secondary-color);
}

.report-big-card.expense-card {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.08) 0%, rgba(244, 67, 54, 0.15) 100%);
    color: var(--danger-color);
}

.report-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.report-card-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-card-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.report-big-card.income-card .report-card-value {
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.report-big-card.expense-card .report-card-value {
    color: var(--danger-color);
    text-shadow: 0 2px 4px rgba(244, 67, 54, 0.2);
}

/* Balance Card - Enhanced */
.report-balance-card {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 50%, #0D47A1 100%);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.35);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.report-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s linear infinite;
}

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

.report-balance-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(33, 150, 243, 0.45);
}

.balance-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: pulse 2s ease-in-out infinite;
}

.balance-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.balance-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.balance-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Report Sections - Enhanced */
.report-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.report-section:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.report-section h4 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Stats Grid - Responsive */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.25rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(245, 245, 245, 0.5) 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.stat-item:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, rgba(33, 150, 243, 0.1) 100%);
    border-color: rgba(33, 150, 243, 0.2);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
}

.income-text {
    color: var(--secondary-color) !important;
}

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

/* Highlights List - Enhanced */
.highlights-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(245, 245, 245, 0.5) 100%);
    border-radius: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.highlight-item:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, rgba(33, 150, 243, 0.1) 100%);
    border-color: rgba(33, 150, 243, 0.2);
    transform: translateX(4px);
}

.highlight-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.highlight-label {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.highlight-value {
    font-size: 1.125rem;
    font-weight: 700;
}

/* Visual Bars - Enhanced */
.visual-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visual-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.bar-track {
    height: 32px;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(245, 245, 245, 0.8) 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 16px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: barShine 2s ease-in-out infinite;
}

@keyframes barShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.bar-fill.income-bar {
    background: linear-gradient(90deg, #4CAF50 0%, #66bb6a 50%, #81c784 100%);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.bar-fill.expense-bar {
    background: linear-gradient(90deg, #f44336 0%, #ef5350 50%, #e57373 100%);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
}

/* Action Buttons - Enhanced */
.report-actions-page {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.report-actions-page .btn {
    flex: 1;
    min-width: 120px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.report-actions-page .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.report-actions-page .btn:active {
    transform: translateY(0);
}

/* Responsive Design - Mobile First */
@media (max-width: 480px) {
    .reports-content {
        padding: 0.75rem;
    }
    
    .report-month-selector {
        padding: 0.875rem 1rem;
        margin-bottom: 1rem;
    }
    
    .report-month-selector h3 {
        font-size: 1.125rem;
    }
    
    .report-month-selector button {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
    
    .report-cards-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .report-big-card {
        padding: 1.25rem 1rem;
    }
    
    .report-card-icon {
        font-size: 2.25rem;
    }
    
    .report-card-value {
        font-size: 1.375rem;
    }
    
    .report-balance-card {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .balance-icon {
        font-size: 2.5rem;
    }
    
    .balance-value {
        font-size: 1.75rem;
    }
    
    .report-section {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .report-section h4 {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .stat-item {
        padding: 0.875rem;
    }
    
    .highlight-item {
        padding: 0.875rem 1rem;
    }
    
    .bar-track {
        height: 28px;
    }
    
    .report-actions-page {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .report-actions-page .btn {
        width: 100%;
        min-width: auto;
    }
    
    .account-type-grid {
        grid-template-columns: 1fr;
    }
    
    .report-summary {
        grid-template-columns: 1fr;
    }
    
    .report-actions {
        flex-direction: column;
    }
    
    .modal-large {
        width: 95%;
        max-height: 85vh;
    }
}

/* Tablet Responsive */
@media (min-width: 481px) and (max-width: 768px) {
    .reports-content {
        padding: 1rem;
    }
    
    .report-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .report-actions-page {
        flex-wrap: wrap;
    }
    
    .report-actions-page .btn {
        flex: 1 1 calc(50% - 0.375rem);
    }
}

/* Desktop Enhancements */
@media (min-width: 769px) {
    .reports-content {
        padding: 1.5rem;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .report-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Charts Page Styles - Enhanced Responsive Design */
.charts-content {
    padding: 1rem;
    padding-bottom: 5rem; /* Space for bottom nav */
    max-width: 800px;
    margin: 0 auto;
}

.chart-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.chart-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.chart-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

/* Pie Chart Styles */
.pie-chart-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pie-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.pie-chart:hover {
    transform: scale(1.05);
}

.pie-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pie-hole span:first-child {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
}

.pie-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.legend-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-info {
    display: flex;
    flex-direction: column;
}

.legend-label {
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 600;
}

.legend-value {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Vertical Bar Chart */
.bar-chart-vertical-container {
    height: 200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: 2rem;
}

.bar-chart-vertical {
    display: flex;
    justify-content: center;
    gap: 4rem;
    height: 100%;
    width: 100%;
    max-width: 300px;
}

.v-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    flex: 1;
    position: relative;
    max-width: 80px;
}

.v-bar {
    width: 100%;
    border-radius: 8px 8px 0 0;
    transition: height 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-height: 4px; /* Ensure visibility */
    position: relative;
}

.v-bar.income {
    background: linear-gradient(180deg, #66bb6a 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.v-bar.expense {
    background: linear-gradient(180deg, #ef5350 0%, var(--danger-color) 100%);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.v-bar-value {
    position: absolute;
    top: -25px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
}

.v-bar-label {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Trend Chart */
.trend-chart-container {
    overflow-x: auto;
    padding-bottom: 1rem;
}

.trend-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem; /* Compact for more days */
    height: 150px;
    padding-top: 1.5rem;
    min-width: max-content;
}

.trend-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    height: 100%;
    width: 16px; /* Narrow bars for trend */
}

.trend-bar-col {
    flex: 1; /* Split height for income/expense if stacked, but we want side by side or stacked? 
                Let's do separate columns usually, but for compact trend, maybe stacked or just show max? 
                Actually, simpler to show just bars side-by-side or stacked. 
                Let's use a dual-column width: 20px group, two 8px bars. */
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 45%; /* Max height for each type within the group area? 
                  Better visual: Side by side thin bars */
}

.trend-bar-group {
    width: 24px;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
}

.trend-bar-col {
    width: 8px;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.t-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
    min-height: 2px;
}

.t-bar.income {
    background: var(--secondary-color);
    opacity: 0.8;
}

.t-bar.expense {
    background: var(--danger-color);
    opacity: 0.8;
}

.t-bar:hover {
    opacity: 1;
    transform: scaleX(1.1);
}

.t-label {
    position: absolute;
    bottom: -20px;
    font-size: 0.65rem;
    color: var(--text-light);
    transform: translateX(-50%);
    left: 50%;
    width: 20px;
    text-align: center;
}

/* Need to fix t-label positioning since trend-bar-group is flex row now */
.trend-bar-group {
    position: relative;
    margin-bottom: 20px; /* Space for labels */
}

.empty-chart-text {
    width: 100%;
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
    background: var(--bg-light);
    border-radius: 12px;
}

.bottom-spacer {
    height: 80px; /* Ensure content isn't hidden behind bottom nav */
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .charts-content {
        padding: 0.75rem;
    }
    
    .pie-chart {
        width: 160px;
        height: 160px;
    }
    
    .bar-chart-vertical {
        gap: 2rem;
    }
    
    .trend-bars {
        gap: 0.35rem; /* Tighter on mobile */
    }
    
    .trend-bar-group {
        width: 16px;
    }
    
    .trend-bar-col {
        width: 6px;
    }
}
