:root {
    --bg-dark: #0a0a14;
    --bg-light: #16162a;
    --primary: #00f2fe;
    --primary-dim: rgba(0, 242, 254, 0.2);
    --secondary: #4facfe;
    --accent: #fcd555;
    /* for sehri/iftar highlights */
    --text-main: #ffffff;
    --text-muted: #a0a0b8;
    --glass-bg: rgba(22, 22, 42, 0.5);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    background-image: url('background.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Glow Effects */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: var(--primary);
}

.orb-2 {
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: var(--secondary);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: #5b21b6;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-30px, 50px) scale(1.1);
    }
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
}

/* Layout */
.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo i {
    font-size: 1.8rem;
    color: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent));
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #fff, #b4b4cb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Select */
.division-selector-container {
    position: relative;
    z-index: 10;
}

.custom-select-wrapper {
    position: relative;
    background: var(--bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select-wrapper:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-dim);
}

.location-icon {
    position: absolute;
    left: 1rem;
    color: var(--primary);
}

.arrow-icon {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.custom-select {
    appearance: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    padding-right: 0.5rem;
}

.custom-select option {
    background: var(--bg-dark);
    color: var(--text-main);
}

/* Hero Section */
.hero-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.hero-top {
    width: 100%;
    text-align: center;
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hijri-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.gregorian-date {
    font-size: 1rem;
    color: var(--text-muted);
}

.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: var(--radius-md);
    min-width: 90px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.time-box span:first-child {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.highlight-box span:first-child {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-dim);
}

.time-box .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.colon {
    font-size: 2.5rem;
    font-weight: 800;
    padding-bottom: 1.5rem;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.today-times {
    display: flex;
    width: 100%;
    gap: 1rem;
}

.time-card {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.03);
}

.time-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.sehri-card {
    border-bottom: 3px solid var(--secondary);
}

.sehri-card .time-card-icon {
    background: rgba(79, 172, 254, 0.1);
    color: var(--secondary);
}

.iftar-card {
    border-bottom: 3px solid var(--accent);
}

.iftar-card .time-card-icon {
    background: rgba(252, 213, 85, 0.1);
    color: var(--accent);
}

.time-card-info h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.time-value {
    font-size: 1.5rem;
    font-weight: 800;
}

/* Schedule Table */
.monthly-schedule {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.section-header p {
    color: var(--primary);
    font-weight: 600;
}

.table-container {
    overflow-x: auto;
    padding: 1rem;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

tbody tr {
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.today-row {
    background: rgba(0, 242, 254, 0.05);
    border-left: 3px solid var(--primary);
}

.today-row td {
    color: var(--primary);
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
}

footer p {
    font-size: 0.9rem;
}

.credits {
    margin-top: 0.5rem;
}

.credits i {
    color: #ff4757;
}

/* Responsive */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .today-times {
        flex-direction: column;
    }

    .timer {
        gap: 0.5rem;
    }

    .time-box {
        min-width: 70px;
        padding: 0.75rem;
    }

    .time-box span:first-child {
        font-size: 2rem;
    }

    .app-container {
        padding: 1rem;
    }
}