/* Dashboard shortcuts — نفس عائلة لون/سطح ويدجت أوقات الصلاة (prayer_weather.css) */

.dsw-plexus {
    --pr-mid: #64748b;
    position: relative;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0.35rem;
    border-radius: 1.1rem;
    padding: 1rem 1.1rem 1.05rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.36);
    background: linear-gradient(
        155deg,
        color-mix(in srgb, #ffffff 92%, var(--pr-mid) 8%) 0%,
        color-mix(in srgb, #f1f5f9 92%, var(--pr-mid) 8%) 40%,
        color-mix(in srgb, #e8eef5 92%, var(--pr-mid) 8%) 100%
    );
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        0 12px 32px -16px rgba(15, 23, 42, 0.12),
        0 4px 12px -4px rgba(15, 23, 42, 0.06),
        0 0 0 1px color-mix(in srgb, #e2e8f0 87%, var(--pr-mid) 13%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.dsw-plexus::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    opacity: 0.45;
    -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 35%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 35%, transparent 100%);
}

.dsw-plexus::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(251, 191, 36, 0.1) 0%, transparent 52%),
        radial-gradient(ellipse 100% 60% at 0% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.9;
}

.dsw-plexus__head {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 0.85rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.dsw-plexus__title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9a3412;
    text-shadow: none;
    flex: 0 0 auto;
}

:lang(ar) .dsw-plexus__title {
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 0.95rem;
}

.dsw-plexus__title i {
    color: #d97706;
    filter: none;
    font-size: 1.05rem;
}

.dsw-plexus__action {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.45);
    padding-bottom: 1px;
    flex: 1 1 10rem;
    min-width: 0;
    text-align: end;
    line-height: 1.4;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.dsw-plexus__action:hover,
.dsw-plexus__action:focus {
    color: #0f172a;
    border-color: rgba(100, 116, 139, 0.65);
    text-decoration: none;
}

.dsw-plexus__body {
    position: relative;
    z-index: 1;
}

.dsw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
    gap: 0.5rem 0.45rem;
}

.dsw-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 3.6rem;
    padding: 0.45rem 0.4rem 0.5rem;
    text-align: center;
    text-decoration: none;
    color: #0f172a;
    background: linear-gradient(
        175deg,
        color-mix(in srgb, #ffffff 92%, var(--pr-mid) 8%) 0%,
        color-mix(in srgb, #f8fafc 92%, var(--pr-mid) 8%) 100%
    );
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.15s ease;
}

.dsw-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), transparent 55%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.dsw-tile:hover,
.dsw-tile:focus {
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.65);
    box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.12);
    color: #0f172a;
    text-decoration: none;
}

.dsw-tile:hover::before,
.dsw-tile:focus::before {
    opacity: 1;
}

.dsw-tile__icon {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 0.2rem;
    line-height: 1;
    transition: transform 0.2s ease, color 0.15s ease;
}

.dsw-tile:hover .dsw-tile__icon,
.dsw-tile:focus .dsw-tile__icon {
    color: #0284c7;
    transform: scale(1.08);
}

.dsw-tile__label {
    font-size: 0.64rem;
    font-weight: 600;
    line-height: 1.2;
    word-break: break-word;
    color: #475569;
}

@media (max-width: 768px) {
    .dsw-plexus__head {
        flex-direction: column;
        align-items: stretch;
    }
    /* Row layout: flex-basis 10rem is width. Column layout: same rule becomes HEIGHT → huge empty gap. */
    .dsw-plexus__action {
        text-align: center;
        flex: 0 0 auto;
        min-height: 0;
    }
    .dsw-grid {
        grid-template-columns: repeat(auto-fill, minmax(4rem, 1fr));
    }
}

@media (max-width: 480px) {
    .dsw-plexus {
        padding: 0.85rem 0.8rem 0.9rem;
    }
    .dsw-tile {
        min-height: 3.3rem;
        padding: 0.4rem 0.3rem;
    }
    .dsw-tile__icon {
        font-size: 1rem;
    }
    .dsw-tile__label {
        font-size: 0.58rem;
    }
}
