/* Ecube Admin — overrides on Edudash */

/* ============================================
   TEACHER LIST TABLE (Edudash reference)
   ============================================ */

.ecube-teacher-table-wrap .ecube-table-toolbar .navbar-search {
    display: inline-block !important;
}

.ecube-teacher-table-wrap .ecube-table-toolbar .dt-search .dt-input {
    width: 16rem;
    min-width: 12rem;
    height: 2.5rem;
    background-color: var(--neutral-50, #f9fafb);
    border: 1px solid var(--input-form-light, #e5e7eb);
    border-radius: 0.5rem;
    padding: 0.3125rem 1.25rem 0.3125rem 2.625rem;
    color: var(--text-primary-light, #111827);
    font-size: 0.875rem;
}

.ecube-teacher-table-wrap .ecube-table-toolbar .dt-search .dt-input:focus {
    border-color: var(--primary-600, #25a194);
    outline: none;
    box-shadow: none;
}

.ecube-teacher-table-wrap .ecube-table-toolbar .dt-length .form-select {
    min-width: 4.5rem;
    height: 2.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 0.375rem 2rem 0.375rem 0.75rem;
}

.ecube-teacher-table-wrap table.data-table {
    border-collapse: separate;
    border-spacing: 0;
}

.ecube-teacher-table-wrap .bordered-table {
    border: 1px solid var(--neutral-200, #e5e7eb);
    border-radius: 8px;
    min-width: max-content;
}

.ecube-teacher-table-wrap .bordered-table thead tr th {
    background-color: var(--neutral-50, #f9fafb) !important;
    border-bottom: 1px solid var(--neutral-200, #e5e7eb) !important;
    color: var(--text-primary-light, #111827) !important;
    padding: 16px !important;
    font-size: 1rem;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
}

.ecube-teacher-table-wrap .bordered-table thead tr th:not(:last-child) {
    border-inline-end: 0 !important;
}

.ecube-teacher-table-wrap .bordered-table tbody tr td {
    color: var(--text-secondary-light, #6b7280);
    padding: 16px !important;
    border-bottom: 1px solid var(--neutral-200, #e5e7eb);
    background-color: var(--white, #fff);
    vertical-align: middle;
}

.ecube-teacher-table-wrap .bordered-table tbody tr:last-child td {
    border-bottom: 0;
}

.ecube-teacher-table-wrap .text-id-link {
    color: var(--primary-600, #25a194);
    font-weight: 500;
}

.ecube-teacher-table-wrap .form-check.style-check .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0;
    cursor: pointer;
}

.ecube-teacher-table-wrap .form-check.style-check .form-check-label {
    font-size: 0.875rem;
    color: var(--text-secondary-light);
    padding-left: 6px;
    cursor: pointer;
}

.ecube-teacher-table-wrap .dt-container {
    padding: 0;
}

.ecube-teacher-table-wrap .dt-container .dt-layout-row {
    padding: 12px 20px;
    border-top: 1px solid var(--neutral-200, #e5e7eb);
}

.ecube-teacher-table-wrap[data-server-paginated="1"] .dt-container .dt-layout-row {
    display: none !important;
}

.ecube-pagination .page-link {
    border: 1px solid var(--neutral-200, #e5e7eb);
    color: var(--text-secondary-light);
    padding: 0.375rem 0.75rem;
    margin-left: 4px;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.25;
}

.ecube-pagination .page-item.active .page-link {
    background-color: var(--primary-600, #25a194);
    border-color: var(--primary-600, #25a194);
    color: #fff;
}

.ecube-pagination .page-item.disabled .page-link {
    opacity: 0.5;
}

.ecube-laravel-pagination {
    background: var(--white, #fff);
}

.ecube-detail-table-card .ecube-styled-table-wrap,
.ecube-styled-table-wrap {
    border-radius: 0 0 12px 12px;
}

.ecube-styled-table-wrap .bordered-table,
.ecube-detail-table-card .bordered-table {
    border: none;
    border-radius: 0;
}

.ecube-styled-table-wrap .bordered-table thead tr th,
.ecube-detail-table-card .bordered-table thead tr th {
    background-color: var(--neutral-50, #f9fafb) !important;
    border-bottom: 1px solid var(--neutral-200, #e5e7eb) !important;
    color: var(--text-primary-light, #111827) !important;
    padding: 16px !important;
    font-size: 1rem;
    font-weight: 600;
}

.ecube-styled-table-wrap .bordered-table tbody tr td,
.ecube-detail-table-card .bordered-table tbody tr td {
    color: var(--text-secondary-light, #6b7280);
    padding: 16px !important;
    border-bottom: 1px solid var(--neutral-200, #e5e7eb);
    vertical-align: middle;
}

.ecube-styled-table-wrap .dt-empty,
.ecube-teacher-table-wrap .dt-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary-light, #6b7280);
}

/* Legacy action pills (detail pages) */
.ecube-action-edit {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50rem;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--primary-50, #e6f7f5);
    color: var(--primary-600);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ecube-action-edit:hover {
    background: var(--primary-600);
    color: #fff;
}

/* ============================================
   EDUDASH FORM STYLING (Add New Teacher)
   ============================================ */

.ecube-edudash-form .form-control,
.ecube-edudash-form .form-select {
    min-height: 44px;
    border-radius: 8px;
    border-color: var(--neutral-300, #d1d5db);
    font-size: 0.875rem;
    color: var(--text-primary-light, #111827);
    padding: 10px 14px;
}

.ecube-edudash-form .form-control::placeholder {
    color: var(--neutral-400, #9ca3af);
}

.ecube-edudash-form .form-control:focus,
.ecube-edudash-form .form-select:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(37, 161, 148, 0.12);
}

.ecube-edudash-form textarea.form-control {
    min-height: 88px;
    resize: vertical;
}

.ecube-edudash-form .form-select {
    padding-right: 2.25rem;
    background-position: right 0.75rem center;
}

.ecube-edudash-form label.text-sm {
    line-height: 1.4;
}

.ecube-edudash-form .is-invalid,
.ecube-edudash-form .border-danger {
    border-color: #dc2626 !important;
}

.ecube-edudash-form .invalid-feedback,
.ecube-edudash-form small.text-danger-600 {
    color: #dc2626;
    font-size: 0.8125rem;
    margin-top: 4px;
    display: block;
}

.ecube-edudash-form .form-check.style-check .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0;
}

.ecube-edudash-form .form-check.style-check .form-check-label {
    font-size: 0.875rem;
    color: var(--text-secondary-light);
    padding-left: 4px;
}

.ecube-edudash-form .col-full {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Field column default */
.ecube-field {
    /* wrapper inside col */
}

/* Legacy utility aliases */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-13 { font-size: 0.8125rem; }
.text-15 { font-size: 0.9375rem; }

.alert-ecube {
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: none;
}

.alert-ecube-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-ecube-success {
    background: #dcfce7;
    color: #166534;
}

/* ============================================
   DETAIL PAGES (Teacher Details layout)
   ============================================ */

.bordered-tab .nav-link.active {
    color: var(--primary-600, #25a194);
    border-bottom-color: var(--primary-600, #25a194);
}

.bordered-tab .nav-link {
    border-bottom: 2px solid transparent;
    border-radius: 0;
}

.detail-table-card .table.bordered-table thead th {
    background: var(--neutral-50, #f9fafb);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary-light, #6b7280);
    padding: 12px 20px;
    border-bottom: 1px solid var(--neutral-200, #e5e7eb);
}

.detail-table-card .table.bordered-table tbody td {
    padding: 14px 20px;
    vertical-align: middle;
}

.w-120-px { width: 120px; height: 120px; }
.w-110-px { width: 110px; }
.max-w-300-px { max-width: 300px; }

/* Icons8 */
.icons8-icon {
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    flex-shrink: 0;
}

.icons8-icon--hero {
    width: 72px;
    height: 72px;
}

.icons8-icon--tab {
    width: 24px;
    height: 24px;
}

.icons8-icon--btn {
    width: 18px;
    height: 18px;
}

.icons8-icon--inline {
    width: 20px;
    height: 20px;
}

.icons8-icon--empty {
    width: 48px;
    height: 48px;
    opacity: 0.55;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.icons8-icon--modal {
    width: 56px;
    height: 56px;
}

.bordered-tab .nav-link .icons8-icon--tab {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.bordered-tab .nav-link.active .icons8-icon--tab,
.bordered-tab .nav-link:hover .icons8-icon--tab {
    opacity: 1;
}
