/* ====================================
   PROFILE PAGE STYLES - GREEN THEME
   ==================================== */

:root {
    /* Green Color Palette */
    --primary-green: #10b981;
    --primary-green-dark: #059669;
    --primary-green-light: #34d399;
    --accent-green: #6ee7b7;
    --dark-green: #065f46;
    
    /* Neutral Colors */
    --background: #f0fdf4;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #d1fae5;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(16, 185, 129, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(16, 185, 129, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(16, 185, 129, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(16, 185, 129, 0.2);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* ====================================
   HEADER STYLES
   ==================================== */

.header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    padding: var(--spacing-md) var(--spacing-sm);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.back-btn {
    color: white;
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-3px);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    flex: 1;
    text-align: center;
    letter-spacing: -0.5px;
}

.header-actions {
    width: 40px;
}

/* ====================================
   PROFILE CONTAINER
   ==================================== */

.profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

/* ====================================
   PROFILE CARD
   ==================================== */

.profile-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-green-light), var(--primary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.1);
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.1);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(16, 185, 129, 0.2);
    }
}

.profile-avatar i {
    font-size: 4rem;
    color: white;
}

.profile-card h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.profile-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: var(--spacing-xs);
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #fde68a;
}

/* ====================================
   BALANCE CARD
   ==================================== */

.balance-card {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-10%, -10%);
    }
}

.balance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.balance-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-amount {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ====================================
   PROFILE MENU
   ==================================== */

.profile-menu {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, var(--primary-green-light), transparent);
    transition: width 0.3s ease;
}

.menu-item:hover::before {
    width: 100%;
}

.menu-item:hover {
    background: rgba(16, 185, 129, 0.05);
    padding-left: calc(var(--spacing-md) + 5px);
}

.menu-item > i:first-child {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green-light), var(--primary-green));
    color: white;
    border-radius: var(--radius-sm);
    font-size: 1.125rem;
    position: relative;
    z-index: 1;
}

.menu-item span {
    flex: 1;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.menu-item > i:last-child {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.menu-item:hover > i:last-child {
    transform: translateX(5px);
}

.menu-item.logout {
    color: #dc2626;
}

.menu-item.logout > i:first-child {
    background: linear-gradient(135deg, #fca5a5, #dc2626);
}

.menu-item.logout:hover {
    background: rgba(220, 38, 38, 0.05);
}

/* ====================================
   BOTTOM NAVIGATION
   ==================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: 0 -4px 6px -1px rgba(16, 185, 129, 0.1);
    padding: var(--spacing-xs) 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: var(--spacing-xs);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-green);
    border-radius: 0 0 3px 3px;
    transition: width 0.3s ease;
}

.nav-item.active::before,
.nav-item:hover::before {
    width: 60%;
}

.nav-item i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

.nav-item.active {
    color: var(--primary-green);
}

.nav-item.active i {
    transform: scale(1.1);
}

.nav-item:hover {
    color: var(--primary-green);
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 480px) {
    .profile-container {
        padding: var(--spacing-sm);
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-avatar i {
        font-size: 3rem;
    }
    
    .profile-card h2 {
        font-size: 1.5rem;
    }
    
    .balance-amount {
        font-size: 1.25rem;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .bottom-nav {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}

/* ====================================
   ANIMATIONS
   ==================================== */

.profile-card,
.balance-card,
.profile-menu {
    animation: fadeInUp 0.5s ease;
}

.balance-card {
    animation-delay: 0.1s;
}

.profile-menu {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   UTILITY CLASSES
   ==================================== */

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}