/* ============================================
   ROOT VARIABLES & GLOBAL STYLES
   ============================================ */
:root {
    --primary-color: #1b5e20;
    --primary-dark: #0d3617;
    --primary-light: #2d7e2a;
    --accent-color: #26c281;
    --secondary-color: #f5f5f5;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --success-color: #27ae60;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #ecf0f1;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7f6;
    color: var(--text-dark);
    line-height: 1.6;
}

body.auth-open {
    overflow: hidden;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.active {
    display: block !important;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #efefef;
    border-color: var(--text-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-text {
    background-color: transparent;
    color: var(--text-light);
    border: none;
    text-decoration: underline;
    padding: 8px 24px;
}

.btn-text:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* ============================================
   LANDING PAGE STYLES
   ============================================ */
.landing-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1b5e20 0%, #2d7e2a 100%);
    z-index: 2000;
    animation: slideInLeft 0.5s ease-out forwards;
    overflow-y: auto;
}

.landing-page.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-container {
    width: 100%;
    max-width: 1000px;
    padding: 40px 20px;
    margin: auto;
}

.landing-content {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-header {
    margin-bottom: 40px;
}

.landing-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
}

.landing-logo {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 0 20px 0;
}

.landing-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.landing-hero {
    margin: 40px 0;
}

.hero-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.landing-hero h2 {
    font-size: 36px;
    font-weight: 600;
    margin: 20px 0;
    color: white;
}

.landing-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 50px 0;
    width: 100%;
}

.landing-feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.landing-feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 15px;
}

.card-icon-image {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.card-icon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.landing-feature-card:hover .card-icon-image img {
    transform: scale(1.05);
}

.landing-feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
    color: white;
}

.landing-feature-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

.landing-cta {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.landing-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    order: 2;
}

.cta-button-container {
    order: 1;
}

.btn-large {
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.next-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-primary.btn-large:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary.btn-large:hover .next-arrow {
    transform: translateX(4px);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Page transitions */
.landing-page.exit {
    animation: slideOutLeft 0.5s ease-out forwards;
}

.auth-page.enter {
    animation: slideInRight 0.5s ease-out forwards;
}

.auth-page.exit {
    animation: slideOutRight 0.5s ease-out forwards;
}

/* ============================================
   AUTHENTICATION PAGES
   ============================================ */
.auth-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1b5e20 0%, #2d7e2a 100%);
    z-index: 2000;
    overflow-y: auto;
    padding: 40px 0;
}

.auth-page.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    padding: 40px;
    align-items: center;
}

