/**
 * Frontend Styles for EduCore School Management.
 */

.educore-public-admission-wrap,
.educore-public-result-wrap,
.educore-public-attendance-wrap {
    background: #ffffff;
    border-radius: 16px;
    padding: 26px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin: 16px 0;
    box-sizing: border-box;
    font-family: inherit;
}

.educore-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 22px;
}

.educore-form-header h3 {
    margin: 0 0 6px 0;
    font-size: 22px;
    color: #1e3a8a;
    font-weight: 800;
}

.educore-form-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.educore-deadline-badge {
    font-size: 11px;
    padding: 6px 14px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 20px;
    font-weight: 700;
    border: 1px solid #fde68a;
    letter-spacing: 0.5px;
}

/* Photo Upload Box */
.educore-photo-upload-box {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 2px dashed #93c5fd;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.educore-photo-preview-wrap {
    width: 110px;
    height: 130px;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.educore-photo-preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.educore-photo-input-wrap {
    flex: 1;
    min-width: 240px;
}

.educore-photo-input-wrap label {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a8a;
    display: block;
    margin-bottom: 6px;
}

.educore-photo-input-wrap p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #64748b;
}

.educore-btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: #2563eb;
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s ease, transform 0.1s ease;
    border: none;
    user-select: none;
}

.educore-btn-upload:hover {
    background: #1d4ed8;
    color: #ffffff !important;
}

.educore-btn-remove {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.educore-btn-remove:hover {
    background: #fecaca;
}

/* Grid Form */
.educore-grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.educore-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #1e293b;
}

.educore-field .required {
    color: #ef4444;
}

.educore-input,
.educore-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    background: #ffffff;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s;
}

.educore-input:focus,
.educore-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.educore-submit-btn {
    padding: 14px 34px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.educore-submit-btn:hover {
    background: #1d4ed8;
}

.educore-pulse-dot {
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    animation: educorePulse 1.8s infinite;
}

@keyframes educorePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
