/* Overall admin layout */
.admin-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f3f4f7;
    font-family: Arial, sans-serif;
}

/* Top bar */
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111827;
    color: #fff;
    padding: 12px 24px;
}

.admin-logo {
    font-size: 22px;
    font-weight: bold;
}

.admin-topbar-right {
    font-size: 14px;
}

.admin-my-account {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 16px;
    background: #1f2937;
}

/* Main layout */
.admin-main {
    flex: 1;
    display: flex;
    min-height: 0;
}

/* Sidebar */
.admin-sidebar {
    width: 220px;
    background: #1f2937;
    color: #e5e7eb;
    padding-top: 20px;
    flex-shrink: 0;
}

.admin-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-sidebar li {
    margin-bottom: 4px;
}

.admin-sidebar a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: #e5e7eb;
    font-size: 15px;
}

.admin-sidebar li.active a,
.admin-sidebar a:hover {
    background: #374151;
}

/* Content area */
.admin-content {
    flex: 1;
    padding: 24px;
    overflow-x: auto;
}

/* Page header row (title + Add button) */
/* Page header */
.admin-page-header {
    margin-bottom: 18px;
}

.admin-page-header h1 {
    margin: 0;
    font-size: 24px;
    color: #111827;
}

/* Primary button (Add Student) */
.btn-primary {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* Card container */
.admin-card {
    background: #fff;
    border-radius: 6px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
    
    /* Action buttons area */
.admin-action-buttons {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
}


/* Button Colors */
/* Base button style */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

/* Primary (blue) button */
.btn-primary {
    background: #2563eb;
    color: #ffffff !important;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* Specific colors */
.btn-blue {
    background: #2563eb;
    color: #ffffff;
}

.btn-blue:hover {
    background: #1d4ed8;
}

.btn-purple {
    background: #7c3aed;
    color: #ffffff;
}

.btn-purple:hover {
    background: #6d28d9;
}

.btn-orange {
    background: #ea580c;
    color: #ffffff;
}

.btn-orange:hover {
    background: #c2410c;
}

.btn-lightgreen {
    background: #34d399;   /* Tailwind “emerald-400” */
    color: #ffffff;
}

.btn-lightgreen:hover {
    background: #10b981;   /* emerald-500 */
}
.btn-lightblue {
    background: #60a5fa;   /* Tailwind “blue-400” */
    color: #ffffff;
}

.btn-lightblue:hover {
    background: #3b82f6;   /* blue-500 */
}

.btn-teal {
    background: #0d9488;   /* Tailwind “teal - 600” */
    color: #ffffff;
}

.btn-teal:hover {
    background: #0f766e;   /* teal -700 */
}

/* =========================
   Admin Button: Gold (Spotlight)
   ========================= */
.btn-gold {
    background-color: #d4a017;   /* rich gold */
    color: #ffffff;
    border: 1px solid #c29115;
}

.btn-gold:hover {
    background-color: #b88a14;
    color: #ffffff;
    border-color: #a97f13;
}

.btn-gold:active {
    background-color: #a97f13;
    border-color: #8f6b10;
}

.btn-indigo {
    background-color: #4338ca;   /* indigo-700 */
    color: #ffffff;
}

.btn-indigo:hover {
    background-color: #3730a3;   /* indigo-800 */
}

.btn-crimson {
    background-color: #b91c1c;   /* red-700 */
    color: #ffffff;
}

.btn-crimson:hover {
    background-color: #991b1b;   /* red-800 */
}


/* Action buttons container */
.admin-action-buttons {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
}



/* Action buttons container */
.admin-action-buttons {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
}

/* Table container (clean layout) */
.admin-table-container {
    background: #fff;
    padding: 16px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);

}

/* Form styling */
.admin-form {
    max-width: 500px;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-form label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.admin-form input {
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.admin-form input:focus {
    outline: none;
    border-color: #2563eb;
}

/* Secondary (gray) button */
.btn-secondary {
    display: inline-block;
    background: #6b7280;
    color: #fff !important;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #4b5563;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.admin-form select {
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    background: #e5e7eb;
    padding: 10px;
    text-align: left;
}

.admin-table td {
    padding: 10px;
    border-bottom: 1px solid #f3f4f6;
}

/* Action Button */
.actions {
    display: flex;
    gap: 6px;
}

.action-btn {
    padding: 4px 8px;
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
    color: #ffffff;
}

.action-btn.view    { background: #2563eb; }
.action-btn.edit    { background: #059669; }
.action-btn.lessons { background: #7c3aed; }
.action-btn.tuition { background: #ea580c; }
.action-btn.delete  { background: #dc2626; }

.action-btn:hover {
    opacity: 0.85;
}

/* Pagination Styling */
.pagination {
    margin-top: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.pagination a {
    background: #2563eb;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
}

.pagination span {
    font-size: 14px;
}
/* Row-per-page-selector */
.rows-selector {
    margin-bottom: 12px;
}

.rows-selector select {
    padding: 6px;
    border-radius: 4px;
}

/* Tuition Import Page */
.import-instructions {
    background: #f9fafb;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.import-instructions p {
    margin: 0 0 8px 0;
    font-size: 15px;
}

.import-instructions ul {
    margin: 0;
    padding-left: 20px;
}

.import-instructions li {
    font-size: 14px;
    margin-bottom: 4px;
}

/* Upload form container */
.import-form-container {
    max-width: 500px;
    padding: 20px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.import-form label {
    font-weight: 600;
    margin-top: 12px;
    display: block;
}

.import-form input[type="file"] {
    margin-top: 6px;
    margin-bottom: 12px;
}

.import-form button {
    margin-top: 10px;
}

table.admin-table select {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

table.admin-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.tuition-filter-form {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.tuition-filter-form select,
.tuition-filter-form input {
    padding: 6px 8px;
    margin-right: 10px;
}

.tuition-summary {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.summary-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    width: 200px;
    text-align: center;
}

.summary-value {
    font-size: 20px;
    font-weight: bold;
    margin-top: 5px;
}

/* Container */
/* Container */
.admin-topbar-right {
    position: relative;
    float: right;
    margin-right: 20px;
}

/* Label button */
.account-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    background: #1e293b;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.account-label:hover {
    background: #334155;
}

/* Dropdown */
.account-dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    right: 0;
    top: 36px;
    min-width: 180px;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0px 3px 8px rgba(0,0,0,0.18);
    z-index: 999;
}

.account-dropdown a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #000;
    font-size: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.account-dropdown a:hover {
    background: #f1f5f9;
}

/* When active, show dropdown */
.account-menu.active .account-dropdown {
    display: block;
}

/* My Account Dropdown */
.account-menu {
    position: relative;
    display: inline-block;
}

.account-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    padding: 6px 10px;
    background: #1e293b;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}

.account-dropdown {
    display: none !important; /* hidden by default */
    position: absolute;
    right: 0;
    top: 32px;
    background: #ffffff;
    min-width: 180px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    padding: 6px 0;
    z-index: 1000;
}

.account-menu.active .account-dropdown {
    display: block !important; /* shows only when clicked */
}

.account-dropdown a {
    display: block;
    padding: 10px 14px;
    color: #0f172a;
    text-decoration: none;
    font-size: 15px;
}

.account-dropdown a:hover {
    background: #f1f5f9;
}

.time-picker select {
    width: 80px;
    margin-right: 10px;
}

/* ----- Modern Multi-Select Dropdown Styling ----- */
.multi-select-container {
    width: 260px;
    position: relative;
    font-family: inherit;
}

.multi-select-display {
    border: 1px solid #ccc;
    padding: 8px;
    cursor: pointer;
    background: #fff;
    border-radius: 6px;
}

.multi-select-options {
    position: absolute;
    top: 105%;
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ccc;
    background: white;
    z-index: 999;
    display: none;
    border-radius: 6px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
}

.multi-select-options label {
    display: block;
    padding: 6px 10px;
    cursor: pointer;
}

.multi-select-options label:hover {
    background: #eef2ff;
}

.multi-select-options input[type="checkbox"] {
    margin-right: 6px;
}

.lesson-notes-textarea {
    font-family: inherit;
    font-size: 14px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    resize: vertical;
}

/* Quill Editor Appearance */
.quill-editor {
    height: 220px !important; /* Increased height for comfortable writing */
    max-height: 220px;
    overflow-y: auto;         /* Scrollbar appears when content exceeds height */
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px;
}

.quill-container {
    margin-bottom: 20px;
}

.quill-editor {
    height: 220px !important;
    max-height: 220px;
    overflow-y: hidden; /* hide scroll on wrapper */
}

.ql-editor {
    max-height: 200px;
    overflow-y: auto; /* scroll inside text area */
}

/* Default editor height */
.quill-editor {
    height: 220px !important;
    overflow: hidden;
    transition: height 0.25s ease;
}

/* Expand height when focused */
.quill-editor:focus-within {
    height: 350px !important; /* adjust to your liking */
}

/* Scroll inside editor content */
.ql-editor {
    max-height: 320px;
    overflow-y: auto;
}

.quill-editor {
    transition: height 0.25s ease, box-shadow 0.25s ease;
}

.quill-editor:focus-within {
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.5); /* subtle focus glow */
}




/* Lesson Notes Table Column Widths */
.admin-table.lesson-table col:nth-child(1) {
    width: 10%;
}
.admin-table.lesson-table col:nth-child(2) {
    width: 20%;
}
.admin-table.lesson-table col:nth-child(3) {
    width: 40%;
}
.admin-table.lesson-table col:nth-child(4) {
    width: 30%;
}

/* ================== ADMIN ALERTS ================== */
.admin-alert {
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.admin-alert.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #34d399;
}

.admin-alert.warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #facc15;
}

.admin-alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.table-top-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
    font-size: 14px;
}

.table-top-pagination a {
    text-decoration: none;
    color: #2563eb;
}

.table-top-pagination a:hover {
    text-decoration: underline;
}













