/* SpendNote - Main Stylesheet */

:root {
    --primary: #059669;
    --primary-light: #10b981;
    --primary-dark: #047857;
    --orange: #f59e0b;
    --blue: #3b82f6;
    --bg: #fafafa;
    --surface: #ffffff;
    --surface-elevated: #f5f5f5;
    --text: #0a0a0a;
    --text-muted: #737373;
    --border: rgba(0,0,0,0.08);
    --shadow: rgba(0,0,0,0.04);
    --error: #ef4444;
    --success: #059669;
    --active: #059669;
    --active-rgb: 5, 150, 105;
}

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

html {
    overflow-x: clip;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

*:focus {
    outline: 3px solid var(--active);
    outline-offset: 2px;
}

/* Navigation */
.site-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px var(--shadow);
}

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

.site-nav .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.site-nav .nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.site-nav .nav-links a,
.site-nav .nav-links button {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.site-nav .nav-links a:hover {
    color: var(--active);
}

.site-nav .nav-links a.active {
    color: var(--active);
    position: relative;
}

.site-nav .nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.5rem;
    height: 3px;
    background: var(--active);
    border-radius: 3px 3px 0 0;
}

/* Dashboard-style navigation */
.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
    border-radius: 12px;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface-elevated);
}

/* Cash-related nav items */
.nav-links a.nav-cash-item {
    color: var(--active);
    font-weight: 700;
}

.nav-links a.nav-cash-item:hover {
    background: rgba(var(--active-rgb), 0.1);
}

.nav-new-transaction-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(var(--active-rgb), 0.25);
}

.nav-new-transaction-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--active-rgb), 0.35);
}

.nav-new-transaction-btn i {
    font-size: 12px;
}

/* App Container */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
    padding: 28px 24px;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 2px 8px rgba(var(--active-rgb), 0.25);
}

.btn-primary:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--active);
    color: var(--active);
}

/* Footer - Modern App Design (2 rows) */
.app-footer {
    background: linear-gradient(135deg, #047857, #059669, #10b981);
    border-top: none;
    padding: 3rem 0 2rem 0;
    margin-top: auto;
    color: white;
}

.app-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.app-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .site-nav .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .app-container {
        padding: 1rem;
    }
}

.app-footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}

.app-footer-info {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.app-footer-divider {
    color: var(--border);
    margin: 0 0.5rem;
}

.app-footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.app-footer-links a:hover {
    color: var(--active);
}

.app-footer-disclaimer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    background: var(--bg);
    border-radius: 8px;
}

.app-footer-disclaimer i {
    color: var(--active);
}

@media (max-width: 768px) {
    .app-footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .app-footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .app-footer-disclaimer {
        width: 100%;
    }
}

.app-footer-logo {
    color: white !important;
}

.app-footer-info {
    color: rgba(255, 255, 255, 0.9);
}

.app-footer-divider {
    color: rgba(255, 255, 255, 0.5);
}

.app-footer-links a {
    color: rgba(255, 255, 255, 0.9);
}

.app-footer-links a:hover {
    color: white;
}

.app-footer-disclaimer {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.app-footer-disclaimer i {
    color: white;
}

.app-footer-brand {
    flex: 1;
    min-width: 250px;
}

.app-footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: white;
}

.app-footer-brand-logo span {
    font-size: 1.25rem;
    font-weight: 900;
}

.app-footer-brand-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 300px;
}

.app-footer-section {
    flex: 0 0 auto;
}

.app-footer-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.app-footer-section-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-footer-section-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.app-footer-section-links a:hover {
    color: white;
}

.app-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.app-footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.app-footer-disclaimer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: white;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .app-footer-top {
        flex-direction: column;
        gap: 2rem;
    }
    
    .app-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

.app-footer-brand-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.app-footer-brand-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.app-footer-brand-links a:hover {
    color: white;
}

.app-footer-brand-links span {
    color: rgba(255, 255, 255, 0.5);
}

.app-footer-brand-disclaimer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: white;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    white-space: nowrap;
}

.app-footer-brand-disclaimer i {
    color: white;
    flex-shrink: 0;
}

.app-footer-links-simple {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
}

.app-footer-links-simple a {
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s;
    white-space: nowrap;
    padding: 0 1rem;
}

.app-footer-links-simple a::before {
    content: '•';
    margin-right: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.app-footer-links-simple a:hover {
    color: rgba(255, 255, 255, 0.7);
}
