/* ========================================
   Global Styles & Reset
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --light: #f8fafc;
    --dark: #1e293b;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --text-primary: #0f172a;
    --text-secondary: #475569;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ========================================
   Landing Page Container
   ======================================== */
.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.landing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Navigation */
.landing-nav {
    padding: 1.5rem 0;
    position: relative;
    z-index: 100;
}

.landing-nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: bold;
    color: white;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: white;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-link {
    background: transparent;
    color: white;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    transition: opacity 0.3s ease;
}

.btn-link:hover {
    opacity: 0.8;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-hero {
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-hero:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 100px);
    position: relative;
    z-index: 10;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Hero Image/Cards */
.hero-image {
    position: relative;
    height: 500px;
}

.hero-card {
    position: absolute;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.card-1 {
    top: 20%;
    left: 10%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    animation: float 3s ease-in-out infinite;
}

.card-2 {
    top: 45%;
    right: 15%;
    background: white;
    color: #667eea;
    animation: float 3s ease-in-out infinite 0.5s;
}

.card-3 {
    bottom: 15%;
    left: 20%;
    background: white;
    color: #764ba2;
    animation: float 3s ease-in-out infinite 1s;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ========================================
   Loading Screen
   ======================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Auth Screens - Modal Popup Style
   ======================================== */
.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.auth-container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    position: relative;
    animation: fadeInUp 0.5s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Back Button */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: transparent;
    border: none;
    color: #667eea;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(-3px);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 20px;
}

.auth-header h1 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-weight: 700;
}

.auth-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ========================================
   Register Info Styles
   ======================================== */
.register-info {
    margin-top: 20px;
}

.info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 12px;
    color: white;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.info-card p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.contact-section {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.contact-section h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn.whatsapp {
    background: #25D366;
    color: white;
}

.contact-btn.whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.contact-btn.email {
    background: #667eea;
    color: white;
}

.contact-btn.email:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.contact-btn.phone {
    background: #764ba2;
    color: white;
}

.contact-btn.phone:hover {
    background: #643d8a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.3);
}

.contact-note {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 10px;
}

/* ========================================
   Main App Buttons
   ======================================== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

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

.btn-secondary:hover {
    background: #475569;
}

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

.btn-success:hover {
    background: #059669;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--light);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   Main App Layout
   ======================================== */
#mainApp {
    min-height: 100vh;
    background: var(--light);
}

.app-header {
    background: white;
    box-shadow: 0 2px 8px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.business-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--light);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-profile:hover {
    background: var(--border);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   Navigation
   ======================================== */
.app-nav {
    background: white;
    border-bottom: 2px solid var(--border);
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    overflow-x: auto;
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-btn:hover {
    color: var(--primary);
    background: var(--light);
}

.nav-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-icon {
    font-size: 1.2rem;
}

/* ========================================
   Main Content
   ======================================== */
.app-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.page {
    display: none;
    animation: pageEnter 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes pageEnter {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
}

/* ========================================
   Stats Grid (Dashboard)
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow);
}

.stat-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-income .stat-icon {
    background: rgba(16, 185, 129, 0.1);
}

.stat-expense .stat-icon {
    background: rgba(239, 68, 68, 0.1);
}

.stat-balance .stat-icon {
    background: rgba(37, 99, 235, 0.1);
}

.stat-transactions .stat-icon {
    background: rgba(245, 158, 11, 0.1);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ========================================
   Chart Container
   ======================================== */
.chart-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    margin-bottom: 30px;
}

.chart-container h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* ========================================
   Recent Transactions
   ======================================== */
.recent-transactions {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
}

.recent-transactions h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.transaction-item:hover {
    background: var(--light);
}

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

.transaction-info {
    flex: 1;
}

.transaction-category {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.transaction-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.transaction-amount {
    font-size: 1.1rem;
    font-weight: 700;
}

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

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

/* ========================================
   Filter Bar
   ======================================== */
.filter-bar,
.date-filter,
.report-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar select,
.filter-bar input,
.date-filter select,
.report-filter select,
.report-filter input {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
}

.filter-bar select:focus,
.filter-bar input:focus,
.date-filter select:focus,
.report-filter select:focus,
.report-filter input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ========================================
   Tables
   ======================================== */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--primary);
    color: white;
}

.data-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.data-table tbody tr:hover {
    background: var(--light);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.badge-secondary {
    background: rgba(100, 116, 139, 0.1);
    color: var(--secondary);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    padding: 8px 12px;
    font-size: 0.9rem;
    min-width: auto;
}

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

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

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

/* ========================================
   Report Section
   ======================================== */
.report-summary {
    margin-bottom: 30px;
}

.report-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
}

.report-card h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.report-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.report-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
}

.chart-box h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.report-table {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
}

.report-table h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* ========================================
   Modal
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-header h3 {
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--danger);
}

.modal form {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 2px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Profile Section */
.profile-section {
    margin-bottom: 20px;
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.avatar-options {
    flex: 1;
}

.avatar-options input {
    margin-bottom: 8px;
}

.avatar-options small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }

    .hero-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-image {
        height: 400px;
        margin: 0 auto;
    }

    .auth-container {
        padding: 30px 25px;
    }

    .contact-methods {
        gap: 10px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-right {
        width: 100%;
        justify-content: center;
    }

    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .app-main {
        padding: 20px 15px;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-bar select,
    .filter-bar input {
        width: 100%;
    }

    .table-container {
        overflow-x: auto;
    }

    .data-table {
        font-size: 0.85rem;
    }

    .report-charts {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .landing-nav-content {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .btn, .btn-link {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-card {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .hero-image {
        height: 350px;
    }

    .auth-screen {
        padding: 15px;
    }

    .auth-container {
        padding: 25px 20px;
        max-height: 95vh;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .back-btn {
        top: 15px;
        left: 15px;
        font-size: 0.9rem;
    }

    .info-card {
        padding: 20px;
    }

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

    .contact-section {
        padding: 20px;
    }

    .auth-container {
        padding: 25px;
    }

    .page-header h2 {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 20px 15px;
    }

    .page-header h2 {
        font-size: 1.3rem;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .chart-container,
    .recent-transactions,
    .report-card,
    .chart-box,
    .report-table {
        padding: 20px;
    }

    .modal-content {
        max-width: 100%;
    }

    .modal-header,
    .modal form,
    .modal-footer {
        padding: 20px;
    }

    .avatar-upload {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-muted {
    color: var(--text-secondary);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ========================================
   Scrollbar Styling
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .app-header,
    .app-nav,
    .page-header button,
    .filter-bar,
    .action-buttons {
        display: none !important;
    }

    .app-main {
        padding: 0;
    }

    .stat-card,
    .chart-container,
    .report-card,
    .table-container {
        box-shadow: none;
        border: 1px solid var(--border);
        page-break-inside: avoid;
    }
}

/* ========================================
   Accessibility
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ========================================
   Loading State
   ======================================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* ========================================
   Toast Notification (Optional)
   ======================================== */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 40px var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    z-index: 9999;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
}

.toast-close {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 0;
    line-height: 1;
}

.toast-close:hover {
    color: var(--text-primary);
}