:root {
    --bg-primary: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-gold: #fbbf24;
    --accent-blue: #38bdf8;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    margin-bottom: 80px;
    /* Space for the bottom easy menu */
}

/* Glassmorphism Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Header Section */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-blue);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main Clock / Next Prayer */
.main-timer {
    text-align: center;
}

.next-prayer-name {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 10px 0;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Prayer Times List */
.prayer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prayer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.prayer-item.active {
    background: linear-gradient(to right, rgba(251, 191, 36, 0.15), transparent);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.prayer-item.active .time {
    color: var(--accent-gold);
    font-size: 1.3rem;
    font-weight: 600;
}

.label {
    font-size: 1.1rem;
    font-weight: 500;
}

.time {
    font-size: 1.1rem;
    font-family: monospace;
}

/* Easy Bottom Menu */
.easy-menu {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    height: 70px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    gap: 4px;
    transition: 0.3s;
}

.menu-item.active {
    color: var(--accent-blue);
}

.menu-item i {
    font-size: 1.4rem;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-item:active i {
    transform: scale(0.8);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.6s ease-out forwards;
}

@media (max-width: 380px) {
    .countdown {
        font-size: 2.8rem;
    }

    .card {
        padding: 18px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease-out;
    padding: 30px;
    position: relative;
    background: #1e293b;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-box input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

.search-box input:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.1);
}

.city-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.city-btn {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 16px;
    text-align: center;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.city-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.close-btn {
    width: 100%;
    padding: 15px;
    border-radius: 16px;
    background: #0f172a;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Navigation Sections */
.app-section {
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

/* Qibla Compass */
.compass-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qibla-arrow {
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Settings Controls */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
}

.setting-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-blue);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.action-btn-small {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.action-btn-small:hover {
    background: var(--accent-blue);
    color: white;
}