h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Upload CSV Dialog - Modal styling */
.upload-csv-dialog.rz-dialog {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.upload-csv-dialog .rz-dialog-titlebar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: none;
}

.upload-csv-dialog .rz-dialog-content {
    padding: 1.5rem;
    background: #fff;
}

/* ============================================= */
/* Seating Plan View Dialog - View Plan popup   */
/* ============================================= */

.seating-plan-view-dialog.rz-dialog {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.seating-plan-view-dialog .rz-dialog-titlebar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: none;
}
.seating-plan-view-dialog .rz-dialog-content {
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    max-height: calc(80vh - 52px);
    overflow-y: auto;
}

/* SeatingPlanView content (used in dialog and on /viewseatingplan) */
.seating-plan-view {
    padding: 0;
}
.seating-plan-view .view-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1rem;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f4f8 0%, #fff 100%);
    border-radius: 10px;
    border: 1px solid #e8ecf0;
}
.seating-plan-view .view-plan-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3c72;
    display: flex;
    align-items: center;
    gap: 10px;
}
.seating-plan-view .view-plan-header .view-plan-meta {
    font-size: 0.85rem;
    color: #5a6c7d;
    margin-top: 4px;
}
.seating-plan-view .view-plan-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.seating-plan-view .view-plan-toolbar .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.9rem;
}

.seating-plan-view .view-plan-grid-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: auto;
    padding: 16px;
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.seating-plan-view .seating-grid {
    border-collapse: separate;
    border-spacing: 8px;
    margin: 0 auto;
}
.seating-plan-view .seating-grid thead th {
    background: linear-gradient(180deg, #f1f5f9 0%, #e8ecf0 100%);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    color: #475569;
    border-radius: 6px;
    padding: 8px;
    border: 2px solid #e2e8f0;
}
.seating-plan-view .col-header-empty {
    width: 36px;
    min-width: 36px;
    background: transparent !important;
    border: none !important;
}
.seating-plan-view .col-header {
    width: 90px;
    min-width: 90px;
}
.seating-plan-view .seating-grid .row-label {
    background: linear-gradient(90deg, #f1f5f9 0%, #e8ecf0 100%);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px;
    width: 36px;
    min-width: 36px;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    color: #475569;
}
.seating-plan-view .seat-cell-view {
    width: 90px;
    min-width: 90px;
    min-height: 70px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.seating-plan-view .seat-content-view {
    text-align: center;
    font-size: 10px;
    width: 100%;
}
.seating-plan-view .seat-icon {
    font-size: 16px;
    font-weight: bold;
}
.seating-plan-view .student-name {
    font-weight: 600;
    font-size: 10px;
    margin-bottom: 2px;
    word-break: break-word;
    line-height: 1.2;
}
.seating-plan-view .student-roll,
.seating-plan-view .student-class {
    font-size: 9px;
    color: #6c757d;
    line-height: 1.2;
}
.seating-plan-view .seat-available {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}
.seating-plan-view .seat-blocked {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #dc3545;
}
.seating-plan-view .seat-empty {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-color: #adb5bd;
}
.seating-plan-view .seat-filled {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-color: #ffc107;
}
.seating-plan-view .seat-teacher {
    background: linear-gradient(135deg, #cfe2ff 0%, #b6d4fe 100%);
    border-color: #0d6efd;
}

.seating-plan-view .view-plan-legend {
    padding: 14px 18px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8ecf0;
}
.seating-plan-view .view-plan-legend h5 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e3c72;
}
.seating-plan-view .view-plan-legend .legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
}
.seating-plan-view .view-plan-legend .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #5a6c7d;
}
.seating-plan-view .view-plan-legend .legend-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid;
    flex-shrink: 0;
}

.seating-plan-view .view-plan-loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

@media print {
    .seating-plan-view { padding: 0; }
    .seating-plan-view .view-plan-header,
    .seating-plan-view .view-plan-legend { break-inside: avoid; }
    .seating-plan-view .view-plan-grid-container { border: none; padding: 0; }
    .seating-plan-view .seat-cell-view { page-break-inside: avoid; }
}

