﻿/* ============================================================
   PARENT DASHBOARD — reusable styles
   Used by: Welcome_Parents.aspx and any other parent-facing pages
   ============================================================ */

.parent-dashboard {
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    padding: 8px 0 30px;
}

/* ----- WELCOME HERO ----- */
.pd-welcome {
    position: relative;
    padding: 42px 40px;
    background: linear-gradient(135deg, #0b2d5b 0%, #0d6efd 55%, #198754 100%);
    color: white;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 25px 50px -12px rgba(13, 110, 253, 0.25);
}

    .pd-welcome::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 15% 30%, rgba(255, 217, 61, 0.15), transparent 45%), radial-gradient(circle at 85% 75%, rgba(25, 135, 84, 0.25), transparent 50%);
        pointer-events: none;
    }

.pd-welcome-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.pd-welcome-icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffd93d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pd-welcome-text {
    flex: 1;
    min-width: 240px;
}

    .pd-welcome-text .welcome-label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 6px 14px;
        border-radius: 30px;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        margin-bottom: 14px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
    }

        .pd-welcome-text .welcome-label i {
            color: #ffd93d;
        }

    .pd-welcome-text h1 {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        font-weight: 800;
        line-height: 1.15;
        letter-spacing: -0.025em;
        margin-bottom: 10px;
        color: white;
    }

        .pd-welcome-text h1 .highlight {
            background: linear-gradient(135deg, #ffd93d, #ffb347);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

    .pd-welcome-text p {
        font-size: 1rem;
        opacity: 0.92;
        max-width: 560px;
        color: white;
        line-height: 1.6;
        margin: 0;
    }

/* ----- SECTION LABEL ----- */
.pd-section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0b2d5b;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

    .pd-section-label i {
        color: #0d6efd;
        font-size: 0.95rem;
    }

/* ----- ACTION CARDS GRID ----- */
.pd-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 28px;
}

/* LinkButton reset — the rendered <a> needs these to work as cards */
a.pd-action-card {
    display: flex !important;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    padding: 30px 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(13, 110, 253, 0.06);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    text-decoration: none !important;
    cursor: pointer;
    text-align: left;
    min-height: 150px;
    color: inherit !important;
}

    a.pd-action-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--c1, #0d6efd), var(--c2, #198754));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s ease;
    }

    a.pd-action-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 25px 50px -12px rgba(13, 110, 253, 0.15);
        border-color: rgba(13, 110, 253, 0.15);
    }

        a.pd-action-card:hover::before {
            transform: scaleX(1);
        }

    a.pd-action-card.blue::before {
        --c1: #0d6efd;
        --c2: #0a58ca;
    }

    a.pd-action-card.green::before {
        --c1: #198754;
        --c2: #0e5c38;
    }

    a.pd-action-card.red::before {
        --c1: #dc3545;
        --c2: #a71d2a;
    }

    a.pd-action-card.gold::before {
        --c1: #f5c518;
        --c2: #d4a000;
    }

    a.pd-action-card .card-icon {
        width: 62px;
        height: 62px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.45rem;
        color: #ffffff;
        flex-shrink: 0;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        transition: transform 0.35s ease;
    }

    a.pd-action-card:hover .card-icon {
        transform: scale(1.08) rotate(-4deg);
    }

    a.pd-action-card.blue .card-icon {
        background: linear-gradient(135deg, #0d6efd, #0a58ca);
    }

    a.pd-action-card.green .card-icon {
        background: linear-gradient(135deg, #198754, #0e5c38);
    }

    a.pd-action-card.red .card-icon {
        background: linear-gradient(135deg, #dc3545, #a71d2a);
    }

    a.pd-action-card.gold .card-icon {
        background: linear-gradient(135deg, #f5c518, #d4a000);
    }

    a.pd-action-card .card-body {
        flex: 1;
        min-width: 0;
    }

        a.pd-action-card .card-body h3 {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 1.15rem;
            font-weight: 800;
            color: #0b2d5b;
            margin-bottom: 8px;
            line-height: 1.3;
        }

        a.pd-action-card .card-body p {
            font-size: 0.9rem;
            color: #64748b;
            line-height: 1.55;
            margin-bottom: 14px;
        }

    a.pd-action-card .card-cta {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.8rem;
        font-weight: 700;
        color: #0d6efd;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: gap 0.25s ease;
    }

    a.pd-action-card.green .card-cta {
        color: #198754;
    }

    a.pd-action-card.red .card-cta {
        color: #dc3545;
    }

    a.pd-action-card.gold .card-cta {
        color: #b8860b;
    }

    a.pd-action-card:hover .card-cta {
        gap: 10px;
    }

    a.pd-action-card .card-cta i {
        font-size: 0.75rem;
        transition: transform 0.25s ease;
    }

    a.pd-action-card:hover .card-cta i {
        transform: translateX(2px);
    }

/* ----- ERROR LABEL ----- */
.pd-error {
    display: block;
    background: #fef2f2;
    border-left: 4px solid #dc3545;
    color: #b91c1c;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: left;
}

    .pd-error:empty {
        display: none;
    }

/* ----- INFO STRIP ----- */
.pd-info-strip {
    margin-top: 8px;
    background: linear-gradient(135deg, #f0f7ff, #ffffff);
    border-left: 6px solid #0d6efd;
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

    .pd-info-strip i {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: linear-gradient(135deg, #0d6efd, #198754);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        flex-shrink: 0;
    }

    .pd-info-strip .info-text {
        font-size: 0.92rem;
        color: #475569;
        line-height: 1.6;
    }

        .pd-info-strip .info-text strong {
            color: #0b2d5b;
        }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .pd-welcome {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .pd-welcome-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .pd-welcome-text h1 {
        font-size: 1.4rem;
    }

    .pd-actions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    a.pd-action-card {
        padding: 24px 22px;
        min-height: auto;
        gap: 16px;
    }

        a.pd-action-card .card-icon {
            width: 52px;
            height: 52px;
            font-size: 1.2rem;
        }

        a.pd-action-card .card-body h3 {
            font-size: 1.05rem;
        }

        a.pd-action-card .card-body p {
            font-size: 0.85rem;
        }

    .pd-info-strip {
        padding: 16px 18px;
        gap: 14px;
    }

        .pd-info-strip i {
            width: 40px;
            height: 40px;
            font-size: 1rem;
        }
}