.auth-left {
    color: white;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.auth-logo h1 {
    font-size: 48px;
    margin-bottom: 8px;
    font-weight: 700;
}

.auth-logo p {
    font-size: 18px;
    opacity: 0.9;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
}

.feature-icon {
    font-size: 32px;
    min-width: 48px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 14px;
    opacity: 0.8;
}

.auth-right {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.auth-form h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.auth-subtitle {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 14px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 16px;
    display: block;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    color: var(--text-light);
    font-size: 14px;
}

.business-type-selector,
.business-btn,
.category-selector,
.category-btn,
.transaction-type-selector,
.type-btn {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.business-btn,
.category-btn,
.type-btn {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 13px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.business-btn.active,
.category-btn.active,
.type-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.business-btn:hover,
.category-btn:hover,
.type-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.type-icon {
    font-size: 20px;
}

/* ============================================
   PAGE CONTAINER
   ============================================ */
#dashboardPage {
    display: none;
}

#dashboardPage.active {
    display: block;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-container {
    --sidebar-width: 220px;
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    background-color: #f5f7f6;
}

.sidebar-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#sidebarToggle:checked ~ .dashboard-container {
    --sidebar-width: 0px;
    grid-template-columns: 0 1fr;
}

#sidebarToggle:checked ~ .dashboard-container .sidebar {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

#sidebarToggle:checked ~ .dashboard-container .main-content {
    grid-column: 1 / -1;
}

.dashboard-container.sidebar-collapsed {
    --sidebar-width: 0px;
}

/* SIDEBAR */
.sidebar {
    background: var(--primary-color);
    color: white;
    padding: 12px 0 18px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    position: fixed;
    width: var(--sidebar-width);
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: width 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.sidebar-toggle-wrap {
    display: flex;
    justify-content: flex-end;
    padding: 0 12px 10px;
}

.dashboard-container.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

.sidebar-logo {
    padding: 0 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 14px;
}

.sidebar-logo h1 {
    font-size: 17px;
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    text-align: left;
    text-decoration: none;
}

.nav-item i {
    font-size: 18px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-img {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    object-fit: contain;
    display: block;
    flex: 0 0 14px;
}

.nav-icon-text {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.nav-label {
    line-height: 1;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item:hover .nav-icon-img {
    filter: brightness(1.1);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.nav-item.active .nav-icon-img {
    filter: brightness(1.2);
}

.nav-icon {
    font-size: 20px;
}

.sidebar-footer {
    padding: 14px 12px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-dark);
    transition: background 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover {
    background: rgba(27, 94, 32, 0.08);
    transform: translateY(-1px);
}

.menu-toggle-open {
    display: none;
}

.menu-toggle-close {
    color: white;
    background: rgba(255, 255, 255, 0.12);
}

.menu-toggle-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

#sidebarToggle:checked ~ .dashboard-container .menu-toggle-open {
    display: inline-flex;
}

#sidebarToggle:checked ~ .dashboard-container .menu-toggle-close {
    display: none;
}

/* MAIN CONTENT */
.main-content {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    background: #f5f7f6;
    min-width: 0;
}

.dashboard-container.sidebar-collapsed {
    grid-template-columns: 0 1fr;
}

.dashboard-container.sidebar-collapsed .main-content {
    grid-column: 1 / -1;
}

.dashboard-container.sidebar-collapsed .main-content {
    min-width: 0;
}

.top-bar {
    background: white;
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left h2 {
    font-size: 22px;
    color: var(--text-dark);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.profile-name {
    font-weight: 600;
    color: var(--text-dark);
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px 28px;
}

.home-overview-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.home-secondary-grid {
    display: grid;
    gap: 18px;
}

.dashboard-panel {
    border: 1px solid rgba(229, 231, 235, 0.9);
}

.dashboard-panel-hero {
    min-height: 100%;
}

.page-content {
    display: none;
}

.page-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   DASHBOARD CONTENT SECTIONS
   ============================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 24px;
    color: var(--text-dark);
}

.page-header select {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    background: white;
}

/* BALANCE SECTION */
.balance-section {
    background: linear-gradient(135deg, #0f5a27 0%, #1f7a34 100%);
    color: white;
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-lg);
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.balance-header h3 {
    font-size: 15px;
}

.date-info {
    font-size: 14px;
    opacity: 0.8;
}

.balance-display h1 {
    font-size: 30px;
    margin-bottom: 14px;
    font-weight: 700;
}

.balance-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.balance-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.breakdown-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 10px;
    text-align: center;
}

.balance-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: 12px;
    text-align: center;
}

.breakdown-item.income .amount,
.balance-item.income .amount {
    color: #26c281;
}

.breakdown-item.expense .amount,
.balance-item.expense .amount {
    color: #e74c3c;
}

.breakdown-item .amount,
.balance-item .amount {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.breakdown-item .label,
.balance-item .label {
    font-size: 12px;
    opacity: 0.8;
}

.recent-transactions-panel {
    margin-top: 18px;
    background: linear-gradient(135deg, rgba(7, 79, 42, 0.88), rgba(10, 107, 57, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 14px;
    backdrop-filter: blur(6px);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.recent-transactions-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, rgba(7, 79, 42, 0.92), rgba(10, 107, 57, 0.88)), url('https://i.pinimg.com/736x/0d/82/55/0d825570598daf94fb812579099259db.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    pointer-events: none;
}

.recent-transactions-panel > * {
    position: relative;
    z-index: 1;
}

.recent-transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.recent-transactions-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.recent-transactions-header span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.recent-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-transaction-item {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.recent-transaction-bubble {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.recent-transaction-bubble.income,
.recent-transaction-amount.income {
    background: #49D18D;
    color: #DFF8EA;
}

.recent-transaction-bubble.expense,
.recent-transaction-amount.expense {
    background: #F59E0B;
    color: #FFE7BC;
}

.recent-transaction-content {
    min-width: 0;
}

.recent-transaction-name {
    font-size: 12px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-transaction-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.84);
}

.recent-transaction-amount {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    padding-left: 8px;
}

/* CHART SECTION */
.chart-section {
    background: white;
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}

.chart-section h3 {
    font-size: 15px;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.chart-placeholder {
    height: 160px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.simple-chart {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    height: 200px;
    width: 100%;
    justify-content: center;
}

.chart-bar {
    width: 40px;
    background: linear-gradient(180deg, #26c281 0%, #1b5e20 100%);
    border-radius: 8px 8px 0 0;
    opacity: 0.8;
}

.trend-info {
    text-align: center;
    color: var(--success-color);
    font-weight: 600;
    margin-top: 16px;
}

/* QUICK ACTIONS */
.quick-actions {
    background: white;
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}

.quick-actions h3 {
    font-size: 15px;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.action-card,
.action-btn {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: none;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.action-card:hover,
.action-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d7e2a 100%);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.action-icon,
.action-btn .icon {
    font-size: 22px;
}

.action-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.action-label,
.action-btn .label {
    font-size: 11px;
    text-align: center;
}

/* ALERTS */
.alerts-section {
    margin-bottom: 18px;
}

.alert {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
}

.alert.alert-warning {
    background: #fff3cd;
    border-left-color: var(--warning-color);
}

.alert-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-content h4 {
    margin-bottom: 2px;
    color: var(--text-dark);
    font-size: 13px;
}

.alert-content p {
    color: var(--text-light);
    margin-bottom: 5px;
    font-size: 11px;
}

@media (max-width: 1024px) {
    .home-overview-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 220px;
        z-index: 999;
    }

    .dashboard-container.sidebar-collapsed .sidebar {
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
    }

    .dashboard-container:not(.sidebar-collapsed) .sidebar {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle-open {
        display: none;
    }
}

.alert-content a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.alert-content a:hover {
    text-decoration: underline;
}

/* TRANSACTIONS */
.transaction-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    background: white;
    padding: 20px;
    border-radius: 12px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.filter-group select {
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    background: white;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.transaction-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}

.transaction-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--secondary-color);
    border-radius: 8px;
    flex-shrink: 0;
}

.transaction-details {
    flex: 1;
}

.transaction-details h4 {
    margin-bottom: 4px;
    color: var(--text-dark);
}

.transaction-details p {
    color: var(--text-light);
    font-size: 12px;
}

.transaction-amount {
    font-weight: 700;
    font-size: 16px;
}

.transaction-amount.income {
    color: var(--success-color);
}

.transaction-amount.expense {
    color: var(--danger-color);
}

/* STOCK */
.stock-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stock-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stock-item:hover {
    box-shadow: var(--shadow-lg);
}

.stock-info {
    flex: 1;
}

.stock-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.stock-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.stock-status.ready {
    background: #d4edda;
    color: #155724;
}

.stock-status.warning {
    background: #fff3cd;
    color: #856404;
}

.stock-details {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 8px;
}

.stock-details .separator {
    margin: 0 8px;
}

.stock-price {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 14px;
}

/* REPORTS */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.report-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.report-card h4 {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.report-trend {
    font-size: 12px;
    font-weight: 600;
}

.report-trend.positive {
    color: var(--success-color);
}

.report-trend.negative {
    color: var(--danger-color);
}

.report-details {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.report-details h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th {
    background: var(--secondary-color);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
}

.report-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.report-table td.amount-positive {
    color: var(--success-color);
    font-weight: 600;
}

.report-table td.amount-negative {
    color: var(--danger-color);
    font-weight: 600;
}

/* INSIGHTS */
.insights-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.insight-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.insight-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 16px;
}

.insight-card p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 20px;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-form {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid var(--border-color);
}

.modal-footer .btn {
    flex: 1;
}

/* ============================================
   MODAL ENHANCEMENTS
   ============================================ */
.modal-full-height {
    max-height: 85vh;
    overflow-y: auto;
}

.modal-back {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-back:hover {
    color: var(--primary-color);
}

.required {
    color: var(--danger-color);
}

/* ============================================
   INSIGHTS PAGE STYLING
   ============================================ */
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    margin-top: 24px;
}

.trends-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trend-item {
    background: white;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    gap: 16px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--border-color);
}

.trend-item.trend-up {
    border-left-color: var(--success-color);
}

.trend-item.trend-down {
    border-left-color: var(--danger-color);
}

.trend-item.trend-warning {
    border-left-color: var(--warning-color);
}

.trend-icon {
    font-size: 24px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trend-content h4 {
    color: var(--text-dark);
    margin-bottom: 4px;
    font-size: 14px;
}

.trend-content p {
    color: var(--text-light);
    font-size: 12px;
}

.product-performance {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.performance-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
}

.performance-item:last-child {
    border-bottom: none;
}

.performance-rank {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.performance-info {
    flex: 1;
}

.performance-info h4 {
    color: var(--text-dark);
    margin-bottom: 2px;
    font-size: 14px;
}

.performance-info p {
    color: var(--text-light);
    font-size: 12px;
}

.performance-trend {
    font-weight: 700;
    font-size: 13px;
}

.performance-trend.positive {
    color: var(--success-color);
}

.performance-trend.negative {
    color: var(--danger-color);
}

.recommendations-list ul {
    list-style: disc;
    padding-left: 20px;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.recommendations-list li {
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.recommendations-list li:last-child {
    margin-bottom: 0;
}

.prediction-chart {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.prediction-chart svg {
    width: 100%;
    height: auto;
    max-height: 300px;
}

.prediction-info {
    text-align: center;
    color: var(--text-light);
    margin-top: 12px;
    font-size: 13px;
}

/* ============================================
   COMMUNITY PAGE STYLING
   ============================================ */
.community-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.community-search {
    margin-bottom: 20px;
}

.community-search input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.community-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.community-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.community-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.post-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    background: #d4edda;
    color: #155724;
}

.post-badge.tips {
    background: #cce5ff;
    color: #004085;
}

.post-badge.challenges {
    background: #ffe0e0;
    color: #721c24;
}

.post-card h3 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 15px;
}

.post-card p {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.post-meta .author {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 13px;
}

.post-meta .category {
    font-size: 11px;
    color: var(--text-light);
}

.post-stats {
    display: flex;
    gap: 16px;
    margin-left: auto;
    font-size: 12px;
    color: var(--text-light);
}

/* ============================================
   LAPORAN PAGE STYLING
   ============================================ */
.ringkasan-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.ringkasan-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.ringkasan-header h3 {
    color: var(--text-dark);
    font-size: 14px;
}

.ringkasan-content {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.ringkasan-item {
    text-align: center;
}

.ringkasan-item h4 {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ringkasan-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.ringkasan-amount.income {
    color: var(--success-color);
}

.ringkasan-amount.expense {
    color: var(--danger-color);
}

.ringkasan-amount.profit {
    color: var(--primary-color);
}

.ringkasan-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: var(--border-color);
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.chart-card h3 {
    color: var(--text-dark);
    margin-bottom: 16px;
    font-size: 14px;
}

.bar-chart {
    width: 100%;
    height: 300px;
    margin-bottom: 16px;
}

.bar-chart svg {
    width: 100%;
    height: 100%;
}

.pie-chart {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pie-chart svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.chart-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 600;
}

.legend-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.report-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.report-actions .btn {
    padding: 12px 24px;
}

/* ============================================
   COMMUNITY MODAL STYLING
   ============================================ */
.community-tips {
    background: #f0f8f0;
    border-left: 4px solid var(--success-color);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.community-tips h4 {
    color: var(--primary-color);
    font-size: 13px;
    margin-bottom: 8px;
}

.community-tips ul {
    list-style: none;
    padding: 0;
}

.community-tips li {
    color: var(--text-dark);
    font-size: 12px;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.community-tips li:before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.community-tips li:last-child {
    margin-bottom: 0;
}

#communityContent {
    min-height: 150px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    /* Landing Page Tablet */
    .landing-title {
        font-size: 40px;
    }

    .landing-hero h2 {
        font-size: 28px;
    }

    .landing-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        max-width: 100%;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 220px;
        height: 100vh;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        grid-column: 1;
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .content-area {
        padding: 20px;
    }

    .page-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .page-header h2 {
        width: 100%;
    }

    .page-header select {
        width: 100%;
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .balance-breakdown {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Landing Page Mobile */
    .landing-title {
        font-size: 32px;
    }

    .landing-subtitle {
        font-size: 16px;
    }

    .hero-icon {
        font-size: 60px;
    }

    .landing-hero h2 {
        font-size: 24px;
    }

    .landing-hero p {
        font-size: 14px;
    }

    .landing-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .landing-feature-card {
        padding: 20px;
    }

    .card-icon {
        font-size: 36px;
    }

    .landing-feature-card h3 {
        font-size: 16px;
    }

    .landing-feature-card p {
        font-size: 13px;
    }

    .btn-large {
        padding: 14px 40px;
        font-size: 15px;
    }

    .auth-logo h1 {
        font-size: 32px;
    }

    .auth-logo p {
        font-size: 16px;
    }

    .auth-right {
        padding: 24px;
    }

    .auth-form h2 {
        font-size: 20px;
    }

    .top-bar {
        padding: 12px 16px;
    }

    .top-bar-left h2 {
        font-size: 18px;
    }

    .top-bar-right {
        gap: 12px;
    }

    .content-area {
        padding: 16px;
    }

    .balance-display h1 {
        font-size: 32px;
    }

    .balance-section {
        padding: 20px;
    }

    .page-header h2 {
        font-size: 20px;
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .insights-section {
        grid-template-columns: 1fr;
    }

    .transaction-item {
        flex-wrap: wrap;
    }

    .stock-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .stock-item .btn {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .business-type-selector,
    .category-selector,
    .transaction-type-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-responsive {
        overflow-x: auto;
    }

    .report-table {
        font-size: 12px;
    }

    .report-table th,
    .report-table td {
        padding: 8px;
    }

    /* Responsive Insights 768px */
    .section-title {
        font-size: 14px;
        margin-bottom: 14px;
        margin-top: 20px;
    }

    .performance-rank {
        width: 36px;
        height: 36px;
    }

    /* Responsive Community 768px */
    .community-section {
        padding: 20px;
    }

    .community-tabs {
        gap: 8px;
    }

    .post-card {
        padding: 14px;
    }

    .post-stats {
        gap: 12px;
    }

    /* Responsive Laporan 768px */
    .ringkasan-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .chart-card {
        padding: 18px;
    }

    .bar-chart {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .auth-logo h1 {
        font-size: 24px;
    }

    .auth-features {
        gap: 20px;
    }

    .feature-item {
        gap: 12px;
    }

    .feature-icon {
        font-size: 24px;
        min-width: 40px;
    }

    .feature-item h3 {
        font-size: 14px;
    }

    .feature-item p {
        font-size: 12px;
    }

    .auth-right {
        padding: 16px;
        border-radius: 12px;
    }

    .auth-form h2 {
        font-size: 18px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .top-bar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .top-bar-right {
        width: 100%;
        justify-content: space-between;
    }

    .profile-name {
        display: none;
    }

    .content-area {
        padding: 12px;
    }

    .balance-section {
        padding: 16px;
        margin-bottom: 16px;
    }

    .balance-display h1 {
        font-size: 24px;
    }

    .balance-header h3 {
        font-size: 14px;
    }

    .balance-breakdown {
        gap: 12px;
    }

    .breakdown-item {
        padding: 12px;
    }

    .breakdown-item .amount {
        font-size: 16px;
    }

    .chart-section {
        padding: 16px;
        margin-bottom: 16px;
    }

    .chart-section h3 {
        font-size: 14px;
    }

    .simple-chart {
        height: 150px;
    }

    .chart-bar {
        width: 30px;
    }

    .quick-actions {
        padding: 16px;
        margin-bottom: 16px;
    }

    .quick-actions h3 {
        font-size: 14px;
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .action-card {
        padding: 12px;
        gap: 8px;
    }

    .action-icon {
        font-size: 24px;
    }

    .action-label {
        font-size: 11px;
    }

    .page-header h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .page-header {
        margin-bottom: 16px;
        gap: 12px;
    }

    .page-header select,
    .page-header button {
        width: 100%;
    }

    .transaction-filters {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .transactions-list {
        gap: 10px;
    }

    .transaction-item {
        padding: 12px;
        gap: 12px;
    }

    .transaction-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .transaction-details h4 {
        font-size: 13px;
    }

    .transaction-amount {
        font-size: 14px;
    }

    .stock-list {
        gap: 10px;
    }

    .stock-item {
        padding: 12px;
    }

    .stock-info h4 {
        font-size: 14px;
    }

    .stock-details {
        font-size: 11px;
    }

    .stock-price {
        font-size: 12px;
    }

    .reports-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }

    .report-card {
        padding: 16px;
    }

    .report-amount {
        font-size: 20px;
    }

    .report-details {
        padding: 16px;
        margin-bottom: 16px;
    }

    .report-details h3 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .report-table {
        font-size: 11px;
    }

    .report-table th,
    .report-table td {
        padding: 6px 4px;
    }

    .insights-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .insight-card {
        padding: 16px;
    }

    .insight-card h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .insight-card p {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .business-type-selector,
    .category-selector,
    .transaction-type-selector {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        border-radius: 16px 16px 0 0;
    }

    .modal-header,
    .modal-form,
    .modal-footer {
        padding: 16px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 8px;
    }

    .modal-footer .btn {
        width: 100%;
    }

    .alert {
        gap: 12px;
        padding: 12px;
    }

    .alert-icon {
        font-size: 20px;
    }

    .alert-content h4 {
        font-size: 13px;
    }

    .alert-content p {
        font-size: 12px;
    }

    .sidebar {
        width: 200px;
    }

    .nav-item {
        padding: 10px 12px;
        gap: 12px;
        font-size: 13px;
    }

    .nav-icon {
        font-size: 18px;
    }

    .sidebar-logo {
        padding: 0 16px;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .sidebar-logo h1 {
        font-size: 20px;
    }

    /* Responsive Insights */
    .trends-list {
        gap: 10px;
    }

    .trend-item {
        padding: 12px;
        gap: 12px;
    }

    .trend-icon {
        font-size: 20px;
    }

    .trend-content h4 {
        font-size: 13px;
    }

    .trend-content p {
        font-size: 11px;
    }

    .performance-rank {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .performance-info h4 {
        font-size: 13px;
    }

    .performance-info p {
        font-size: 11px;
    }

    .performance-trend {
        font-size: 12px;
    }

    .recommendations-list ul {
        padding: 12px;
    }

    .recommendations-list li {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .prediction-chart {
        padding: 12px;
    }

    .prediction-chart svg {
        max-height: 200px;
    }

    /* Responsive Community */
    .community-section {
        padding: 16px;
    }

    .community-search input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .community-tabs {
        gap: 6px;
        margin-bottom: 16px;
    }

    .tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .community-posts {
        gap: 12px;
    }

    .post-card {
        padding: 12px;
    }

    .post-badge {
        font-size: 10px;
        padding: 3px 10px;
        margin-bottom: 6px;
    }

    .post-card h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .post-card p {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .post-meta {
        gap: 8px;
        padding-top: 8px;
    }

    .post-meta .author {
        font-size: 12px;
    }

    .post-meta .category {
        font-size: 10px;
    }

    .post-stats {
        gap: 8px;
        font-size: 11px;
    }

    /* Responsive Laporan */
    .ringkasan-card {
        margin-bottom: 16px;
    }

    .ringkasan-header {
        padding: 12px;
    }

    .ringkasan-header h3 {
        font-size: 13px;
    }

    .ringkasan-content {
        padding: 12px;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ringkasan-item h4 {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .ringkasan-amount {
        font-size: 15px;
    }

    .chart-card {
        padding: 16px;
        margin-bottom: 16px;
    }

    .chart-card h3 {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .bar-chart {
        height: 200px;
        margin-bottom: 12px;
    }

    .chart-legend {
        gap: 12px;
    }

    .chart-legend span {
        font-size: 12px;
    }

    .report-actions {
        justify-content: stretch;
    }

    .report-actions .btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 13px;
    }

    /* Responsive Community Modal */
    .community-tips {
        padding: 12px;
        margin-bottom: 12px;
    }

    .community-tips h4 {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .community-tips li {
        font-size: 11px;
        margin-bottom: 4px;
    }

    #communityContent {
        min-height: 120px;
    }

    .modal-back {
        font-size: 13px;
    }
}

/* ============================================
   RESPONSIVE LANDING PAGE
   ============================================ */

/* Tablet and Large Devices (1024px and above) */
@media (max-width: 1024px) {
    .landing-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Devices (768px and above) */
@media (max-width: 768px) {
    .landing-title {
        font-size: 36px;
    }

    .landing-subtitle {
        font-size: 16px;
    }

    .hero-icon {
        font-size: 60px;
    }

    .landing-hero h2 {
        font-size: 28px;
    }

    .landing-hero p {
        font-size: 14px;
    }

    .landing-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 40px 0;
    }

    .landing-feature-card {
        padding: 20px;
    }

    .landing-feature-card h3 {
        font-size: 16px;
    }

    .landing-feature-card p {
        font-size: 13px;
    }

    .card-icon {
        font-size: 32px;
    }

    .btn-large {
        padding: 14px 36px;
        font-size: 15px;
    }
}

/* Mobile Devices (576px and below) */
@media (max-width: 576px) {
    .landing-container {
        padding: 20px 16px;
    }

    .landing-header {
        margin-bottom: 30px;
    }

    .landing-title {
        font-size: 28px;
        margin: 0 0 8px 0;
    }

    .landing-subtitle {
        font-size: 14px;
    }

    .landing-hero {
        margin: 30px 0;
    }

    .hero-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }

    .landing-hero h2 {
        font-size: 22px;
        margin: 15px 0;
    }

    .landing-hero p {
        font-size: 13px;
        margin: 0 auto 20px;
    }

    .landing-features {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 30px 0;
    }

    .landing-feature-card {
        padding: 16px;
        border-radius: 10px;
    }

    .card-icon {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .landing-feature-card h3 {
        font-size: 14px;
        margin: 8px 0;
    }

    .landing-feature-card p {
        font-size: 12px;
    }

    .landing-cta {
        margin-top: 30px;
        gap: 15px;
    }

    .btn-large {
        padding: 12px 30px;
        font-size: 14px;
    }

    .landing-info {
        font-size: 12px;
    }

    .next-arrow {
        display: inline-block;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}
/* =========================================
   MODERN LANDING PAGE
========================================= */

.modern-landing {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, #0f5a27 0%, #032d12 60%);
    color: white;
    padding: 24px 40px;
}

/* NAVBAR */

.landing-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 30px;
    font-weight: 700;
}

.logo-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #1dd87b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #053318;
}

.nav-login-btn {
    padding: 14px 28px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

.nav-login-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* HERO */

.hero-section {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(38, 194, 129, 0.15);
    color: #55f5a7;
    border: 1px solid rgba(85,245,167,0.2);
    padding: 10px 18px;
    border-radius: 999px;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 600;
}

.hero-left h1 {
    font-size: 72px;
    line-height: 1.05;
    margin-bottom: 28px;
    font-weight: 800;
}

.hero-left h1 span {
    color: #1dd87b;
}

.hero-left p {
    color: rgba(255,255,255,0.75);
    font-size: 22px;
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
}

.btn-start {
    background: #1dd87b;
    color: #032d12;
    padding: 18px 34px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: .3s;
}

.btn-start:hover {
    transform: translateY(-3px);
}

.btn-demo {
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    padding: 18px 34px;
    border-radius: 14px;
    font-weight: 600;
}

.hero-info {
    color: rgba(255,255,255,0.55);
    font-size: 15px;
}

/* RIGHT */

.hero-main-card {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: transparent;
    border: none;
    height: auto;
    overflow: visible;
}

.hero-main-card img {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
}

.hero-small-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.small-card {
    background: rgba(255,255,255,0.05);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.small-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.small-card h4 {
    padding: 18px;
    font-size: 18px;
}

/* FEATURES */

.feature-section {
    margin-top: 90px;
}

.feature-section h5 {
    color: rgba(255,255,255,0.45);
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.feature-card {
    background: rgba(255,255,255,0.05);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    transition: .3s;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.feature-card h3 {
    font-size: 24px;
    padding: 20px 20px 8px;
}

.feature-card p {
    color: rgba(255,255,255,0.7);
    padding: 0 20px 24px;
    line-height: 1.6;
}

/* FOOTER */

.landing-footer {
    margin-top: 70px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.avatars {
    display: flex;
}

.avatars span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1dd87b;
    color: #032d12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-left: -8px;
    border: 2px solid #032d12;
}

.footer-left p {
    color: rgba(255,255,255,0.75);
}

.footer-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #ffc857;
}

.footer-rating span {
    color: rgba(255,255,255,0.65);
    margin-top: 4px;
}

/* RESPONSIVE */

@media (max-width: 992px) {

    .hero-section {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .hero-left h1 {
        font-size: 54px;
    }
}

@media (max-width: 576px) {

    .modern-landing {
        padding: 24px 20px;
    }

    .hero-left h1 {
        font-size: 42px;
    }

    .hero-left p {
        font-size: 16px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .landing-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}
/* =========================================
   LOGIN SINGLE FORM
========================================= */

.login-single-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    max-width: 100% !important;
    padding: 40px 20px !important;
    min-height: 100vh;

}

.login-centered {
    width: 100%;
    max-width: 460px;
    
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.login-back-btn {
    margin-top: 18px;
}

.demo-accounts {
    background: #f5f7f6;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

.demo-accounts p {
    margin: 4px 0;
}

/* Mobile */
@media (max-width: 576px) {

    .login-centered {
        padding: 24px;
        border-radius: 18px;
    }

    .login-logo {
        font-size: 32px;
    }
    .auth-page {
        padding: 20px 0;
    }

    .login-centered {
        margin: 20px 0;
    }
}