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

:root {
    --app-bg: #0f172a;
    --app-surface: #1e293b;
    --app-primary: #3b82f6;
    --app-secondary: #8b5cf6;
    --app-gradient: linear-gradient(135deg, var(--app-primary), var(--app-secondary));
    --app-text: #f8fafc;
    --app-text-muted: #94a3b8;
    --app-border: rgba(255,255,255,0.05);
    
    --bottom-nav-height: 70px;
    --top-bar-height: 60px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--app-bg) !important;
    color: var(--app-text) !important;
    -webkit-tap-highlight-color: transparent;
    padding-top: calc(var(--top-bar-height) + 15px);
    padding-bottom: calc(var(--bottom-nav-height) + 20px);
}

/* App Bars */
.top-app-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--top-bar-height);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--app-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1030;
}

.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--app-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1030;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--app-text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 3px;
    transition: all 0.2s ease;
}

.nav-item.active {
    color: var(--app-primary);
}

.nav-item.active i {
    transform: translateY(-2px);
}

/* Cards & Containers */
.card {
    background-color: var(--app-surface) !important;
    border: 1px solid var(--app-border) !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Buttons */
.btn {
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.2rem !important;
}

.btn-primary {
    background: var(--app-gradient) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
}

.btn-primary:active {
    transform: scale(0.98);
}

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

.fab {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 20px);
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 30px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1020;
}

/* Forms */
.form-control, .form-select {
    background-color: rgba(0,0,0,0.2) !important;
    border: 1px solid var(--app-border) !important;
    color: var(--app-text) !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25) !important;
    border-color: var(--app-primary) !important;
}

/* Utilities */
.text-gradient {
    background: var(--app-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-title {
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0;
}

/* Scrollbar Hide for mobile */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}
