/* ====================================
   Student Management Pro — Public CSS
   ==================================== */

/* Verification Widget */
.smp-verify-wrap {
    max-width: 700px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.smp-verify-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: #fff;
    border-radius: 16px 16px 0 0;
    padding: 40px 36px 32px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(30, 58, 95, .25);
}
.smp-verify-hero .smp-verify-icon { font-size: 48px; margin-bottom: 12px; }
.smp-verify-hero h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #fff;
    line-height: 1.2;
}
.smp-verify-hero .smp-check {
    display: inline-block;
    background: #27ae60;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 20px;
    vertical-align: middle;
}
.smp-verify-hero p { margin: 0 0 20px; opacity: .9; font-size: 15px; }
.smp-verify-features {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 6px;
    font-size: 14px; font-weight: 600; opacity: .92;
}

.smp-verify-form-wrap {
    background: #fff;
    padding: 28px 36px;
    border-left: 1px solid #dde3ec;
    border-right: 1px solid #dde3ec;
}
.smp-verify-form {
    display: flex; gap: 0;
}
.smp-verify-form input[type="text"] {
    flex: 1;
    border: 2px solid #1e3a5f;
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 14px 18px;
    font-size: 15px;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
}
.smp-verify-form input[type="text"]:focus { border-color: #e8a020; }
.smp-verify-btn {
    background: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
}
.smp-verify-btn:hover { background: #e8a020; }

/* Result card */
#smp-verify-result {
    border: 1px solid #dde3ec;
    border-top: none;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.smp-result-success {
    border-top: 4px solid #27ae60;
}
.smp-result-error {
    border-top: 4px solid #e74c3c;
    padding: 24px 36px;
    background: #fff9f9;
    text-align: center;
}
.smp-result-error .smp-err-icon { font-size: 40px; }
.smp-result-error h3 { color: #c0392b; margin: 8px 0 4px; }
.smp-result-error p { color: #7f8c9a; margin: 0; }

.smp-cert-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.smp-cert-table tr:nth-child(even) { background: #f8fafc; }
.smp-cert-table td {
    padding: 13px 20px;
    border-bottom: 1px solid #ecf0f3;
    font-size: 14px;
}
.smp-cert-table td:first-child {
    font-weight: 700;
    color: #1e3a5f;
    width: 160px;
    white-space: nowrap;
}
.smp-cert-table td:last-child { color: #2c3e50; }
.smp-cert-valid-badge {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: .5px;
}
.smp-cert-revoked-badge {
    background: #f8d7da;
    color: #721c24;
}

/* Public students list */
.smp-students-wrap { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.smp-students-search {
    display: flex; gap: 0; margin-bottom: 16px;
}
.smp-students-search input {
    flex: 1;
    border: 2px solid #1e3a5f;
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}
.smp-students-search button {
    background: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
}
.smp-students-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.smp-students-table thead th {
    background: #1e3a5f; color: #fff;
    padding: 10px 14px; text-align: left;
}
.smp-students-table tbody tr:nth-child(even) { background: #f8fafc; }
.smp-students-table tbody td { padding: 10px 14px; border-bottom: 1px solid #ecf0f3; }

/* Batch cards */
.smp-batch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.smp-batch-card {
    background: #fff;
    border: 1px solid #dde3ec;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.smp-batch-card h3 { margin: 0 0 6px; color: #1e3a5f; font-size: 16px; }
.smp-batch-card p { margin: 0; color: #7f8c9a; font-size: 13px; }

@media (max-width: 560px) {
    .smp-verify-hero { padding: 28px 20px; }
    .smp-verify-form-wrap { padding: 20px; }
    .smp-verify-hero h2 { font-size: 22px; }
    .smp-verify-form { flex-direction: column; }
    .smp-verify-form input[type="text"],
    .smp-verify-btn { border-radius: 8px; border: 2px solid #1e3a5f; }
    .smp-cert-table td:first-child { width: 120px; }
}
