.tr-coach-rsvp-box {
    max-width: 420px;
}

.tr-summary-card {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
}

.tr-coach-list {
    list-style: none;
    padding-left: 0;
}

.tr-coach-list li {
    margin: 4px 0;
}

.tr-loading {
    padding: 10px;
    opacity: 0.7;
}

.muted {
    color: #777;
}



/* ===============================
   Parent Portal – Mobile First
================================ */
.tr-players-grid {
    margin-top: 10px;
}

.tr-players-header,
.tr-player-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 6px;
}

.tr-players-header {
    font-weight: bold;
    font-size: 13px;
    color: #444;
}

.tr-player-row input {
    padding: 6px;
    font-size: 14px;
    width: 100%;
}

/* Mobile stacking */
@media (max-width: 600px) {
    .tr-players-header {
        display: none;
    }

    .tr-player-row {
        grid-template-columns: 1fr;
        border: 1px solid #ddd;
        padding: 8px;
        border-radius: 6px;
    }

    .tr-player-row input {
        margin-bottom: 6px;
    }
}

.tr-parent-logged {
    font-size: 14px;
    padding: 6px 10px;
    background: #f5f7fa;
    border-left: 4px solid #004aad;
}

/* Parent Account CTA — subtle utility link */
/* Parent account CTA row */
.tr-parent-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px 0;
    flex-wrap: wrap; /* allows stacking on mobile */
}

/* Link remains subtle */
.tr-parent-link {
    font-size: 14px;
    font-weight: 500;
    color: #4b6f8a;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    background: #eef4f8;
    border: 1px solid #d6e1ea;
    white-space: nowrap;
}

.tr-parent-link:hover {
    background: #e3edf5;
    color: #2f4f66;
}

/* Inline explanation text */
.tr-parent-note {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Mobile polish */
@media (max-width: 600px) {
    .tr-parent-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

.tr-parent-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #4b6f8a;          /* muted blue */
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    background: #eef4f8;     /* very light blue-gray */
    border: 1px solid #d6e1ea;
}

.tr-parent-link:hover {
    background: #e3edf5;
    color: #2f4f66;
    text-decoration: none;
}

.tr-parent-login,
.tr-parent-dashboard {
    max-width: 520px;
    margin: 20px auto;
    padding: 16px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Headings */
.tr-parent-login h3,
.tr-parent-dashboard h2,
.tr-parent-dashboard h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

/* Labels */
.tr-parent-login label,
.tr-parent-dashboard label {
    display: block;
    margin-top: 14px;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
}

/* Inputs */
.tr-parent-login input,
.tr-parent-dashboard input,
.tr-parent-dashboard textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px; /* prevents iOS zoom */
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Textarea */
.tr-parent-dashboard textarea {
    resize: vertical;
    min-height: 120px;
}

/* Buttons */
.button-update {text-transform: uppercase;background-color:green;}
#button-events {text-transform: uppercase;background-color:gray!important;color:white;text-align:center;}
#button-logout {text-transform: uppercase;background-color:#FF7F7F !important;color:white;text-align:center;}
.tr-parent-login button,
.tr-parent-dashboard .button {
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    font-size: 16px;
    border-radius: 8px;
}

/* Button grouping */
.tr-parent-dashboard p:last-child {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Alerts */
.tr-reg-alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 14px;
}

.tr-reg-alert--error {
    background: #fdecea;
    color: #b71c1c;
}

.tr-reg-alert--success {
    background: #e8f5e9;
    color: #1b5e20;
}

/* Desktop enhancements */
@media (min-width: 768px) {

    .tr-parent-dashboard {
        padding: 24px;
    }

    .tr-parent-dashboard p:last-child {
        flex-direction: row;
    }

    .tr-parent-dashboard .button {
        width: auto;
        flex: 1;
    }
}
