/* =============================================
   KSKB Sollicitatiewebsite - Custom Styles
   Kleuren gebaseerd op KSKB logo:
   - Donkergroen: #007A53
   - Lichtblauw:  #6FC0E3
   - Lichtgroen:  #C5D86D
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px !important;
}

body {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    min-height: 100vh;
    background-color: #ffffff;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: #333 !important;
}

/* =============================================
   Bootstrap 3 neutralizer
   Resets element-level Bootstrap overrides so
   profiel.php renders identically to pages
   without Bootstrap.
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif !important;
    font-weight: inherit !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
}

h1 { font-size: inherit !important; }
h2 { font-size: inherit !important; }
h3 { font-size: inherit !important; }
h4 { font-size: inherit !important; }

p {
    margin: 0 !important;
}

a {
    color: inherit !important;
    text-decoration: none !important;
}

a:hover, a:focus {
    color: inherit !important;
    text-decoration: none !important;
    outline: none !important;
}

label {
    font-weight: inherit !important;
    margin-bottom: 0 !important;
    max-width: none !important;
}

img {
    vertical-align: baseline !important;
    border: none !important;
}

button, input, select, textarea {
    font-family: 'Inter', sans-serif !important;
}

/* =============================================
   Site Header - Bootstrap-proof (!important)
   ============================================= */
.site-header {
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    width: 100% !important;
}

.site-header-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 70px !important;
}

.site-header-logo {
    display: inline-block !important;
    line-height: 0 !important;
}

.site-header-logo img {
    height: 48px !important;
    border: none !important;
    max-width: none !important;
}

.site-header-nav {
    display: flex !important;
    align-items: center !important;
    gap: 32px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    float: none !important;
}

.site-header-nav a {
    color: #2d3748 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: color 0.2s;
    position: relative !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    line-height: 1.5 !important;
}

.site-header-nav a:hover,
.site-header-nav a:focus {
    color: #007A53 !important;
    text-decoration: none !important;
    background: none !important;
    outline: none !important;
}

.site-header-nav a::after {
    content: '' !important;
    position: absolute !important;
    bottom: -4px !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: #007A53 !important;
    transition: width 0.2s;
}

.site-header-nav a:hover::after {
    width: 100% !important;
}

.site-header-toggle {
    display: none !important;
    background: none !important;
    border: none !important;
    font-size: 1.4rem !important;
    color: #2d3748 !important;
    cursor: pointer !important;
    padding: 8px !important;
    margin: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

/* =============================================
   Page Banner - Bootstrap-proof (!important)
   ============================================= */
.page-banner {
    background: #e8edf2 !important;
    padding: 32px 24px !important;
    margin: 0 !important;
    border: none !important;
    width: 100% !important;
}

.page-banner-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.page-banner h1 {
    color: #1a202c !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
    border: none !important;
    font-family: 'Inter', sans-serif !important;
}

.page-banner .breadcrumb {
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.85rem !important;
    background: none !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    line-height: 1.5 !important;
}

.page-banner .breadcrumb a {
    color: #007A53 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    padding: 0 !important;
    background: none !important;
}

.page-banner .breadcrumb a:hover,
.page-banner .breadcrumb a:focus {
    color: #005F3D !important;
    text-decoration: underline !important;
    background: none !important;
}

.page-banner .breadcrumb .separator {
    color: #9ca3af !important;
}

.page-banner .breadcrumb .current {
    color: #6b7280 !important;
}

/* =============================================
   Site Content Wrapper
   ============================================= */
.site-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 24px 40px;
}

.body-bg-kskb {
    background-image: url('../img/backgroundkskb2.png') !important;
    background-repeat: no-repeat !important;
    background-position: top left !important;
    background-size: auto 100vh !important;
    background-attachment: fixed !important;
}

/* =============================================
   Site Footer - Bootstrap-proof (!important)
   ============================================= */
