.pupil_field,
.teacher_field,
.schoolmanager_field,
.bulk_field {
    margin-top: 10px;
}

.teacher_field,
.schoolmanager_field {
    margin-bottom: 5px;
}

.bulk_field {
    margin-top: 2px;
    margin-bottom: 10px;
}

.pupil_submit,
.teacher_submit,
.schoolmanager_submit,
.bulk_submit {
    color: white !important;
    margin-top: 20px !important;
}

.form-success {
    margin-top: 10px;
    font-size: 20px;
    color: green;
}

.form-error {
    margin-top: 10px;
    font-size: 20px;
    color: red;
}

label {
    font-weight: bold;
}

.helpertext {
    font-size: 12px;
}

.noticetext {
    font-size: 11px;
    font-style: italic;
}

.linktext {
    color: orange;
}

.bulk_label {
    margin-top: 10px;
}
.column-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid darkgray;
    border-radius: 10px;
    padding: 15px;
    transition: box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

.column-content:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.svg-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.column-content:hover .svg-icon {
    filter: brightness(0) saturate(100%) invert(22%) sepia(82%) saturate(6078%) hue-rotate(14deg) brightness(98%) contrast(106%);
}

.col {
    cursor: pointer;
}
.col[data-toggle="modal"] {
    transition: background-color 0.3s;
}
.col[data-toggle="modal"]:hover {
    background-color: rgba(0, 0, 0, 0.05); /* A slight hover effect */
}

#create-class-modal { z-index:9999;}

/* Registration forms inside modals: 2-column grid, left labels / right inputs */
.ck-form-grid label { display: inline-block; min-width: 200px; font-weight: 600; margin-right: 10px; }
.ck-form-grid input[type="text"],
.ck-form-grid input[type="email"],
.ck-form-grid input[type="password"],
.ck-form-grid select { width: 100%; max-width: 380px; }
.ck-form-grid .helpertext { font-size: 12px; color: #666; margin: 6px 0 12px; }
.ck-form-grid .ck-form-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ck-form-grid .ck-form-row > label { flex: 0 0 220px; }
.ck-form-grid .ck-form-row > input,
.ck-form-grid .ck-form-row > select { flex: 1 1 auto; }
.ck-form-grid .ck-form-row > input[type="number"] { max-width: 220px; }
.ck-form-grid .ck-form-actions { margin-top: 16px; }

/* Alert styles for success/error messages */
.alert { padding: 8px 10px; border-radius: 4px; margin: 8px 0 12px; }
.alert-success { background: #e6f4ea; color: #1e7e34; border: 1px solid #b7e1c3; }
.alert-danger { background: #fde8e8; color: #842029; border: 1px solid #f5c2c7; }

/* Collapsible help blocks */
.ck-help { margin: 6px 0 12px; }
.ck-help > summary { cursor: pointer; color: #0073aa; }
.ck-help-text { padding: 8px 10px; background: #f8f9fa; border: 1px solid #e6e6e6; border-radius: 4px; margin-top: 6px; font-size: 12px; color: #444; }

/* Minimal utilities to replace Bootstrap bits used here */
.d-none { display: none !important; }

/* Lightweight modal styles if ck-modal CSS is not present on page */
.ck-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; }
.ck-modal-content { background: #fff; border-radius: 8px; padding: 16px; width: 760px; max-width: 96vw; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.ck-modal-close { position: absolute; right: 10px; top: 8px; cursor: pointer; font-size: 22px; color: #666; }
.ck-modal-close:hover { color: #111; }

/* Button shim if Bootstrap classes are still present in this view */
.btn { border: 1px solid #ccc; background: #fafafa; padding: 6px 10px; border-radius: 4px; cursor: pointer; display: inline-block; }
.btn-primary { background: #0073aa; border-color: #0073aa; color: #fff; }
.btn-secondary { background: #efefef; color: #111; }
.btn-danger { background: #d63638; border-color: #d63638; color: #fff; }

/* Simple table shim */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 8px; border-bottom: 1px solid #e6e6e6; text-align: left; }
.table-striped tbody tr:nth-child(even) { background: #f8f9fa; }
.table-responsive { overflow-x: auto; }

/* registrationColumns grid + utility shims */
.ck-registration-columns .container-fluid { width: 100%; padding-left: 15px; padding-right: 15px; }
.ck-registration-columns .row { display: flex; flex-wrap: wrap; margin-left: -15px; margin-right: -15px; }
.ck-registration-columns .row > div { padding-left: 15px; padding-right: 15px; box-sizing: border-box; }
.ck-registration-columns .row > [class*="col-"] { flex: 0 0 auto; }
.ck-registration-columns .col-12 { flex-basis: 100%; max-width: 100%; width: 100%; }
@media (min-width: 768px) {
	.ck-registration-columns .col-md-6 { flex-basis: 50%; max-width: 50%; width: 50%; }
}
@media (min-width: 992px) {
	.ck-registration-columns .col-lg-3 { flex-basis: 25%; max-width: 25%; width: 25%; }
}
.ck-registration-columns .h-100 { height: 100%; }
.ck-registration-columns .mb-3 { margin-bottom: 1rem; }
.ck-registration-columns .mb-2 { margin-bottom: .5rem; }
.ck-registration-columns .p-3 { padding: 1rem; }
.ck-registration-columns .text-center { text-align: center; }
.ck-registration-columns .small { font-size: 0.875rem; }
.ck-registration-columns .text-muted { color: #6c757d; }
.ck-registration-columns .ck-reg-card-content { padding: 1rem; }