:root {
    /* Mintly Brand Palette */
    --primary-color: #00b894;
    /* Mint Green */
    --primary-dark: #00a884;
    --secondary-color: #2d3436;
    /* Dark Navy/Grey */
    --accent-color: #fdcb6e;
    /* Gold */
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #ff7675;

    --dark-bg: #2d3436;
    --card-bg: #636e72;

    --text-dark: #2d3436;
    --text-light: #ffffff;
    --text-muted: #636e72;

    /* Spacing */
    --container-padding: 20px;
}

/* Minty Gradient Button */
.btn-mint-gradient {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%) !important;
    color: white !important;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-mint-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
    text-decoration: none;
}

* {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #fdfdfd;
    /* Clean background */
    min-height: 100vh;
    color: var(--text-dark);
    padding-top: env(safe-area-inset-top);
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

/* Logo Styling */
.logo-gradient {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.6rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

/* Navigation Enhancements */
.uk-navbar-container {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.uk-navbar-nav>li>a {
    font-weight: 500;
    transition: all 0.3s ease;
}

.uk-navbar-nav>li.uk-active>a,
.uk-navbar-nav>li>a:hover {
    color: var(--primary-color) !important;
}

/* Subscription Badge */
.subscription-badge {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Off-Canvas Menu */
.uk-offcanvas-bar {
    background: linear-gradient(180deg, #00b894 0%, #00cec9 100%);
    color: white;
    padding: 30px 25px;
    width: 280px;
}

/* Close button styling */
.uk-offcanvas-bar .uk-offcanvas-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.uk-offcanvas-bar .uk-offcanvas-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Logo in mobile menu */
.uk-offcanvas-bar .logo-gradient {
    color: white;
    -webkit-text-fill-color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Navigation header */
.uk-offcanvas-bar .uk-nav-header {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 30px;
    margin-bottom: 10px;
    padding-left: 0;
}

/* Navigation items */
.uk-offcanvas-bar .uk-nav-primary>li>a {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: block;
}

.uk-offcanvas-bar .uk-nav-primary>li>a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateX(4px);
}

.uk-offcanvas-bar .uk-nav-primary>li.uk-active>a {
    color: white;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    font-weight: 600;
}

/* Dividers in mobile menu */
.uk-offcanvas-bar .uk-nav-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 15px 0;
}

/* Content Wrapper */
.content-wrapper {
    padding: var(--container-padding);
    max-width: 1400px;
    margin: 0 auto;
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

@media (max-width: 640px) {
    .flash-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Card Enhancements */
.uk-card {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.uk-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.uk-card-default {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.uk-card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Button Enhancements */
.uk-button {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
}

.uk-button-primary {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    border: none;
}

.uk-button-primary:hover {
    background: linear-gradient(135deg, #00a884, #00b894);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.4);
}

.uk-button-default {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.uk-button-default:hover {
    background: var(--primary-color);
    color: white;
}

.uk-button-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Form Enhancements */
.uk-input,
.uk-select,
.uk-textarea {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 10px 15px;
}

.uk-input:focus,
.uk-select:focus,
.uk-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.uk-form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 50px 40px;
    max-width: 480px;
    width: 100%;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 30px 25px;
    }
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Dashboard Cards */
.balance-card {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border: none;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0;
}

@media (max-width: 640px) {
    .balance-amount {
        font-size: 2rem;
    }
}

.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Account Type Icons */
.account-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
}

/* Transaction List */
.transaction-item {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.2s ease;
}

.transaction-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.transaction-amount-credit {
    color: var(--success-color);
    font-weight: 600;
}

.transaction-amount-debit {
    color: var(--danger-color);
    font-weight: 600;
}

/* Budget Progress */
.budget-progress {
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    overflow: hidden;
}

.budget-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.5s ease;
}

.budget-progress-bar.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.budget-progress-bar.danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Table Responsive */
@media (max-width: 959px) {
    .uk-table {
        font-size: 0.85rem;
    }
}

/* Alerts */
.uk-alert {
    border-radius: 12px;
    border-left: 4px solid;
}

.uk-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success-color);
}

.uk-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: var(--warning-color);
}

.uk-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--danger-color);
}

/* Pricing Cards */
.pricing-card {
    text-align: center;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 184, 148, 0.3);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    margin: 20px 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pricing-card.featured .pricing-features li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Profile Photo Styles */
.profile-photo-display {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-photo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.profile-photo-nav {
    width: 45px;
    height: 45px;
    margin-right: 15px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.profile-photo-nav-placeholder {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid var(--primary-color);
}

/* Smart Insights Styles */
.insight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.insight-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #28a745;
    color: #155724;
}

.insight-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
    color: #856404;
}

.insight-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.insight-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.uk-alert {
    border-radius: 8px;
    padding: 15px 20px;
    font-weight: 500;
}

/* Touch-friendly sizing for mobile */
@media (max-width: 640px) {
    .uk-button {
        min-height: 44px;
        padding: 0 20px;
    }

    .uk-input,
    .uk-select {
        min-height: 44px;
    }


    .uk-navbar-right {
        margin-right: 25px !important;
    }

    .uk-navbar-toggle {
        margin-left: 25px !important;
    }
}