.site-footer {
    background: #f8f9fa !important;
    border-top: 1px solid #e5e7eb !important;
    margin-top: auto !important;
    padding: 0 !important;
    width: 100% !important;
}

.site-footer-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 24px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 40px !important;
}

.site-footer-col {
    display: flex !important;
    flex-direction: column !important;
}

.site-footer-logo {
    height: 40px !important;
    width: auto !important;
    object-fit: contain !important;
    align-self: flex-start !important;
    margin-bottom: 10px !important;
    max-width: none !important;
}

.site-footer-name {
    font-weight: 600 !important;
    color: #1a202c !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.site-footer-col h4 {
    color: #1a202c !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.3 !important;
    font-family: 'Inter', sans-serif !important;
}

.site-footer-col p {
    color: #4a5568 !important;
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
    margin: 0 0 8px 0 !important;
}

.site-footer-col a {
    color: #007A53 !important;
    text-decoration: none !important;
}

.site-footer-col a:hover {
    text-decoration: underline !important;
    color: #005F3D !important;
}

.site-footer-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    margin-top: 12px !important;
    padding: 10px 20px !important;
    background: #2b6cb0 !important;
    color: white !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.2s;
    align-self: flex-start !important;
    border: none !important;
    box-shadow: none !important;
}

.site-footer-btn:hover,
.site-footer-btn:focus {
    background: #2c5282 !important;
    text-decoration: none !important;
    color: white !important;
}

.site-footer-copyright {
    background: #e2e8f0 !important;
    text-align: center !important;
    padding: 14px 24px !important;
    font-size: 0.8rem !important;
    color: #4a5568 !important;
    margin: 0 !important;
}

/* --- Page Header (logo + title) --- */
.page-header {
    text-align: left;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: none;
}

.page-header img {
    height: 60px;
}

.page-header-text {
    display: flex;
    flex-direction: column;
}

.page-header h1 {
    color: #007A53;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.page-header p {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0;
}

/* --- Container Widths --- */
.page-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.profile-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* --- Centered layout (login, register) --- */
.centered-layout .site-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* --- Cards --- */
.content-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    background: white;
    padding: 16px 24px;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.card-header h2 {
    color: #333;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
}

