/* ============================================
   AURUM CLUB DASHBOARD - MAIN STYLESHEET
   ============================================ */

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

:root {
    --primary-orange: #FF8C42;
    --secondary-orange: #FFA366;
    --dark-bg: #1a1a1a;
    --card-bg: rgba(45, 45, 45, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
}

body {
    font-family: 'Inter', sans-serif;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%231a1a1a"/><stop offset="100%" style="stop-color:%232d2d2d"/></linearGradient></defs><rect fill="url(%23bg)" width="1200" height="800"/><circle cx="200" cy="150" r="300" fill="%23FF8C42" opacity="0.1"/><circle cx="1000" cy="600" r="400" fill="%23FFA366" opacity="0.08"/></svg>');
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Backdrop blur overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(80px);
    z-index: -1;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    width: 90px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 140, 66, 0.2);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-icon.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    box-shadow: 0 0 20px rgba(255, 140, 66, 0.5);
}

.sidebar-icon:hover {
    transform: scale(1.1);
    background: var(--primary-orange);
}

.sidebar-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
    stroke-width: 2;
}

.sidebar-bottom {
    margin-top: auto;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    margin-left: 90px;
    padding: 2rem 3rem;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* User Profile Card */
.user-profile {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    min-width: 280px;
    text-align: center;
}

.profile-badge {
    display: inline-block;
    background: rgba(255, 140, 66, 0.2);
    color: var(--primary-orange);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    border: 3px solid rgba(255, 140, 66, 0.3);
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.quick-action:hover {
    transform: translateY(-2px);
}

.action-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 140, 66, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ============================================
   BALANCE CARDS
   ============================================ */
.balance-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.balance-card {
    background: var(--card-bg);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.balance-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 140, 66, 0.3);
}

.balance-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 140, 66, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.balance-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================
   DASHBOARD GRID
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Statistic Card */
.statistic-card {
    background: var(--card-bg);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.filter-dropdown {
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

.chart-container {
    position: relative;
    height: 250px;
    margin-bottom: 1rem;
}

.legend {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* ============================================
   CREDIT CARD
   ============================================ */
.credit-card {
    background: linear-gradient(135deg, #FFB84D 0%, #FF8C42 50%, #FF6B35 100%);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(255, 140, 66, 0.3);
}

.credit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.card-logo {
    text-align: right;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    font-style: italic;
}

.card-balance-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.card-balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.card-expiry {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   BOTTOM GRID
   ============================================ */
.bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Goals Cards */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.goal-card {
    background: rgba(60, 60, 60, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.goal-progress {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.goal-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.goal-bar-fill {
    height: 100%;
    background: var(--primary-orange);
    border-radius: 4px;
    transition: width 1s ease;
}

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

/* Business Card */
.savings-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.savings-amount {
    font-size: 2rem;
    font-weight: 700;
}

.savings-target {
    background: rgba(255, 140, 66, 0.2);
    border: 1px solid rgba(255, 140, 66, 0.3);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    color: var(--primary-orange);
    font-weight: 600;
}

.circular-progress {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-orange) 0% 65%, rgba(255, 255, 255, 0.1) 65% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circular-progress::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    background: var(--card-bg);
    border-radius: 50%;
}

.circular-progress-text {
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
    font-weight: 700;
}

/* ============================================
   TRANSACTIONS
   ============================================ */
.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(60, 60, 60, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    background: rgba(70, 70, 70, 0.4);
    transform: translateX(4px);
}

.transaction-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.transaction-details {
    flex: 1;
}

.transaction-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

.transaction-amount {
    background: var(--primary-orange);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
}

.see-all-btn {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.3);
    border-radius: 16px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.see-all-btn:hover {
    background: rgba(255, 140, 66, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.balance-card, .statistic-card, .credit-card, .goal-card {
    animation: fadeIn 0.6s ease forwards;
}

.balance-card:nth-child(1) { animation-delay: 0.1s; }
.balance-card:nth-child(2) { animation-delay: 0.2s; }
.balance-card:nth-child(3) { animation-delay: 0.3s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1400px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .balance-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .main-content {
        margin-left: 70px;
        padding: 1.5rem;
    }
    
    .header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .user-profile {
        width: 100%;
    }
    
    .balance-cards {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar-icon {
        width: 40px;
        height: 40px;
    }
    
    .main-content {
        margin-left: 60px;
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
}
