@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* --- PALETTE: Nexu App Direct Match --- */
    --bg-base: #10121d;
    --bg-surface: rgba(21, 24, 36, 0.4); /* Based on #151824 but glass */
    --bg-surface-hover: rgba(62, 84, 211, 0.15);

    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-highlight: rgba(62, 84, 211, 0.4);

    --text-primary: #FFFFFF;
    --text-secondary: #a0a0ab;
    --text-tertiary: #6b6b76;

    /* Accents (App Matches) */
    --accent-primary: #3E54D3;
    --accent-glow: rgba(62, 84, 211, 0.3);
    --accent-secondary: #6540d9; /* Nexu Purple */
    --accent-secondary-glow: rgba(101, 64, 217, 0.2);

    --success: #00F0FF; /* Cyber Cyan */
    --danger: #FF0055;  /* Cyber Pink */
    --warning: #FFE600; /* Cyber Yellow */

    /* Spacing & Radius */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 50% -20%, #151824 0%, var(--bg-base) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* --- LAYOUT --- */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 260px;
    background: rgba(11, 14, 20, 0.85); /* Slightly darker than surface */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-subtle);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 50;
    box-shadow: var(--shadow-glass);
}

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

.brand-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 0 15px var(--accent-glow);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(90deg, #FFFFFF, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.nav-item i {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(62, 84, 211, 0.15) 0%, transparent 100%);
    color: var(--accent-secondary);
    border-left: 3px solid var(--accent-secondary);
}

.nav-item.active i {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px var(--accent-secondary-glow);
}

.user-profile {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1A1A1A, #333);
    border: 2px solid var(--border-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
}

.user-info h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: #FFFFFF;
}

.user-info span {
    font-size: 0.75rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* --- MAIN CONTENT --- */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px 48px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 2rem;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #526DE5);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 84, 211, 0.5);
    background: linear-gradient(135deg, #4A63F0, #526DE5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* --- STATS GRID --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-highlight);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(62, 84, 211, 0.2);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-icon {
    color: var(--accent-secondary);
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px var(--accent-secondary-glow));
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, #FFFFFF, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.trend-up {
    color: var(--success);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.trend-down {
    color: var(--danger);
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
}

.trend-neutral {
    color: var(--text-secondary);
}

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

.card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-glass);
}

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

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* --- LISTS & FEEDS --- */
.list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(62, 84, 211, 0.2), rgba(127, 211, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: var(--accent-secondary);
    font-size: 1.4rem;
    border: 1px solid rgba(62, 84, 211, 0.3);
}

.item-content {
    flex: 1;
}

.item-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

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

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

.badge-success {
    background: rgba(0, 240, 255, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.badge-secondary {
    background: var(--accent-secondary-glow);
    color: var(--accent-secondary);
    border: 1px solid rgba(127, 211, 255, 0.3);
}

.badge-primary {
    background: rgba(62, 84, 211, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(62, 84, 211, 0.3);
}

/* Landing Page Elements */
.glass-panel {
    background: rgba(21, 24, 36, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0% { filter: drop-shadow(0 0 10px rgba(62, 84, 211, 0.5)); }
    50% { filter: drop-shadow(0 0 25px rgba(62, 84, 211, 0.8)); }
    100% { filter: drop-shadow(0 0 10px rgba(62, 84, 211, 0.5)); }
}

/* --- SWEETALERT2 NEXU THEME --- */
.swal2-popup.nexu-swal {
    background: rgba(21, 24, 36, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    color: #fff !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6) !important;
    font-family: 'Inter', sans-serif !important;
}
.swal2-confirm.nexu-confirm {
    background: linear-gradient(135deg, #3E54D3, #526DE5) !important;
    border-radius: 12px !important;
    font-weight: bold !important;
    padding: 12px 24px !important;
    box-shadow: 0 4px 15px rgba(62, 84, 211, 0.3) !important;
}

/* --- PHONE MOCKUP SHOWCASE --- */
.showcase-section {
    padding: 80px 0;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    z-index: 10;
}

.showcase-title {
    text-align: center;
    margin-bottom: 50px;
}

.showcase-title h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #FFF, #7FD3FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.showcase-interactive {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
    gap: 60px;
    padding: 0 20px;
}

@media (max-width: 850px) {
    .showcase-interactive {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
}

.showcase-device {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

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

.control-item {
    padding: 20px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.control-item.active {
    background: rgba(62, 84, 211, 0.1);
    border-color: rgba(62, 84, 211, 0.4);
    box-shadow: inset 0 0 20px rgba(62, 84, 211, 0.1);
}

.control-item h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.control-item.active h3 {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.control-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: none;
}

.control-item.active p {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.phone-mockup {
    width: 290px;
    height: 600px;
    background: rgba(21, 24, 36, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 46px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.5), 
        inset 0 0 0 8px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(101, 64, 217, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    transition: box-shadow 0.6s ease;
    padding: 8px; /* simulates bezel thickness */
}

.showcase-item:hover .phone-mockup {
    box-shadow: 
        0 35px 60px rgba(0,0,0,0.6), 
        inset 0 0 0 8px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(101, 64, 217, 0.6);
}

/* Simulated Notch */
.phone-mockup::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: rgba(0, 0, 0, 0.95);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0a0c14;
    border-radius: 38px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.phone-screen img.active {
    opacity: 1;
}

