:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --bg-dark: #0b0f19;
    --bg-card: #151c2c;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --tab-inactive: #4b5563;
    --border-color: #222f47;
    --status-bar-bg: #0b0f19;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #0f172a;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

/* Phone Mockup Wrapper */
.phone-container {
    width: 375px;
    height: 720px;
    background-color: var(--bg-dark);
    border: 8px solid #27272a;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Status Bar Mockup */
.status-bar {
    height: 44px;
    background-color: var(--status-bar-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    z-index: 10;
}

.status-icons {
    display: flex;
    gap: 8px;
}

/* App Header */
.app-header {
    padding: 16px 24px 8px 24px;
    background-color: var(--bg-dark);
}

.app-header h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-header p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Tabs Navigation Container */
.tabs-nav {
    position: relative;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 16px;
}

/* Horizontal scrolling tabs button list */
.tabs-list {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    position: relative;
    padding: 4px 0;
}

.tabs-list::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.tab-btn {
    flex: 0 0 auto;
    padding: 10px 18px;
    background: none;
    border: none;
    color: var(--tab-inactive);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    z-index: 2;
}

.tab-btn.active {
    color: var(--primary-light);
}

/* Sliding active tab background pill indicator */
.tab-indicator {
    position: absolute;
    top: 4px;
    height: calc(100% - 8px);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: left, width;
}

/* Swipe Container and Wrapper for Touch sliding */
.swipe-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.swipe-wrapper {
    display: flex;
    height: 100%;
    width: 100%;
    will-change: transform;
}

/* Each panel occupies exactly 100% of the container width */
.tab-panel {
    flex: 0 0 100%;
    width: 100%;
    overflow-y: auto;
    padding: 20px;
    background-color: var(--bg-dark);
}

/* Panel Content Layout */
.panel-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 40px;
}

/* Premium Card Design */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:active {
    transform: scale(0.98);
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.card .tag {
    align-self: flex-start;
    padding: 4px 10px;
    background-color: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Gradients for cards to look vibrant */
.gradient-1 {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0) 100%), var(--bg-card);
    border-left: 4px solid var(--primary-color);
}

.gradient-2 {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(15, 23, 42, 0) 100%), var(--bg-card);
    border-left: 4px solid #ec4899;
}

.gradient-2 .tag {
    background-color: rgba(236, 72, 153, 0.15);
    color: #f472b6;
}

.gradient-3 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0) 100%), var(--bg-card);
    border-left: 4px solid #10b981;
}

.gradient-3 .tag {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.gradient-4 {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(15, 23, 42, 0) 100%), var(--bg-card);
    border-left: 4px solid #f59e0b;
}

.gradient-4 .tag {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

/* Responsive adjustment for desktop view vs real mobile */
@media (max-width: 480px) {
    body {
        padding: 0;
    }
    .phone-container {
        width: 100vw;
        height: 100vh;
        border: none;
        border-radius: 0;
    }
}
