/* RPSA — index.php page styles */

body {
    background-color: #fff;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 500px;
    margin: 0 auto;
}

/* ── Utility carried from headup() inline block ── */
.sfine, .sfine * { font-size: 14px; }
.r45            { border-radius: 54px; }
.paddedd        { padding: 10px; }

.whited { filter: brightness(100); }
.wtext, .wtext * { color: #fff; }

.grades {
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #ffffff 50%,
        #0d7342 100%
    );
}

.tabcel {
    border: 1px solid black;
    padding: 2px;
    display: inline-block;
    margin: 2px;
}

.rpsabg {
    background-color: #0d7342;
    color: #fff;
}

/* ── Buttons & selects ── */
.button, button, .rpsa {
    background: linear-gradient(to right, #4255cc, #3ec8a8);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 40px;
    font-size: 16px;
    cursor: pointer;
    box-shadow:
        inset -4px -4px 8px rgba(0, 0, 0, 0.2),
        inset 2px 2px 6px rgba(255, 255, 255, 0.15);
}

.button:hover, button:hover, .rpsa:hover { box-shadow: none; }

select {
    background: linear-gradient(to right, #2193b0, #6dd5ed);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    box-shadow:
        inset -3px -3px 6px rgba(0, 0, 0, 0.15),
        inset 1px 1px 4px rgba(255, 255, 255, 0.1);
}

/* ── Survey questions ── */
.question {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid gray;
    padding: 16px;
    margin-bottom: 8px;
    color: #111;
}

/* ── Tool cards ── */
.tool-card {
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 16px;
    min-height: 240px;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    color: #fff;
}

.tool-card-inner {
    padding: 10px;
    background-image: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(0, 0, 0, 0.356) 40%,
        rgba(0, 0, 0, 0.526) 100%
    );
    min-height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tool-card-inner b,
.tool-card-inner .fine { color: #fff; }

.tool-card-arrow {
    position: absolute;
    bottom: 8px;
    right: 8px;
}

/* ── Appointment cards ── */
.appt-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(73, 233, 173, 0.14);
    padding: 10px;
    border-radius: 24px;
    margin-bottom: 8px;
}

.appt-card-label {
    max-width: 80%;
    display: inline-block;
}

.appt-del {
    float: right;
    width: 24px;
    height: 24px;
    border-radius: 24px;
    background-color: rgba(73, 233, 173, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

/* ── Phys-cat grid ── */
.phys-cat-item {
    background-size: auto 100%;
    background-repeat: no-repeat;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 16px;
    cursor: pointer;
}

.phys-cat-inner {
    padding: 10px;
    background-image: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(0, 0, 0, 0.65) 40%,
        rgba(0, 0, 0, 0.84) 100%
    );
    color: #fff;
}
