/* 
 * NATIVE APP DESIGN SYSTEM (Flutter-Ready)
 * High-end, minimal, high-contrast UI (Linear/Apple aesthetic)
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --app-bg: #0A0A0A;
    --app-surface: #111111;
    --app-surface-hover: #1A1A1A;
    --app-border: rgba(255, 255, 255, 0.08);
    --app-text-main: #EDEDED;
    --app-text-muted: #A1A1AA;
    --app-accent: #FFFFFF;
    --app-accent-bg: #FFFFFF;
    --app-accent-text: #000000;
    
    /* Native App Spacing */
    --safe-area-bottom: env(safe-area-inset-bottom, 20px);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--app-bg);
    color: var(--app-text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-y: none; /* Native app scroll feel */
}

/* App Surfaces & Cards */
.app-card {
    background-color: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.app-card:hover {
    background-color: var(--app-surface-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

/* App Inputs */
.app-input {
    background-color: #000000;
    border: 1px solid var(--app-border);
    color: var(--app-text-main);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    width: 100%;
    transition: border-color 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.app-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
}

/* App Buttons */
.app-btn-primary {
    background-color: var(--app-accent-bg);
    color: var(--app-accent-text);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.1s ease, opacity 0.2s ease;
    cursor: pointer;
}

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

.app-btn-secondary {
    background-color: var(--app-surface);
    color: var(--app-text-main);
    border: 1px solid var(--app-border);
    font-weight: 500;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.app-btn-secondary:hover {
    background-color: var(--app-surface-hover);
}

.app-btn-secondary:active {
    transform: scale(0.97);
}

/* Premium Ambient Glows */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* Advanced Bento Cards */
.bento-card {
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.6) 0%, rgba(10, 10, 10, 0.8) 100%);
    border: 1px solid var(--app-border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.7), 0 0 40px -10px rgba(99, 102, 241, 0.1);
}

.bento-card:hover::before {
    opacity: 1;
}

/* Spotlight Search Bar */
.spotlight-search {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.spotlight-search:focus-within {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Text Gradients */
.text-gradient-premium {
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Apple Cupertino Dark Mode Aesthetic */
:root {
    --apple-bg: #000000;
    --apple-surface: #1C1C1E;
    --apple-surface-hover: #2C2C2E;
    --apple-border: rgba(255, 255, 255, 0.1);
    --apple-text-muted: #8E8E93;
    --apple-glass: rgba(28, 28, 30, 0.7);
}

.apple-glass {
    background-color: var(--apple-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.apple-card {
    background-color: var(--apple-surface);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.apple-card:hover {
    background-color: var(--apple-surface-hover);
}

.apple-btn {
    background-color: #FFFFFF;
    color: #000000;
    border-radius: 999px; /* Apple pill shape */
    font-weight: 600;
    padding: 10px 20px;
    font-size: 14px;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.apple-btn:active {
    transform: scale(0.96);
    opacity: 0.8;
}

.apple-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--apple-text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.apple-sidebar-link:hover {
    background-color: rgba(255,255,255,0.05);
    color: #FFFFFF;
}

.apple-sidebar-link.active {
    background-color: rgba(255,255,255,0.1);
    color: #FFFFFF;
}