/* Upload CSV Dialog - Content (StudentlistCsvUploadDialog) */
.upload-dialog-content {
    display: flex; flex-direction: column; gap: 1rem; min-width: 100%;
}
.upload-zone {
    border: 2px dashed #3498db; border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4fd 100%);
    padding: 1.5rem; transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover {
    border-color: #2980b9;
    background: linear-gradient(135deg, #eef6ff 0%, #d6ebfd 100%);
}
.upload-zone-inner {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.5rem; cursor: pointer; min-height: 120px;
}
.upload-file-input {
    position: absolute; width: 0.1px; height: 0.1px; opacity: 0; overflow: hidden; z-index: -1;
}
.upload-icon { font-size: 2.5rem; color: #3498db; }
.upload-text { font-weight: 600; color: #2c3e50; font-size: 1rem; }
.upload-hint { font-size: 0.85rem; color: #7f8c8d; }
.upload-info {
    font-size: 0.9rem; 
    color: #555;
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    gap: 0.35rem;
}
.upload-info-label { font-weight: 600; color: #34495e; }
.upload-info code { background: #ecf0f1; padding: 0.2rem 0.5rem; border-radius: 6px; font-size: 0.85rem; }
.upload-info-note { font-size: 0.8rem; color: #95a5a6; }
.upload-status { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 8px; font-weight: 500; }
.upload-status.parsing { background: #fff3cd; color: #856404; }
.upload-status.importing { background: #d1ecf1; color: #0c5460; animation: upload-pulse 1.5s ease-in-out infinite; }
.upload-file-info {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem; background: #e8f5e9; border-radius: 10px; border-left: 4px solid #4caf50;
}
.upload-file-info .bi-file-earmark-spreadsheet { font-size: 1.75rem; color: #4caf50; }
.upload-file-name { font-weight: 600; color: #2e7d32; display: block; }
.upload-file-size { font-size: 0.85rem; color: #6c757d; }
.upload-stats { margin-left: auto; font-size: 0.9rem; color: #5a6268; }
.upload-errors {
    background: #fff8e1; border: 1px solid #ffc107; border-radius: 10px; padding: 1rem;
}
.upload-errors h6 { margin: 0 0 0.5rem 0; font-size: 0.95rem; color: #f57c00; display: flex; align-items: center; gap: 0.4rem; }
.upload-errors ul { margin: 0; padding-left: 1.2rem; font-size: 0.9rem; color: #5d4037; }
.upload-errors-more { display: block; margin-top: 0.5rem; font-size: 0.8rem; color: #8d6e63; }
.upload-preview {
    background: #fafafa; border-radius: 10px; padding: 1rem; border: 1px solid #e0e0e0;
}
.upload-preview h6 { margin: 0 0 0.75rem 0; font-size: 0.95rem; color: #37474f; display: flex; align-items: center; gap: 0.4rem; }
.upload-preview-grid { border-radius: 8px; overflow: hidden; }
.upload-footer {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 1rem; padding-top: 0.5rem; border-top: 1px solid #eee;
}
.upload-actions { display: flex; gap: 0.5rem; margin-left: auto; }
.upload-actions .btn { display: inline-flex; align-items: center; gap: 0.4rem; }
@keyframes upload-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

.seatingdesign-page .page-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.seatingdesign-page .page-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f0f4f8 0%, #fff 100%);
    border-bottom: 1px solid #e8ecf0;
}
.seatingdesign-page .page-card-title { display: flex; align-items: center; gap: 12px; }
.seatingdesign-page .page-card-title h3 { margin: 0; font-size: 1.1rem; font-weight: 600; color: #1e3c72; }
.seatingdesign-page .page-icon {
    font-size: 1.3rem; color: #3498db;
    background: rgba(52, 152, 219, 0.12);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
}
.seatingdesign-page .design-meta { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #5a6c7d; margin-top: 4px; }
.seatingdesign-page .design-meta .meta-item { display: inline-flex; align-items: center; gap: 5px; }
.seatingdesign-page .design-meta .meta-divider { color: #b0bcc8; }
.seatingdesign-page .action-btns { display: flex; gap: 8px; }
.seatingdesign-page .page-card-body { padding: 18px 20px; }

.seatingdesign-page .design-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; margin-bottom: 18px;
    background: #f8fafc; border-radius: 8px; border: 1px solid #e8ecf0;
}
.seatingdesign-page .toolbar-left { display: flex; align-items: center; gap: 12px; }
.seatingdesign-page .toolbar-label { font-size: 0.9rem; font-weight: 600; color: #374151; }
.seatingdesign-page .design-toolbar .btn { padding: 6px 14px; font-size: 0.85rem; }
.seatingdesign-page .toolbar-badge { font-size: 0.8rem; padding: 6px 12px; background: #e8ecf0; border-radius: 6px; color: #4b5563; margin-left: auto; }

.seatingdesign-page .seating-grid-container {
    display: flex; justify-content: center; align-items: flex-start;
    overflow: auto; padding: 16px;
    background: #fafbfc; border: 1px solid #e2e8f0; border-radius: 10px;
}
.seatingdesign-page .seating-grid { border-collapse: separate; border-spacing: 8px; margin: 0 auto; }
.seatingdesign-page .seating-grid thead th {
    background: linear-gradient(180deg, #f1f5f9 0%, #e8ecf0 100%);
    font-weight: 600; font-size: 0.9rem; text-align: center; color: #475569;
    border-radius: 6px; padding: 8px; border: 2px solid #e2e8f0;
}
.seatingdesign-page .col-header-empty { width: 36px; min-width: 36px; background: transparent !important; border: none !important; }
.seatingdesign-page .col-header { width: 56px; min-width: 56px; }
.seatingdesign-page .seating-grid .row-label {
    background: linear-gradient(90deg, #f1f5f9 0%, #e8ecf0 100%);
    text-align: center; font-weight: 600; font-size: 0.9rem; padding: 8px;
    width: 36px; min-width: 36px; border-radius: 6px; border: 2px solid #e2e8f0; color: #475569;
}

.seatingdesign-page .seat-cell {
    width: 56px; height: 56px; min-width: 56px; min-height: 56px;
    border: 2px solid #cbd5e1; border-radius: 8px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.seatingdesign-page .seat-cell:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); z-index: 10; }
.seatingdesign-page .seat-content { text-align: center; font-size: 12px; }
.seatingdesign-page .seat-icon { font-size: 18px; font-weight: bold; }

.seatingdesign-page .seat-available { background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); border-color: #28a745; }
.seatingdesign-page .seat-blocked { background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%); border-color: #dc3545; }
.seatingdesign-page .seat-empty { background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%); border-color: #adb5bd; }
.seatingdesign-page .seat-filled { background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%); border-color: #ffc107; }
.seatingdesign-page .seat-teacher { background: linear-gradient(135deg, #cfe2ff 0%, #b6d4fe 100%); border-color: #0d6efd; }
.seatingdesign-page .seat-selected { border-width: 3px; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); }

.seatingdesign-page .design-legend {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    flex: 1; padding: 0 16px;
    font-size: 0.85rem; color: #5a6c7d;
}
.seatingdesign-page .legend-item { display: inline-flex; align-items: center; gap: 8px; }
.seatingdesign-page .legend-box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid; }

.seatallocation-page .page-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.seatallocation-page .page-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f0f4f8 0%, #fff 100%);
    border-bottom: 1px solid #e8ecf0;
}
.seatallocation-page .page-card-title { display: flex; align-items: center; gap: 12px; }
.seatallocation-page .page-card-title h3 { margin: 0; font-size: 1.1rem; font-weight: 600; color: #1e3c72; }
.seatallocation-page .page-card-subtitle { display: block; font-size: 0.8rem; color: #6c757d; margin-top: 2px; }
.seatallocation-page .seatallocation-meta {
    display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #5a6c7d; margin-top: 4px;
}
.seatallocation-page .page-icon {
    font-size: 1.3rem; color: #3498db;
    background: rgba(52, 152, 219, 0.12);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
}
.seatallocation-page .action-btns { display: flex; gap: 8px; }
.seatallocation-page .page-card-body { padding: 18px 20px; }

.seatallocation-page .seatallocation-alert {
    padding: 14px 18px; margin-bottom: 16px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 1px solid #ffc107; border-radius: 8px; font-size: 0.9rem; color: #856404;
}
.seatallocation-page .seatallocation-alert strong { display: block; margin-bottom: 4px; }
.seatallocation-page .seatallocation-alert span { color: #6c757d; }

.seatallocation-page .seating-grid-container {
    display: flex; justify-content: center; align-items: flex-start;
    overflow: auto; padding: 16px;
    background: #fafbfc; border: 1px solid #e2e8f0; border-radius: 10px;
}
.seatallocation-page .seating-grid { border-collapse: separate; border-spacing: 8px; margin: 0 auto; }
.seatallocation-page .seating-grid thead th {
    background: linear-gradient(180deg, #f1f5f9 0%, #e8ecf0 100%);
    font-weight: 600; font-size: 0.9rem; text-align: center; color: #475569;
    border-radius: 6px; padding: 8px; border: 2px solid #e2e8f0;
}
.seatallocation-page .col-header-empty { width: 36px; min-width: 36px; background: transparent !important; border: none !important; }
.seatallocation-page .col-header { width: 90px; min-width: 90px; }
.seatallocation-page .seating-grid .row-label {
    background: linear-gradient(90deg, #f1f5f9 0%, #e8ecf0 100%);
    text-align: center; font-weight: 600; font-size: 0.9rem; padding: 8px;
    width: 36px; min-width: 36px; border-radius: 6px; border: 2px solid #e2e8f0; color: #475569;
}

.seatallocation-page .seat-cell {
    width: 90px; min-width: 90px; min-height: 70px;
    border: 2px solid #cbd5e1; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; position: relative; padding: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.seatallocation-page .seat-cell.seat-clickable:hover {
    transform: scale(1.04); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); z-index: 10;
}
.seatallocation-page .seat-clickable { cursor: pointer; }
.seatallocation-page .seat-disabled { cursor: not-allowed; opacity: 0.8; }
.seatallocation-page .seat-content { text-align: center; font-size: 10px; width: 100%; }
.seatallocation-page .seat-icon { font-size: 16px; font-weight: bold; }
.seatallocation-page .student-name { font-weight: 600; font-size: 10px; margin-bottom: 2px; word-break: break-word; line-height: 1.2; }
.seatallocation-page .student-roll,
.seatallocation-page .student-class { font-size: 9px; color: #6c757d; line-height: 1.2; }

.seatallocation-page .seat-clear-btn {
    position: absolute;
    top: -8px;
    right: -6px;
    width: 22px;
    height: 22px;
    line-height: 1;
    border-radius: 50%;
    border: none;
    background: #dc3545;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.seatallocation-page .seat-clear-btn:hover { background: #c82333; }

.seatallocation-page .seat-available { background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); border-color: #28a745; }
.seatallocation-page .seat-blocked { background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%); border-color: #dc3545; }
.seatallocation-page .seat-empty { background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%); border-color: #adb5bd; }
.seatallocation-page .seat-filled { background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%); border-color: #ffc107; }
.seatallocation-page .seat-teacher { background: linear-gradient(135deg, #cfe2ff 0%, #b6d4fe 100%); border-color: #0d6efd; }
.seatallocation-page .seat-selected { border-width: 3px; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); }

.seatallocation-page .seatallocation-legend {
    margin-top: 18px; padding: 14px 18px;
    background: #f8fafc; border-radius: 8px; border: 1px solid #e8ecf0;
    font-size: 0.85rem; color: #5a6c7d;
}
.seatallocation-page .seatallocation-legend h5 { margin: 0 0 10px 0; font-size: 0.95rem; font-weight: 600; color: #1e3c72; }
.seatallocation-page .legend-items { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.seatallocation-page .legend-item { display: inline-flex; align-items: center; gap: 8px; }
.seatallocation-page .legend-box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid; flex-shrink: 0; }

/* Right panel (Assign Student sidebar) */
.seatallocation-page .seatallocation-panel-body { padding: 20px; }

/* ============================================= */
/* Bulk Allotment Page - /seating/bulkallotment  */
/* ============================================= */

/* Tab content wrapper */
.bulk-tab-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

/* Form section */
.bulk-form-section { margin-bottom: 4px; }
.bulk-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}
.bulk-form-label i { color: #3498db; }
.bulk-dropdown { width: 100%; max-width: 400px; }
.bulk-textbox { width: 100%; max-width: 400px; }
.bulk-hint { display: block; margin-top: 6px; font-size: 0.8rem; color: #64748b; }

/* Bulk section */
.bulk-section { margin-bottom: 4px; }

/* Options row - direction + method side by side */
.bulk-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.bulk-option-group { flex: 1; min-width: 200px; }

/* Info card */
.bulk-info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
    border-radius: 10px;
    border-left: 4px solid #3498db;
}
.bulk-info-card strong { color: #1e3c72; display: block; font-size: 0.9rem; }
.bulk-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #3498db;
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 8px;
}
.bulk-count-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #1e3c72;
    color: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Placeholder message */
.bulk-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}
.bulk-placeholder p { margin-top: 12px; font-size: 0.95rem; }

/* View Seating Plan - empty state */
.viewseatingplan-placeholder {
    text-align: center;
    padding: 32px 20px;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    color: #6b7280;
    margin-top: 8px;
}
.viewseatingplan-placeholder i {
    font-size: 2rem;
    color: #6c757d;
}
.viewseatingplan-placeholder p {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #64748b;
}

/* SeatingPlanViewDialog - filters and footer inside dialog */
.seating-plan-dialog {
    padding: 0.5rem 0 0.75rem 0;
    min-width: 100%;
}
.seating-plan-dialog-filters {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.seating-plan-dialog-filters .filter-item {
    flex: 1;
    min-width: 180px;
    max-width: 320px;
}
.seating-plan-dialog-filters .panel-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}
.seating-plan-dialog-filters .panel-input {
    width: 100%;
}
.seating-plan-dialog-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Tabs styling */
.page-card-body .rz-tabview {
    border: none;
}
.page-card-body .rz-tabview-nav {
    background: #f8fafc;
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}
.page-card-body .rz-tabview-nav li {
    margin: 0 4px;
}
.page-card-body .rz-tabview-nav-link {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
    border: none !important;
}
.page-card-body .rz-tabview-nav-link:hover {
    background: #e2e8f0;
    color: #1e3c72;
}
.page-card-body .rz-tabview-nav-link.rz-state-active {
    background: #1e3c72;
    color: #fff;
    box-shadow: 0 2px 6px rgba(30, 60, 114, 0.3);
}
.page-card-body .rz-tabview-panel {
    padding: 0;
    border: none;
}

/* Card inside tabs */
.page-card-body .rz-card {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Info badges/cards */
.bulk-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
    border-radius: 8px;
    border-left: 4px solid #3498db;
}
.bulk-info-card strong { color: #1e3c72; }

/* Pending badge */
.rz-badge.rz-badge-info {
    background: #3498db !important;
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Form fields in bulk allotment */
.page-card-body .rz-form-field {
    margin-bottom: 12px;
}
.page-card-body .rz-form-field .rz-textbox,
.page-card-body .rz-form-field .rz-dropdown {
    border-radius: 6px;
    min-height: 42px;
}

/* Allotted Rooms section */
.allotted-rooms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}
.allotted-rooms-header .form-label {
    font-size: 0.95rem;
    color: #1e3c72;
}

/* No rooms message */
.no-rooms-card {
    text-align: center;
    padding: 30px 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px dashed #e2e8f0;
}
.no-rooms-card p { color: #64748b; margin-bottom: 16px; }

/* Class checkboxes grid */
.class-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.class-checkbox-item {
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: pointer;
}
.class-checkbox-item:hover {
    background: #eef2f7;
    border-color: #93c5fd;
}
.class-checkbox-item.selected {
    background: #eff6ff;
    border-color: #3498db;
}
.class-checkbox-item .form-check { margin: 0; }
.class-checkbox-item .form-check-label {
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}
.class-checkbox-item small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.8rem;
}

/* Direction/Method radio buttons */
.allotment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.allotment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}
.allotment-option input { display: none; }
.allotment-option span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #64748b;
}
.allotment-option:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
}
.allotment-option.active {
    border-color: #3498db;
    background: #eff6ff;
}
.allotment-option.active span {
    color: #1e3c72;
    font-weight: 600;
}

/* Column/Row toggle buttons */
.toggle-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.toggle-buttons-grid .btn {
    min-width: 44px;
    padding: 8px 12px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.toggle-buttons-grid .btn-outline-primary {
    border: 2px solid #e2e8f0;
    color: #64748b;
    background: #fff;
}
.toggle-buttons-grid .btn-outline-primary:hover {
    border-color: #3498db;
    color: #3498db;
    background: #f0f7ff;
}
.toggle-buttons-grid .btn-primary {
    border: 2px solid #1e3c72;
    background: #1e3c72;
    color: #fff;
    box-shadow: 0 2px 6px rgba(30, 60, 114, 0.3);
}

/* Roll number range display */
.roll-range-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f4fd 100%);
    border-radius: 10px;
    border: 1px solid #bae6fd;
}
.roll-range-item {
    text-align: center;
}
.roll-range-item label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 4px;
}
.roll-range-item strong {
    font-size: 1.2rem;
    color: #1e3c72;
}

/* Action buttons at bottom */
.bulk-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* ============================================= */
/* Seat Allotement Page - filters in one line   */
/* ============================================= */
.seatallotement-filters {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.seatallotement-filters .filter-item {
    flex: 1;
    min-width: 160px;
    max-width: 280px;
}
.seatallotement-filters .panel-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}
.seatallotement-filters .panel-input {
    width: 100%;
}

/* View Seating Plan Page - exam date & room in one line */
.viewseatingplan-filters {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.viewseatingplan-filters .filter-item {
    flex: 1;
    min-width: 180px;
    max-width: 320px;
}
.viewseatingplan-filters .panel-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}
.viewseatingplan-filters .panel-input {
    width: 100%;
}

/* ============================================= */
/* Room Based Allot - Modal Popup               */
/* ============================================= */

.room-allot-dialog .rz-dialog-titlebar { display: none; }
.room-allot-dialog .rz-dialog-content { padding: 0; }
.room-allot-dialog.rz-dialog {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.room-allot-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.room-allot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
}
.room-allot-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.room-allot-header small { color: rgba(255,255,255,0.8); display: block; margin-top: 4px; }
.room-allot-header small strong { color: #fff; }
.room-allot-header .btn-outline-secondary {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
.room-allot-header .btn-outline-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.room-allot-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Room grid container */
.room-design-container {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    overflow-x: auto;
    background: #fafbfc;
}
.room-grid-wrapper {
    display: inline-block;
    min-width: 100%;
}

/* Column checkboxes row */
.column-checkboxes {
    display: flex;
    margin-bottom: 8px;
    margin-left: 55px;
}
.checkbox-spacer { width: 0 !important; }
.column-checkbox-wrapper {
    width: 60px;
    text-align: center;
}
.column-checkbox-wrapper .form-check {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.column-checkbox-wrapper .form-check-input {
    margin: 0 0 4px 0;
}
.column-checkbox-wrapper .form-check-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}
.row-grid-container { display: flex; flex-direction: column; gap: 6px; }
.row-container { display: flex; align-items: center; }
.row-checkbox-wrapper {
    width: 60px;
    padding-right: 10px;
}
.row-checkbox-wrapper .form-check {
    display: flex;
    align-items: center;
    gap: 6px;
}
.row-checkbox-wrapper .form-check-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}
.rz-dialog-title{
    color: white;
}


/* Seat row and cells */
.seat-row { display: flex; gap: 6px; }
.room-design-container .seat-cell {
    width: 60px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.15s ease;
}
.room-design-container .seat-cell.seat-available { background: #d4edda; border-color: #28a745; }
.room-design-container .seat-cell.seat-blocked { background: #f8d7da; border-color: #dc3545; }
.room-design-container .seat-cell.seat-empty { background: #fff; border-color: #adb5bd; }
.room-design-container .seat-cell.seat-filled { background: #fff3cd; border-color: #ffc107; color: #856404; }
.room-design-container .seat-cell.seat-selected {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
    background: #e8f4fd;
}
.room-design-container .seat-icon { font-size: 14px; }

/* Preview card */
.selection-preview {
    padding: 14px 18px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 10px;
    border: 1px solid #86efac;
}
.selection-preview strong { color: #166534; }
.selection-preview ul { margin: 8px 0 0 0; padding-left: 20px; }
.selection-preview li { margin-bottom: 4px; color: #15803d; }

.rz-grid-table thead th {
    background: #213252!important;
}
.rz-grid-table td {
   padding: 8px 10px!important;
}
.rz-grid-table thead th .rz-column-title-content {
    color: #fff!important;
}

.page-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
.page-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #efefef;
}
.page-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.page-card-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #373737;
}

.page-card-subtitle {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
}

.page-card-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e3c72;
    white-space: nowrap;
}

.filter-dropdown {
    min-width: 180px;
}

.page-icon {
    font-size: 16px;
    color: #404040;
}

.page-card-body {
    padding: 10px;
}
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 13px;
    min-height: auto;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    max-height: 33px;
    line-height: normal;
}
.btn i {
    font-size: 1rem;
}
.btn-sm {
    padding: 4px 7px;
    font-size: 10px;
    border-radius: 5px;
}
.btn-sm i {
    font-size: 12px;
}
.btn-primary {
    background: #0d6efd;
    color: #fff;
}
.btn-primary:hover {
    background: #0b5ed7;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
}

/* Success Button - Add */
.btn-success {
    background: #198754;
    color: #fff;
}

.btn-success:hover {
    background: #157347;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.35);
}

/* Danger Button - Delete */
.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #bb2d3b;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
}

/* Warning Button */
.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #ffca2c;
    color: #212529;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.35);
}

/* Info Button - View */
.btn-info {
    background: #0dcaf0;
    color: #212529;
}

.btn-info:hover {
    background: #31d2f2;
    color: #212529;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.35);
}

/* Secondary Button */
.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5c636a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.35);
}

/* Light Button */
.btn-light {
    background: #f8f9fa;
    color: #212529;
    border: 1px solid #dee2e6;
}

.btn-light:hover {
    background: #e9ecef;
    color: #212529;
}

/* Dark Button */
.btn-dark {
    background: #212529;
    color: #fff;
}

.btn-dark:hover {
    background: #1c1f23;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.35);
}

/* Outline Secondary Button - Gray Border */
.btn-outline-secondary {
    background: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
}
.btn-outline-info {
    background: transparent;
    color: #0dcaf0;
    border: 1px solid #0dcaf0;
}
.btn-outline-info:hover {
    background: #0dcaf0;
    color: #fff;
    transform: translateY(-1px);
}
.btn-outline-secondary:hover {
    background: #6c757d;
    color: #fff;
    transform: translateY(-1px);
}

/* Outline Primary Button */
.btn-outline-primary {
    background: transparent;
    color: #0d6efd;
    border: 1px solid #0d6efd;
}

.btn-outline-primary:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-1px);
}

/* Outline Danger Button */
.btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: #fff;
    transform: translateY(-1px);
}

/* Action Buttons Container */
.action-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ============================================
   GLOBAL GRID STYLING - DataGrid
   ============================================ */

.app-grid.rz-datatable {
    border: none !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.app-grid .rz-datatable-thead th {
    background: #f8f9fa !important;
    color: #1e3c72 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    padding: 14px 12px !important;
    border-bottom: 2px solid #eef2f7 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-grid .rz-datatable-data td {
    padding: 14px 12px !important;
    font-size: 0.9rem !important;
    color: #444 !important;
    border-bottom: 1px solid #f0f2f5 !important;
    vertical-align: middle !important;
}

.app-grid .rz-datatable-data tr:hover td {
    background: rgba(52, 152, 219, 0.04) !important;
}

.app-grid .rz-pager {
    background: #f8f9fa !important;
    border-top: 1px solid #eef2f7 !important;
    padding: 12px !important;
}

/* ============================================
   GRID CELLS WITH ICONS
   ============================================ */

/* Base Grid Cell */
.grid-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.grid-cell i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* ID Cell - Blue */
.grid-cell-id {
    color: #1e3c72;
    font-weight: 600;
}

.grid-cell-id i {
    color: #3498db;
}

/* Text Cell - Default */
.grid-cell-text {
    color: #333;
}

.grid-cell-text i {
    color: #6c757d;
}

/* School Cell - Purple */
.grid-cell-school {
    color: #5c3d6e;
}

.grid-cell-school i {
    color: #9b59b6;
}

/* Date Cell - Green */
.grid-cell-date {
    color: #1e6e42;
}

.grid-cell-date i {
    color: #27ae60;
}

/* Status Cell - Dynamic */
.grid-cell-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.grid-cell-status.status-active {
    background: rgba(39, 174, 96, 0.12);
    color: #27ae60;
}

.grid-cell-status.status-inactive {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
}

.grid-cell-status.status-pending {
    background: rgba(241, 196, 15, 0.15);
    color: #d4a017;
}

/* Number Cell - Orange */
.grid-cell-number {
    color: #c75000;
    font-weight: 600;
}

.grid-cell-number i {
    color: #e67e22;
}

/* User Cell - Teal */
.grid-cell-user {
    color: #0d6e6e;
}

.grid-cell-user i {
    color: #17a2b8;
}

.rz-sidebar {
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.06);
}
.app-right-panel.rz-sidebar.rz-sidebar-right,
.app-right-panel.rz-sidebar.rz-sidebar-expanded.rz-sidebar-right {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 400px !important;
    max-width: 90vw;
    z-index: 1050;
    background: #fff;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2) !important;
    overflow-y: auto;
    overflow-x: hidden;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
}
.app-right-panel .rz-sidebar-content {
    height: 100% ;
    overflow: visible ;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.right-panel-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}
.right-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    border-bottom: none;
}
.right-panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.right-panel-close {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.right-panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
.right-panel-close i{
    font-size: 10px;
}
.right-panel-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f8f9fa;
}
.panel-form-group {
    margin-bottom: 10px;
}
.panel-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 8px;
}

.panel-input,
.right-panel-body .rz-textbox,
.right-panel-body .rz-dropdown,
.right-panel-body .rz-inputtext {
    width: 100% !important;
    border-radius: 5px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.panel-input:focus,
.right-panel-body .rz-textbox:focus,
.right-panel-body .rz-dropdown:focus,
.right-panel-body .rz-inputtext:focus {
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15) !important;
    outline: none !important;
}

.right-panel-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 12px;
    margin-top: 10px;
    border-top: 1px solid #c1c1c1;
}

.right-panel-footer .btn {
    min-width: 110px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.app-header {
    background: #3498db !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 60px;
}

.app-header .rz-button {
    color: #fff !important;
}

.app-header .rz-button:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.app-header .rz-sidebar-toggle {
    color: #fff !important;
}

/* Header User ProfileMenu */
.header-right {
    display: flex;
    align-items: center;
}

.header-user-menu {
    cursor: pointer;
}

.header-user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.2s;
}

.header-user-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header-user-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.header-username {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-chevron {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

/* ProfileMenu dropdown - header style */
.header-user-menu.rz-profilemenu .rz-navigation-item-link,
.header-user-menu.rz-profilemenu .rz-menuitem-link {
    color: #333 !important;
}

.header-user-menu.rz-profilemenu .rz-navigation-item-link:hover,
.header-user-menu.rz-profilemenu .rz-menuitem-link:hover {
    background: #f0f0f0 !important;
    color: #1e3c72 !important;
}

/* App Sidebar - Fox Admin style */
.app-sidebar {
    background: #1a202c !important;
    border-right: 1px solid rgba(0, 0, 0, 0.25) !important;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

/* App Body */
.app-body {
    background: #d7d7d7 !important;
}

/* Sidebar Menu - Fox Admin style - app-sidebar-menu class */
.app-sidebar-menu .rz-panel-menu,
.app-sidebar-menu .rz-panelmenu {
    border: none !important;
    background: transparent !important;
}

.app-sidebar-menu .rz-navigation-item-link,
.app-sidebar-menu .rz-menuitem-link,
.app-sidebar-menu a[role="menuitem"] {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
}

.app-sidebar-menu .rz-navigation-item-link:hover,
.app-sidebar-menu .rz-menuitem-link:hover,
.app-sidebar-menu a[role="menuitem"]:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}
.rz-panel-menu .rz-navigation-menu .rz-navigation-item-wrapper:hover {
    background-color: transparent !important;
}

.app-sidebar-menu .rz-navigation-item-link.rz-state-active,
.app-sidebar-menu .rz-navigation-item.rz-state-active > .rz-navigation-item-link,
.app-sidebar-menu .rz-menuitem-link.rz-state-active,
.app-sidebar-menu .rz-state-active a {
    background: #3498db !important;
    color: #fff !important;
}
.rz-panel-menu .rz-navigation-menu .rz-navigation-item-wrapper-active{
    background-color: red !important;
}
.app-sidebar-menu .rz-navigation-item-icon,
.app-sidebar-menu .rz-menuitem-icon {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-inline: auto !important;
}

.app-sidebar-menu .rz-state-active .rz-navigation-item-icon,
.app-sidebar-menu .rz-state-active .rz-menuitem-icon {
    color: #fff !important;
}

.app-sidebar-menu .rz-panel-menu .rz-navigation-item-content {
    padding-left: 0 !important;
}

.app-sidebar-menu .rz-navigation-item-expand-icon,
.app-sidebar-menu .rz-menuitem-expand-icon {
    color: rgba(255, 255, 255, 0.7) !important;
}
.rz-navigation-item-link{
    gap: 7px;
}
.app-sidebar-menu .rz-navigation-item ul .rz-navigation-item-link,
.app-sidebar-menu .rz-menuitem ul .rz-menuitem-link,
.app-sidebar-menu ul[role="menu"] a {
    padding: 10px 14px 10px 35px !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}
.app-sidebar-menu .rz-navigation-item, .app-sidebar-menu{
    margin: 0px !important;
    border-bottom: 0;
}
.rz-panel-menu .rz-navigation-item-wrapper:hover {
    background: transparent!important;
}
.rz-panel-menu .rz-navigation-menu .rz-navigation-item-wrapper{
    background: transparent!important;
    margin-inline: auto !important;
}
.rz-panel-menu .rz-navigation-menu{
    background: #28344d;
}
ul.rz-profile-menu {
    background-color: #28344d00 !important;
}
.leftsidebar-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #1a202c;
    color: #fff;
    padding: 0;
}

.sidebar-user-section {
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder {
    font-size: 16px;
    font-weight: 700;
    color: #3498db;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #48bb78;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0 20px 0;
}
.app-sidebar-menu .rz-navigation-item ul .rz-navigation-item-link:hover,
.app-sidebar-menu .rz-menuitem ul .rz-menuitem-link:hover,
.app-sidebar-menu ul[role="menu"] a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.app-sidebar-menu .rz-navigation-item ul .rz-navigation-item-link.rz-state-active,
.app-sidebar-menu .rz-menuitem ul .rz-menuitem-link.rz-state-active {
    background: rgba(52, 152, 219, 0.4) !important;
    color: #fff !important;
}