/* ==========================================================================
   School Fees Manager - Frontend Styles (Parent Portal)
   ========================================================================== */

.sfm-portal {
    max-width: 640px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
}
.sfm-portal-header {
    text-align: center;
    margin-bottom: 24px;
}
.sfm-portal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 6px;
}
.sfm-portal-header p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}
.sfm-portal-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.sfm-portal-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s;
    font-family: inherit;
}
.sfm-portal-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.sfm-portal-btn {
    padding: 14px 28px;
    background: #1a365d;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.sfm-portal-btn:hover { background: #152d4f; }

.sfm-portal-student-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
}
.sfm-portal-fees {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
}
.sfm-portal-summary {
    background: #1a365d;
    color: #fff;
    border-radius: 10px;
    padding: 20px;
}
.sfm-portal-summary h3 { color: #fff; margin: 0 0 12px; font-size: 16px; }
.sfm-portal-summary .sfm-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 15px;
}
.sfm-portal-summary .sfm-summary-total {
    border-top: 1px solid rgba(255,255,255,0.3);
    margin-top: 8px;
    padding-top: 10px;
    font-size: 18px;
    font-weight: 700;
}

.sfm-portal-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 14px 18px;
    text-align: center;
    font-size: 14px;
}
.sfm-portal-loading { text-align: center; padding: 30px; color: #64748b; }
.sfm-portal-loading .sfm-spinner {
    width: 36px; height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: #1a365d;
    border-radius: 50%;
    animation: sfm-spin 0.7s linear infinite;
    margin: 0 auto 12px;
}
@keyframes sfm-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
    .sfm-portal { margin: 16px; }
    .sfm-portal-search { flex-direction: column; }
}
