/**
 * Little Buds Preschool Manager — Public CSS
 * Loaded on all frontend pages when plugin is active
 */

/* =====================
   Admission Form Styles
   ===================== */
.lbp-form-wrap {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 580px;
    margin: 0 auto;
}
.lbp-form-wrap h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #1BB0CE;
    margin: 0 0 25px;
    text-align: center;
}
.lbp-field {
    margin-bottom: 20px;
}
.lbp-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #333;
    font-size: 0.9rem;
}
.lbp-field input,
.lbp-field select,
.lbp-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    color: #333;
    background: #fafafa;
}
.lbp-field input:focus,
.lbp-field select:focus,
.lbp-field textarea:focus {
    outline: none;
    border-color: #1BB0CE;
    box-shadow: 0 0 0 3px rgba(27, 176, 206, 0.15);
    background: #fff;
}
.lbp-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.lbp-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1BB0CE, #43A047);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}
.lbp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 176, 206, 0.4);
}
.lbp-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.lbp-form-msg {
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    margin-top: 20px;
    display: none;
}
.lbp-form-msg.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #a5d6a7;
    display: block;
}
.lbp-form-msg.error {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #ef9a9a;
    display: block;
}

/* =====================
   Parent Portal Styles
   ===================== */
.lbp-portal-wrap {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}
.lbp-portal-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}
.lbp-portal-header {
    background: linear-gradient(135deg, #1BB0CE, #43A047);
    border-radius: 16px;
    padding: 25px 30px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}
.lbp-student-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.7);
    object-fit: cover;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}
.lbp-stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 12px;
    text-align: center;
}
.lbp-stat-mini-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1BB0CE;
    line-height: 1;
}
.lbp-stat-mini-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
}

/* Attendance Calendar */
.lbp-attendance-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
.lbp-cal-day {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}
.lbp-cal-day.present   { background: #e8f5e9; color: #2e7d32; }
.lbp-cal-day.absent    { background: #ffebee; color: #c62828; }
.lbp-cal-day.holiday   { background: #fff3e0; color: #e65100; }
.lbp-cal-day.late      { background: #fff8e1; color: #f57f17; }
.lbp-cal-day.empty     { background: #f5f5f5; color: #ccc; }
.lbp-cal-day.header    { background: transparent; color: #999; font-size: 0.75rem; }

/* Fee Table */
.lbp-fee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.lbp-fee-table th {
    background: #f5f5f5;
    padding: 10px 15px;
    text-align: left;
    font-weight: 700;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
}
.lbp-fee-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}
.lbp-fee-table tr:hover td { background: #fafafa; }

/* Status badges */
.lbp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
}
.lbp-badge-paid      { background: #e8f5e9; color: #2e7d32; }
.lbp-badge-pending   { background: #fff3e0; color: #e65100; }
.lbp-badge-overdue   { background: #ffebee; color: #c62828; }
.lbp-badge-partial   { background: #e3f2fd; color: #1565c0; }

/* Mobile responsive */
@media (max-width: 600px) {
    .lbp-form-wrap { padding: 25px; }
    .lbp-field-row { grid-template-columns: 1fr; }
    .lbp-portal-header { flex-direction: column; text-align: center; }
}
