:root {
    --ipp-primary: var(--wp--preset--color--primary, #0f766e);
    --ipp-primary-dark: var(--wp--preset--color--secondary, #0d5f57);
    --ipp-accent: var(--wp--preset--color--accent, #d97706);
    --ipp-text-main: var(--wp--preset--color--text, #111827);
    --ipp-text-muted: #6b7280;
    --ipp-card-bg: var(--wp--preset--color--background, #ffffff);
    --ipp-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --ipp-radius: 16px;
    --ipp-font: inherit; /* Inherit theme font */
}

.ipp-dashboard {
    font-family: var(--ipp-font);
    max-width: 600px;
    margin: 2rem auto;
    background: var(--ipp-widget-bg, var(--ipp-card-bg));
    color: var(--ipp-widget-text, var(--ipp-text-main));
    border-radius: var(--ipp-radius);
    box-shadow: var(--ipp-shadow);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Header Section */
.ipp-header {
    background: var(--ipp-header-bg, var(--ipp-primary));
    color: var(--ipp-header-text, #ffffff);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.ipp-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ipp-header-text, #ffffff);
    letter-spacing: -0.025em;
}

.ipp-dates {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 400;
}

.ipp-dates .hijri {
    color: #fcd34d;
    /* Amber 300 */
    font-weight: 500;
}

/* Next Prayer Hero */
.ipp-next-prayer {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
}

.ipp-next-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: var(--ipp-text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ipp-next-name {
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
    color: var(--ipp-primary);
    margin: 0.5rem 0;
    letter-spacing: -0.05em;
}

.ipp-countdown {
    font-size: 1.25rem;
    color: var(--ipp-accent);
    font-family: monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    background: #fffbeb;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-top: 0.5rem;
}

/* Grid Layout */
.ipp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1px;
    background: #f3f4f6;
    /* Serves as border color */
}

.ipp-prayer-item {
    background: #fff;
    padding: 1.25rem 0.5rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: default;
}

.ipp-prayer-item:hover {
    background: #fcfcfc;
}

.ipp-prayer-item.active {
    background: #f0fdfa;
    position: relative;
    /* border-top: 3px solid var(--ipp-primary); */
}

.ipp-prayer-item.active .ipp-p-name {
    color: var(--ipp-primary);
    font-weight: 700;
}

.ipp-prayer-item.active .ipp-p-time {
    color: var(--ipp-primary-dark);
    font-weight: 700;
}

.ipp-p-name {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ipp-text-muted);
    margin-bottom: 0.25rem;
}

.ipp-p-time {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ipp-text-main);
}

/* Footer & Buttons */
.ipp-footer {
    padding: 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ipp-text-muted);
}

#ipp-enable-notifications {
    transition: all 0.2s ease;
    font-weight: 500;
}

#ipp-enable-notifications:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
}