:root {
    --bg-dark: #07090e;
    --bg-panel: rgba(18, 22, 33, 0.6);
    --bg-panel-hover: rgba(28, 33, 46, 0.8);
    
    --primary-neon: #9b4dca;
    --primary-gradient: linear-gradient(135deg, #b233ff 0%, #00f0ff 100%);
    --secondary-neon: #00f0ff;
    
    --text-main: #ffffff;
    --text-muted: #8b95a5;
    
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glass-light: rgba(255, 255, 255, 0.12);
    
    --shadow-neon: 0 0 20px rgba(178, 51, 255, 0.2);
    --shadow-cyan: 0 0 20px rgba(0, 240, 255, 0.2);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(178, 51, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.08) 0%, transparent 50%);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--border-glass-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Typography */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* App Layout */
.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    height: calc(100vh - 32px);
    margin: 16px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}

.brand-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item i {
    font-size: 20px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(178, 51, 255, 0.1) 0%, transparent 100%);
    color: var(--secondary-neon);
    border-left: 3px solid var(--secondary-neon);
}

.badge {
    background: rgba(0, 240, 255, 0.1);
    color: var(--secondary-neon);
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 20px;
    margin-left: auto;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.token-balance {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 12px;
}

.token-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.glow-icon {
    font-size: 24px;
    color: #f1c40f;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

.token-text {
    display: flex;
    flex-direction: column;
}

.token-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.token-amount {
    font-weight: 700;
    font-size: 16px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(178, 51, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass-light);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 24px 24px 0;
    overflow-y: auto;
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 8px 0;
}

.glass-input {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 350px;
}

.glass-input input {
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    width: 100%;
    outline: none;
}

.glass-input i {
    color: var(--text-muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.icon-btn:hover {
    background: var(--bg-panel-hover);
}

.notify-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 6px;
    height: 6px;
    background: var(--secondary-neon);
    border-radius: 50%;
    box-shadow: var(--shadow-cyan);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 12px 6px 6px;
    border-radius: 24px;
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    transition: background 0.2s;
}

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

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Dashboard Content */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.welcome-section h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

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

.stat-icon.purple {
    background: rgba(178, 51, 255, 0.1);
    color: var(--primary-neon);
    border: 1px solid rgba(178, 51, 255, 0.2);
}

.stat-icon.cyan {
    background: rgba(0, 240, 255, 0.1);
    color: var(--secondary-neon);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.stat-icon.pink {
    background: rgba(255, 51, 102, 0.1);
    color: #ff3366;
    border: 1px solid rgba(255, 51, 102, 0.2);
}

.stat-details h3 {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.trend {
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.trend.positive {
    color: #00f0ff;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

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

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.view-all {
    color: var(--secondary-neon);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

/* Jobs List */
.recent-jobs {
    padding: 24px;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.job-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s;
}

.job-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.job-thumb {
    width: 48px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
}

.job-info {
    flex-grow: 1;
}

.job-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.job-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge.processing {
    background: rgba(178, 51, 255, 0.1);
    color: var(--primary-neon);
    border: 1px solid rgba(178, 51, 255, 0.2);
}

.status-badge.completed {
    background: rgba(0, 240, 255, 0.1);
    color: var(--secondary-neon);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

/* Avatars Highlight */
.avatars-highlight {
    padding: 24px;
}

.avatar-showcase {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.avatar-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 200px;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.avatar-image-container:hover .showcase-img {
    transform: scale(1.05);
}

.live-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-indicator i {
    color: #ff3366;
}

.showcase-info h4 {
    font-size: 18px;
    margin-bottom: 6px;
}

.showcase-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.showcase-actions .btn {
    flex: 1;
}

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

.spin {
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile App-like Experience */
.mobile-tab-bar {
    display: none;
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none; /* Ascundem sidebar-ul nativ pe mobile */
    }
    
    .main-content {
        padding: 16px;
        padding-bottom: 90px; /* Spatiu pentru bottom bar */
    }
    
    .topbar {
        flex-direction: column-reverse;
        gap: 16px;
        align-items: stretch;
    }
    
    .glass-input {
        width: 100%;
    }
    
    .topbar-actions {
        justify-content: space-between;
    }
    
    .welcome-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .welcome-section h2 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Bottom Navigation Bar like iOS/Android native apps */
    .mobile-tab-bar {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 10px 20px;
        z-index: 1000;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
        background: rgba(18, 22, 33, 0.85);
    }
    
    .tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 11px;
        font-weight: 500;
    }
    
    .tab-item i {
        font-size: 22px;
    }
    
    .tab-item.active {
        color: var(--secondary-neon);
    }
    
    .generate-btn-mobile {
        width: 50px;
        height: 50px;
        background: var(--primary-gradient);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
        margin-top: -20px;
        border: 4px solid var(--bg-dark);
        box-shadow: var(--shadow-neon);
    }
}
