/* themes.css */
@import url('colors.css');
@import url('typography.css');

/* Global App Styling */
body {
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--on-background);
    font-family: var(--font-main);
    
    /* Makes scrolling smooth on mobile */
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; 
}

/* Phase 4: Universal Arabic Typography (The "Dua" Fix) */
.dua-arabic-text {
    font-family: 'Amiri', 'Traditional Arabic', 'Lateef', 'Noto Naskh Arabic', serif !important;
    font-size: 28px;
    line-height: 1.8;
    text-align: right;
    width: 100%;
    margin: 8px 0;
    direction: rtl;
}

/* A standard Card component (Like Compose Card) */
.card {
    background-color: var(--surface);
    color: var(--on-surface);
    border-radius: 12px;
    padding: 16px;
    margin: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Phase 1 & 2: Bottom App Bar Settings */
.bottom-app-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    /* FIX: Updated background color to match the Top App Bar */
    background-color: var(--primary-color, #004D40); 
    display: flex;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    /* Web equivalent of Jetpack safe insets */
    padding-bottom: env(safe-area-inset-bottom);
}

/* Bottom Nav Items Default (Inactive) */
.bottom-nav-tab {
    flex: 1;
    text-align: center;
    padding: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #FFFFFF; /* White text for inactive */
    border-top: 3px solid transparent;
    box-sizing: border-box;
}

/* Bottom Nav Items (Active) */
.bottom-nav-tab.active {
    color: #FFD700; /* Yellow highlight */
    border-top: 3px solid #FFD700;
}

/* Automatic Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #121212;
        --surface: #1e1e1e;
        --on-background: #ffffff;
        --on-surface: #e0e0e0;
    }
}