.card-header h2 i {
    color: #007A53;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* --- Form Elements --- */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 500 !important;
    color: #374151;
    margin-bottom: 8px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.form-group label i {
    margin-right: 8px;
    color: #007A53;
    width: 18px;
}

.form-control,
input.form-control,
select.form-control,
textarea.form-control {
    width: 100% !important;
    height: auto !important;
    padding: 6px 10px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-family: inherit;
    color: #333 !important;
    transition: all 0.2s;
    background: #f9fafb !important;
    box-shadow: none !important;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-color: #f9fafb !important;
    padding-right: 40px !important;
    cursor: pointer;
}

select.form-control.form-control-sm,
.form-control.form-control-sm {
    padding: 8px 12px !important;
    padding-right: 36px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.form-control:focus,
input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    outline: none;
    border-color: #007A53 !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(0, 122, 83, 0.1) !important;
}

.form-control::placeholder {
    color: #9ca3af;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

/* --- Checkbox Group --- */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-item:hover {
    border-color: #007A53;
    background: #f0faf5;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #007A53;
}

.checkbox-item label,
.checkbox-item span {
    margin: 0 !important;
    cursor: pointer;
    font-weight: 500 !important;
    color: #374151;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

/* --- Buttons --- */
.btn-save {
    background: linear-gradient(135deg, #007A53 0%, #005F3D 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 83, 0.4);
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #007A53 0%, #005F3D 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 25px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 83, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: #007A53;
    border: 2px solid #007A53;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #007A53;
    color: white;
    text-decoration: none;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
}

/* --- OAuth Buttons --- */
.oauth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    gap: 15px;
}

.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.oauth-divider span {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
    margin-bottom: 10px;
}

.btn-oauth:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-oauth:active {
    transform: translateY(0);
}

.btn-oauth img,
.btn-oauth svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-google:hover {
    border-color: #ea4335;
    background: #fef2f2;
}

.btn-microsoft:hover {
    border-color: #0078d4;
    background: #f0f9ff;
}

/* --- Alerts --- */
.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    color: #065f46;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    color: #991b1b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

/* --- Info Box --- */
.info-box {
    background: #f0faf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-box h4 {
    color: #065f46;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
}

.info-box ul li {
    color: #047857;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* --- Privacy Note --- */
.privacy-note {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 5px;
}

.privacy-note p {
    color: #065f46;
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0;
}

.privacy-note a {
    color: #007A53;
    text-decoration: underline;
}

/* --- Intro Text --- */
.intro-text {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: center;
}

.intro-text strong {
    color: #333;
}

/* --- SSO Section --- */
.sso-section {
    margin-bottom: 25px;
}

/* --- Login Links --- */
.login-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.login-link:hover {
    color: #007A53;
}

.login-link i {
    width: 20px;
    text-align: center;
}

/* --- Back Link --- */
.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #007A53;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.back-link a:hover {
    color: #005F3D;
}

/* --- Document List --- */
.document-list {
    list-style: none;
    padding: 0;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-bottom: 10px;
}

.document-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.document-item-info i {
    color: #007A53;
    font-size: 1.1rem;
}

.document-item-name {
    font-weight: 500;
    color: #374151;
    font-size: 1rem;
}

.document-item-meta {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* --- Upload Zone (Drag & Drop) --- */
.upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 35px 20px;
    text-align: center;
    transition: all 0.25s ease;
    background: #f9fafb;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: #007A53;
    background: #f0faf5;
}

.upload-zone.drag-over {
    border-color: #007A53;
    background: #ecfdf5;
    box-shadow: 0 0 0 4px rgba(0, 122, 83, 0.1);
}

.upload-zone-icon {
    margin-bottom: 10px;
}

.upload-zone-icon i {
    font-size: 2.2rem;
    color: #007A53;
    opacity: 0.6;
}

.upload-zone.drag-over .upload-zone-icon i {
    opacity: 1;
}

.upload-zone-text {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 6px;
}

.upload-zone-text a {
    color: #007A53;
    font-weight: 600;
    text-decoration: underline;
}

.upload-zone-text a:hover {
    color: #005F3D;
}

.upload-zone small {
    color: #9ca3af;
    display: block;
    font-size: 0.8rem;
}

.upload-zone-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 5px;
}

.upload-zone-preview i:first-child {
    font-size: 1.2rem;
    color: #007A53;
}

.upload-zone-preview span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
}

.upload-zone-preview a {
    color: #9ca3af;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.upload-zone-preview a:hover {
    color: #ef4444;
}

/* --- Landing Page Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item i {
    font-size: 1.6rem;
    color: #6FC0E3;
    margin-bottom: 12px;
}

.feature-item h4 {
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-item p {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* --- Landing page hero --- */
.hero-section {
    text-align: center;
    padding: 40px 20px;
}

.hero-section h1,
.hero-section h2.hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #007A53;
}

.hero-section p {
    font-size: 1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #007A53 0%, #005F3D 100%);
    color: white;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 83, 0.4);
}

.btn-hero-secondary {
    background: #f9fafb;
    color: #007A53;
    border: 2px solid #007A53;
}

.btn-hero-secondary:hover {
    background: #007A53;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 83, 0.3);
}

/* --- Onderwijsniveau blokken --- */
.niveau-blok {
    margin-bottom: 20px;
}

.niveau-blok:last-child {
    margin-bottom: 0;
}

.niveau-toggle {
    font-size: 1rem;
    padding: 14px 18px;
    border-width: 2px;
}

.niveau-toggle.active {
    border-color: #007A53;
    background: #ecfdf5;
}

.niveau-toggle label {
    font-size: 1rem;
    font-weight: 600;
}

.niveau-scholen-wrap {
    margin-top: 15px;
    padding: 0 5px;
}

