:root {
    --bg-dark: #0a0a0c;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-primary: #7c4dff;
    --accent-secondary: #00e5ff;
    --text-main: #ffffff;
    --text-dim: #b0b0b0;
    --font-heading: 'Outfit', 'Tajawal', sans-serif;
    --font-body: 'Tajawal', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.4;
}

.blob {
    position: absolute;
    border-radius: 50%;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
    animation: move 20s infinite alternate;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: -50px;
    right: -50px;
    animation: move 15s infinite alternate-reverse;
}

@keyframes move {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(100px, 50px);
    }
}

.container {
    max-width: 900px;
    width: 100%;
    z-index: 1;
}

/* Header */
.glass-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.glow-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.accent {
    color: var(--accent-secondary);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.subtitle {
    color: var(--text-dim);
    font-weight: 300;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Circular Progress */
.circular-chart {
    display: block;
    margin: 10px auto;
    max-width: 150px;
    max-height: 150px;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke: var(--accent-secondary);
    transition: stroke-dasharray 1s ease 0s;
}

.percentage {
    fill: #fff;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    /* Slightly larger */
    text-anchor: middle;
    font-weight: 800;
    /* Bolder */
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* Info Items */
.info-content {
    margin-top: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

/* Input styles */
.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    width: 60px;
    text-align: center;
    font-family: var(--font-heading);
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-secondary);
    background: rgba(255, 255, 255, 0.1);
}

/* Prayers List */
.prayers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prayer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
}

.prayer-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.prayer-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.inner-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.btn-add {
    background: linear-gradient(135deg, var(--accent-primary), #6200ea);
    color: white;
    border: none;
    padding: 1rem 1.8rem;
    border-radius: 14px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(124, 77, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 77, 255, 0.4);
    filter: brightness(1.1);
}

.btn-add:active {
    transform: translateY(0) scale(0.96);
}

.btn-missed {
    background: rgba(255, 82, 82, 0.08);
    color: #ff5252;
    border: 1px solid rgba(255, 82, 82, 0.25);
    padding: 0.8rem 1.5rem;
    border-radius: 14px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    backdrop-filter: blur(8px);
}

.btn-missed:hover {
    background: rgba(255, 82, 82, 0.15);
    border-color: rgba(255, 82, 82, 0.5);
    box-shadow: 0 4px 20px rgba(255, 82, 82, 0.2);
    transform: translateY(-2px);
    color: #ff1744;
}

.btn-missed:active {
    transform: translateY(0) scale(0.96);
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 130px;
}

.count-badge {
    background: var(--glass-border);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.footer {
    text-align: center;
    margin-top: 4rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    opacity: 0.6;
}

@media (max-width: 600px) {
    .prayer-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .prayer-actions {
        width: 100%;
        justify-content: space-between;
    }
}