/* PVP Student Portal — shared styles */

.pvps-wrap .pvps-columns {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.pvps-wrap .pvps-col-form { flex: 0 0 380px; }
.pvps-wrap .pvps-col-list { flex: 1 1 500px; min-width: 320px; }

.pvps-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.pvps-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 16px 22px;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pvps-card-num { font-size: 28px; font-weight: 700; color: #671a2c; }

/* Front-end dashboards */
.pvps-dashboard { max-width: 900px; margin: 0 auto; font-family: inherit; }
.pvps-dashboard h2 { color: #671a2c; margin-bottom: 4px; }
.pvps-dashboard .pvps-meta { color: #666; margin-top: 0; }

.pvps-tabs details {
    background: #fff;
    border: 1px solid #e2d9dc;
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 12px 16px;
}
.pvps-tabs summary {
    font-weight: 600;
    cursor: pointer;
    color: #671a2c;
    font-size: 1.05em;
}

.pvps-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.pvps-table th, .pvps-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}
.pvps-table th { background: #f8f3f4; }

.pvps-input, .pvps-tabs input[type="text"], .pvps-tabs input[type="email"],
.pvps-tabs input[type="url"], .pvps-tabs input[type="date"],
.pvps-tabs input[type="password"], .pvps-tabs input[type="search"],
.pvps-tabs select, .pvps-tabs textarea {
    width: 100%;
    max-width: 420px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.pvps-btn {
    display: inline-block;
    background: #671a2c;
    color: #fff !important;
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}
.pvps-btn:hover { background: #4f1422; color: #fff; }
.pvps-btn-sm { padding: 4px 10px; font-size: 0.85em; }

.pvps-notice {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.pvps-notice.pvps-success { background: #eaf7ea; border: 1px solid #b7e0b7; color: #205020; }
.pvps-notice.pvps-error { background: #fbeaea; border: 1px solid #eab7b7; color: #7a2020; }

.pvps-announcement {
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}
.pvps-announcement h4 { margin: 0 0 4px; color: #671a2c; }
.pvps-announcement .pvps-date { color: #999; font-size: 0.85em; }

.pvps-login-notice { text-align: center; padding: 30px; }

/* ---------- Beautified student dashboard ---------- */

.pvps-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #671a2c 0%, #8a2540 100%);
    color: #fff;
    padding: 22px 26px;
    border-radius: 12px;
    margin-bottom: 18px;
}
.pvps-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex: 0 0 56px;
    border: 2px solid rgba(255,255,255,0.4);
}
.pvps-hero-info { flex: 1; }
.pvps-hero-info h2 { color: #fff; margin: 0 0 4px; }
.pvps-hero-info .pvps-meta { color: rgba(255,255,255,0.85); margin: 0; }

.pvps-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff !important;
}
.pvps-btn-ghost:hover { background: rgba(255,255,255,0.15); }

.pvps-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.pvps-stat {
    background: #fff;
    border: 1px solid #ecdfe3;
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.pvps-stat-num { display: block; font-size: 26px; font-weight: 700; color: #671a2c; line-height: 1.2; }
.pvps-stat-label { display: block; font-size: 0.78em; color: #777; text-transform: uppercase; letter-spacing: 0.03em; margin-top: 2px; }

.pvps-tabbed { background: transparent; }
.pvps-tabnav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    border-bottom: 2px solid #ecdfe3;
    padding-bottom: 0;
}
.pvps-tab-btn {
    background: transparent;
    border: none;
    padding: 10px 16px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    position: relative;
    top: 2px;
}
.pvps-tab-btn.is-active {
    color: #671a2c;
    border-bottom: 2px solid #671a2c;
}
.pvps-tab-btn:hover { color: #671a2c; }

.pvps-tab-panel { display: none; background: #fff; border: 1px solid #ecdfe3; border-radius: 0 8px 8px 8px; padding: 18px 22px; }
.pvps-tab-panel.is-active { display: block; }
.pvps-tab-panel h3 { margin-top: 0; color: #671a2c; }
.pvps-subheading { margin-top: 24px; color: #671a2c; border-top: 1px solid #eee; padding-top: 14px; }

.pvps-inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.pvps-inline-form select, .pvps-inline-form input[type="search"] { width: auto; max-width: 260px; }

.pvps-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.pvps-form-grid p { margin: 0 0 12px; }
.pvps-form-grid .pvps-span-2 { grid-column: 1 / -1; }
.pvps-form-grid button { grid-column: 1 / -1; justify-self: start; }

.pvps-gpa { font-weight: 700; text-align: right; color: #671a2c; }
.pvps-fail { color: #b32d2e; font-weight: 700; }

.pvps-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: capitalize;
}
.pvps-badge-pending { background: #fff3cd; color: #8a6d1a; }
.pvps-badge-reviewed { background: #d9f2d9; color: #205020; }
.pvps-badge-needs_revision { background: #fbe0e0; color: #8a2020; }

@media (max-width: 700px) {
    .pvps-stat-row { grid-template-columns: repeat(2, 1fr); }
    .pvps-form-grid { grid-template-columns: 1fr; }
    .pvps-hero { flex-wrap: wrap; }
}

/* ---------- Login page ---------- */

.pvps-login-page {
    display: flex;
    justify-content: center;
    padding: 40px 16px;
}
.pvps-login-card {
    background: #fff;
    border: 1px solid #ecdfe3;
    border-radius: 12px;
    padding: 30px 34px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.pvps-login-card h2 { text-align: center; color: #671a2c; margin-top: 0; }
.pvps-login-form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.9em; color: #444; }
.pvps-login-form input { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #ccc; border-radius: 5px; margin-bottom: 4px; }
.pvps-btn-block { width: 100%; text-align: center; }

.pvps-login-divider { text-align: center; margin: 18px 0; position: relative; color: #999; font-size: 0.85em; }
.pvps-login-divider::before, .pvps-login-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    border-top: 1px solid #e2d9dc;
}
.pvps-login-divider::before { left: 0; }
.pvps-login-divider::after { right: 0; }

.pvps-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 9px 14px;
    text-decoration: none !important;
    color: #333 !important;
    font-weight: 600;
    background: #fff;
}
.pvps-google-btn:hover { background: #f7f7f7; }

.pvps-forgot-link { text-align: center; margin-top: 10px; font-size: 0.9em; }
.pvps-forgot-link a { color: #671a2c; }

/* ---------- Faculty evaluation form ---------- */

.pvps-eval-question {
    border-bottom: 1px solid #eee;
    padding: 14px 0;
}
.pvps-eval-question:last-of-type { border-bottom: none; }
.pvps-eval-question p { margin: 0 0 8px; }

.pvps-eval-scale {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.pvps-eval-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.8em;
    color: #555;
    min-width: 72px;
    text-align: center;
}
.pvps-eval-option:has(input:checked) {
    border-color: #671a2c;
    background: #fbeef1;
    color: #671a2c;
    font-weight: 600;
}
.pvps-eval-option input { margin: 0 0 2px; }