.selecteer-alle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #007A53;
    background: white;
    border: 2px solid #007A53;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.selecteer-alle-btn:hover {
    background: #007A53;
    color: white;
}

.selecteer-alle-btn.alle-geselecteerd {
    background: #007A53;
    color: white;
}

.niveau-scholen {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

/* --- Schoolcode groepering --- */
.schoolcode-groep {
    display: contents;
}

.schoolcode-label {
    display: none;
}

/* --- School keuzemenu met logo's --- */
.school-groep-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 15px;
}

.school-groep-label i {
    color: #007A53;
    font-size: 1rem;
}

.school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.school-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.school-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.school-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.25s ease;
    position: relative;
}

.school-card:hover .school-card-inner {
    border-color: #6FC0E3;
    background: #f0faf5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 83, 0.1);
}

.school-card.selected .school-card-inner {
    border-color: #007A53;
    background: #ecfdf5;
    box-shadow: 0 4px 15px rgba(0, 122, 83, 0.15);
}

.school-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 6px;
    border-radius: 6px;
}

.school-logo-placeholder {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    border-radius: 6px;
    margin-bottom: 6px;
    color: #9ca3af;
    font-size: 1.2rem;
}

.school-naam {
    font-weight: 500;
    font-size: 0.75rem;
    color: #374151;
    line-height: 1.2;
}

.school-check {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #d1d5db;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.school-card.selected .school-check {
    color: #007A53;
}

/* --- Beschikbare dagen (compacte toggles) --- */
.dagen-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dag-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;
}

.dag-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.dag-toggle span {
    display: inline-block;
    padding: 8px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    user-select: none;
}

.dag-toggle:hover span {
    border-color: #007A53;
    color: #374151;
}

.dag-toggle.active span,
.dag-toggle input:checked + span {
    background: #ecfdf5;
    border-color: #007A53;
    color: #007A53;
    font-weight: 600;
}

/* --- Profiel verwijderen --- */
.btn-delete-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #9ca3af;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete-profile:hover {
    color: #ef4444;
    border-color: #ef4444;
    background: #fef2f2;
}

/* --- Referentie sectie --- */
.referentie-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 15px;
}

.referentie-card .form-row {
    margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .site-header-toggle {
        display: block !important;
    }

    .site-header-nav {
        display: none !important;
        position: absolute !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        flex-direction: column !important;
        padding: 16px 24px !important;
        gap: 0 !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    }

    .site-header-nav.open {
        display: flex !important;
    }

    .site-header-nav a {
        padding: 12px 0 !important;
        border-bottom: 1px solid #f3f4f6 !important;
    }

    .site-header-nav a:last-child {
        border-bottom: none !important;
    }

    .site-header-nav a::after {
        display: none !important;
    }

    .page-banner h1 {
        font-size: 1.5rem !important;
    }

    .site-footer-inner {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row .form-group {
        min-width: 100%;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .niveau-scholen,
    .school-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .site-header-inner {
        padding: 0 16px !important;
        height: 60px !important;
    }

    .site-header-logo img {
        height: 36px !important;
    }

    .site-header-nav {
        top: 60px !important;
    }

    .page-banner {
        padding: 24px 16px !important;
    }

    .page-banner h1 {
        font-size: 1.3rem !important;
    }

    .site-content {
        padding: 20px 16px 30px;
    }

    .card-body {
        padding: 16px 12px;
    }

    .card-footer {
        padding: 12px;
    }

    .page-header img {
        height: 45px;
    }

    .page-header h1 {
        font-size: 1.1rem;
    }

    .niveau-scholen,
    .school-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .school-card-inner {
        padding: 8px 5px;
    }

    .school-logo {
        width: 35px;
        height: 35px;
    }

    .school-logo-placeholder {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .school-naam {
        font-size: 0.7rem;
    }

    .school-check {
        font-size: 0.8rem;
        top: 3px;
        right: 3px;
    }

    .site-footer-inner {
        padding: 24px 16px;
    }
}
