/* Additional styles for the admin app */
/* This file can be used to extend or override the styles in index.html */

:root {
    /* Border Radius - Reduced */
    --br-xl: 12px;
    --br-lg: 8px;
    --br-md: 6px;
    --br-sm: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(46, 125, 50, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(46, 125, 50, 0.5);
}

/* Animation for content transitions */
.content-area>div {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive table adjustments */
@media (max-width: 768px) {
    .table {
        font-size: 9px;
    }

    .table th,
    .table td {
        padding: 6px 4px;
    }

    .status-badge {
        padding: 2px 6px;
        font-size: 8px;
    }
}

/* Chart container enhancements */
.chart-container {
    position: relative;
    overflow: hidden;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-wrapper {
    position: relative;
    height: 91%;
    min-height: 300px;
    width: 100%;
}

/* Form enhancements */
.form-control:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

/* Button hover effects */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}

/* Card hover effects */

/* Side Pane Styles */
.side-pane-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-pane-overlay.active {
    opacity: 1;
}

.side-pane {
    position: fixed;
    top: 0;
    right: -750px;
    width: 750px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.side-pane.active {
    right: 0;
}

.side-pane-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.side-pane-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.side-pane-header p {
    margin: 5px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.side-pane-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 18px;
}

.side-pane-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.side-pane-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.side-pane-footer {
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
    background: #f8fafc;
}

@media (max-width: 768px) {
    .side-pane {
        width: 100vw;
        max-width: 100vw;
    }
}

/* Photo Upload Styles for Side Pane */
.photo-upload-section {
    margin-bottom: 24px;
}

.photo-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.photo-preview-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px dashed #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8fafc;
    position: relative;
    transition: all 0.3s ease;
}

.photo-preview-circle.has-photo {
    border-style: solid;
    border-color: var(--primary-green);
}

.photo-preview-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.photo-preview-circle.has-photo img {
    display: block;
}

.photo-placeholder-icon {
    text-align: center;
    color: #94a3b8;
}

.photo-placeholder-icon i {
    font-size: 48px;
    margin-bottom: 8px;
}

.photo-placeholder-icon p {
    font-size: 12px;
    margin: 0;
}

.photo-preview-circle.has-photo .photo-placeholder-icon {
    display: none;
}

.photo-upload-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.photo-upload-btn {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: var(--br-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    transition: all 0.2s ease;
}

.photo-upload-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: rgba(46, 125, 50, 0.05);
}

.photo-upload-btn i {
    font-size: 16px;
}

.photo-upload-btn input[type="file"] {
    display: none;
}

/* Button Warning Style */
.btn-warning {
    background: #f59e0b;
    color: white;
    border: none;
}

.btn-warning:hover {
    background: #d97706;
}

/* Dropdown Menu Styles */
.dropdown-item:hover {
    background: #f3f4f6;
}

.action-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Status Badge Styles */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge i {
    font-size: 10px;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-inactive {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.stat-card,
.table-container,
.chart-container {
    transition: all 0.3s ease;
}

.stat-card:hover,
.table-container:hover,
.chart-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Chart legend adjustments */
.chart-container .chartjs-legend {
    margin-top: 20px;
}

.chart-container .chartjs-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.chart-container .chartjs-legend li {
    display: flex;
    align-items: center;
    margin: 0 10px 5px 0;
    font-size: 10px;
}

.chart-container .chartjs-legend li span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border-radius: 2px;
}

/* Compact layout adjustments */
.stats-container {
    gap: 15px;
}

.stat-card {
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 12px;
    padding-bottom: 10px;
}

.chart-header {
    margin-bottom: 10px;
}

.table th,
.table td {
    padding: 10px;
}

.content-header {
    margin-bottom: 10px;
}

/* Fix for chart container overflow */
.content-area {
    overflow-y: auto;
    max-height: calc(100vh - 120px);
}

/* Additional styles for editable table cells */
.form-control-sm {
    padding: 4px 6px;
    font-size: 9px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
    width: 100%;
    box-sizing: border-box;
}

.form-control-sm:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

select.form-control-sm {
    height: 24px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 16px;
    padding-right: 24px;
    appearance: none;
}

/* Spinner styles */
.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Sub-tab Navigation */
.sub-tab-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0;
}

.sub-tab-btn {
    background: none;
    border: none;
    padding: 12px 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--dark-gray);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.sub-tab-btn:hover {
    color: var(--primary-green);
    background: rgba(46, 125, 50, 0.05);
}

.sub-tab-btn.active {
    color: var(--primary-green);
    font-weight: 600;
    border-bottom-color: var(--primary-green);
}

/* Academic Performance Specific Styles */
.stat-card .stat-value {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--dark-gray) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#topPerformersTable tr:first-child td {
    background: rgba(46, 125, 50, 0.1);
    font-weight: 600;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-text {
    display: inline;
}

.btn-loading .btn-text {
    display: none;
}

.btn-loading .spinner {
    display: inline-block;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    background: white;
    border-radius: var(--br-lg);
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
}

/* Teacher Modal - Wider for desktop */
#addTeacherModal .modal-dialog {
    max-width: 1000px;
}

/* Specific override for Promotion Modal to be EXTRA wide */
#promotionModal .modal-dialog {
    max-width: 1100px !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.modal-content {
    border-radius: var(--br-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
}

.modal-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-close {
    background: none;
    border: none;
    font-size: 19px;
    cursor: pointer;
    color: var(--dark-gray);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-close:hover {
    color: var(--darker-gray);
    background: rgba(0, 0, 0, 0.05);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Teacher Modal Body - More padding on desktop */
#addTeacherModal .modal-body {
    padding: 32px 40px;
    max-height: calc(90vh - 300px);
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(255, 255, 255, 0.8);
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 10px;
    font-weight: 500;
    color: var(--darker-gray);
}

.form-control {
    width: 100%;
    padding: 10px;
    border-radius: var(--br-sm);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

select.form-control {
    height: 38px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 36px;
    appearance: none;
}

/* Form grid for horizontal layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Ensure form-grid stays 2-column on desktop */
@media (min-width: 769px) {
    .form-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Pagination styles */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.pagination-info {
    font-size: 10px;
    color: var(--darker-gray);
}

.btn-sm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-dialog {
        width: 95%;
        max-width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        padding: 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Sub-tab navigation styles */
.sub-tab-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 5px;
}

.sub-tab-btn {
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 500;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 8px 12px;
    position: relative;
    transition: all 0.3s ease;
}

.sub-tab-btn:hover {
    color: var(--primary-green);
}

.sub-tab-btn.active {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* Wizard Steps */
.wizard-step {
    padding: 10px 10px;
}

/* Hero Section (Step 1) */
.promo-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(46, 125, 50, 0.03) 100%);
    border-radius: var(--br-lg);
}

.promo-hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 26px;
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.15);
}

.promo-hero h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.promo-req-list {
    background: white;
    padding: 20px;
    border-radius: var(--br-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: left;
    max-width: 400px;
    margin: 30px auto;
}

/* Summary Cards (Dashboard Style) */
.promotion-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: var(--br-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.summary-card.promoted::before {
    background: linear-gradient(90deg, #4caf50, #81c784);
}

.summary-card.repeating::before {
    background: linear-gradient(90deg, #f44336, #e57373);
}

.summary-card.graduated::before {
    background: linear-gradient(90deg, #2196f3, #64b5f6);
}

.summary-card h3 {
    font-size: 19px;
    font-weight: 800;
    margin: 10px 0 5px;
    color: var(--text-dark);
}

.summary-card p {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #90a4ae;
}

.card-icon-bg {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 48px;
    opacity: 0.05;
    transform: rotate(-15deg);
}

/* Modern Tabs */
.promotion-tabs {
    background: #f8f9fa;
    padding: 5px;
    border-radius: var(--br-md);
    display: inline-flex;
    gap: 5px;
    margin-bottom: 20px;
    border: none;
}

.promotion-tab {
    padding: 8px 20px;
    border-radius: var(--br-sm);
    font-size: 10px;
    font-weight: 600;
    color: var(--dark-gray);
    background: transparent;
    transition: all 0.2s ease;
}

.promotion-tab:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.02);
}

.promotion-tab.active {
    background: white;
    color: var(--primary-green);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Premium Table */
.promo-table-container {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--br-md);
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
}

.table.premium-table thead {
    background: #fcfcfc;
}

.table.premium-table th {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #90a4ae;
    font-weight: 700;
    padding: 15px 20px;
    border: none;
}

.table.premium-table td {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    font-size: 10px;
    vertical-align: middle;
}

.table.premium-table tr:hover td {
    background: #fafafa;
}

/* Status Badges */
.status-badge {
    padding: 5px 12px;
    border-radius: var(--br-xl);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.status-active,
.status-approved {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.status-inactive,
.status-rejected,
.status-disapproved {
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.status-pending {
    background: rgba(245, 124, 0, 0.1);
    color: #f57c00;
    border: 1px solid rgba(245, 124, 0, 0.2);
}

/* Premium Tooltip for Children Names */
.children-count-container {
    position: relative;
    display: inline-block;
}

.children-tooltip {
    visibility: hidden;
    width: max-content;
    max-width: 250px;
    background-color: var(--text-dark);
    color: #fff;
    text-align: left;
    border-radius: var(--br-sm);
    padding: 10px 14px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 9px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.children-tooltip b {
    display: block;
    color: var(--primary-green-light);
    margin-bottom: 4px;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.children-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--text-dark) transparent transparent transparent;
}

.children-count-container:hover .children-tooltip {
    visibility: visible;
    opacity: 1;
    bottom: 140%;
}

/* Bulk Actions Toolbar */
.bulk-actions-toolbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--br-md);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bulk-actions-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-dark);
}

.bulk-actions-info span {
    background: var(--primary-green);
    color: white;
    padding: 2px 8px;
    border-radius: var(--br-xl);
    font-size: 10px;
}

.bulk-actions-btns {
    display: flex;
    gap: 10px;
}

/* Search Bar */
.search-container input {
    border-radius: 50px;
    background: #f1f3f4;
    border: 1px solid transparent;
    transition: all 0.3s;
    padding: 10px 20px 10px 40px;
}

.search-container input:focus {
    background: white;
    border-color: rgba(46, 125, 50, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn-primary-gradient {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    transition: all 0.3s;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

/* Promotion Table Refinements */
.premium-table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    color: var(--dark-gray);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Checkout Modal Enhancements */
.search-results-dropdown {
    position: absolute;
    width: 100%;
    max-height: 250px;
    background: white;
    border-radius: var(--br-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    overflow-y: auto;
    border: 1px solid var(--medium-gray);
    margin-top: 5px;
}

.search-result-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8fafc;
}

.search-result-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 1px solid #e2e8f0;
}

.search-result-info h4 {
    font-size: 11px;
    margin: 0;
    color: var(--text-dark);
}

.search-result-info p {
    font-size: 10px;
    margin: 0;
    color: var(--dark-gray);
}

#unpaidFeesTableBody input[type="number"] {
    width: 100px;
    padding: 5px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    text-align: right;
    font-family: monospace;
}

#unpaidFeesTableBody input[type="number"]:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: transparent;
}

.fee-row-selected {
    background-color: var(--accent-green) !important;
}

.premium-table tbody tr:hover {
    background-color: rgba(46, 125, 50, 0.03) !important;
}

.premium-table tr.row-repeating td {
    background-color: rgba(0, 0, 0, 0.01);
}

.row-repeating {
    opacity: 0.95;
}

/* Card Badge Animations */
.summary-card:hover .badge {
    opacity: 1 !important;
    transform: scale(1.1);
}

.badge {
    transition: all 0.3s ease;
}

/* Sticky Header Helper */
.table-container {
    max-height: 500px;
    overflow-y: auto;
}

/* Dropdown Functional Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    min-width: 160px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: var(--br-sm);
    padding: 8px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 8px 16px;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: var(--accent-green);
    color: var(--primary-green-dark);
}

/* Attendance Comment Bubble Styles */
.comment-bubble {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: #2e7d32;
    color: white;
    padding: 10px 15px;
    border-radius: var(--br-md);
    font-size: 10px;
    width: 250px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    cursor: default;
    transform-origin: bottom center;
    animation: bubbleEmanate 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
    line-height: 1.5;
}

.comment-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #2e7d32 transparent transparent transparent;
}

@keyframes bubbleEmanate {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.comment-icon-wrapper i:hover {
    transform: scale(1.2);
    transition: transform 0.2s;
}

/* --- Ultra-Premium POS Design Tokens --- */
:root {
    --pos-glass-bg: rgba(255, 255, 255, 0.7);
    --pos-glass-border: rgba(255, 255, 255, 0.2);
    --pos-accent: #2e7d32;
    --pos-accent-light: #e8f5e9;
    --pos-text-main: #1e293b;
    --pos-text-muted: #64748b;
    --pos-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Wizard Animations */
.wizard-slide-in {
    animation: slideLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Financial Passport */
.financial-passport {
    background: white;
    border-radius: var(--br-xl);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--pos-shadow);
    margin-bottom: 25px;
    border: 1px solid #f1f5f9;
}

.sticky-passport {
    position: sticky;
    top: 0;
    z-index: 110;
    margin: 0 -5px 25px -5px;
    border-radius: 0 0 20px 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.passport-identity {
    display: flex;
    align-items: center;
    gap: 20px;
}

.passport-photo-frame {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
}

.passport-stats {
    display: flex;
    gap: 30px;
}

.passport-stat-item {
    text-align: right;
}

.passport-stat-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pos-text-muted);
    letter-spacing: 0.5px;
}

.passport-stat-value {
    font-size: 14px;
    font-weight: 800;
    color: var(--pos-text-main);
}

/* Fee Groups (Session/Term) */
.fee-group {
    margin-bottom: 10px;
}

.fee-group-header {
    font-size: 11px;
    font-weight: 800;
    color: var(--pos-text-main);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border-radius: var(--br-md);
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
    position: relative;
}

.fee-group-header:hover {
    background: #f1f5f9;
}

.fee-group-header .toggle-icon {
    margin-left: auto;
    transition: transform 0.3s;
}

.fee-group.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.fee-group.collapsed .fee-grid {
    display: none !important;
}

.fee-group-header i:first-child {
    color: var(--pos-accent);
}

/* Fee Shopping Cards */
.fee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.fee-card {
    background: white;
    border-radius: var(--br-lg);
    padding: 16px 20px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 20px;
}

.fee-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.fee-card.selected {
    border-color: var(--pos-accent);
    background: var(--pos-accent-light);
}

.fee-card.selected::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: var(--pos-accent);
    font-size: 14px;
    display: none;
    /* Hide default icon as we use layout now */
}

.fee-card-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--br-md);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--pos-text-muted);
    flex-shrink: 0;
}

.selected .fee-card-icon {
    background: white;
    color: var(--pos-accent);
}

.fee-card-info-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fee-card-title {
    font-weight: 800;
    font-size: 12px;
    color: var(--pos-text-main);
}

.fee-card-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pos-text-muted);
    letter-spacing: 0.5px;
}

.fee-card-balance {
    color: var(--pos-text-main);
    font-weight: 900;
    font-size: 14px;
    text-align: right;
    margin-left: auto;
}

.selected .fee-card-balance {
    color: var(--pos-accent);
}

.fee-card-input-wrapper {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 0, 0, 0.05);
    width: 100%;
}

/* Merchant Sticky Bar */
.merchant-footer {
    position: sticky;
    bottom: -30px;
    left: -30px;
    right: -30px;
    background: white;
    padding: 30px 40px 50px 40px;
    /* Increased bottom padding */
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.05);
    /* Enhanced shadow */
    margin: 30px -30px -30px -30px;
    /* Increased top margin */
}

.merchant-total-info {
    display: flex;
    flex-direction: column;
}

.merchant-total-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--pos-text-muted);
}

.merchant-total-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--pos-accent);
}

/* POS Search Hub */
.search-hub {
    text-align: center;
    padding: 60px 20px;
}

.hub-icon {
    font-size: 40px;
    color: var(--pos-accent);
    margin-bottom: 20px;
    opacity: 0.8;
}

.hub-chips {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.hub-chip {
    padding: 6px 14px;
    border-radius: var(--br-xl);
    background: #f1f5f9;
    font-size: 10px;
    font-weight: 600;
    color: var(--pos-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.hub-chip:hover {
    background: white;
    border-color: var(--pos-accent);
    color: var(--pos-accent);
}

/* Loading States */
.pos-loader {
    display: none;
    margin: 20px 0;
}

.pos-loading-shimmer {
    height: 4px;
    width: 100%;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.pos-loading-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--pos-accent), transparent);
    animation: shimmerShift 1.2s infinite ease-in-out;
}

@keyframes shimmerShift {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(400%);
    }
}

/* Fee Card Details (Partial Amount Input) */
.fee-partial-input-group {
    background: #f8fafc;
    border-radius: var(--br-md);
    padding: 10px 15px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #edf2f7;
}

.fee-partial-input-group input {
    border: none;
    background: transparent;
    font-weight: 800;
    color: var(--pos-text-main);
    width: 120px;
    outline: none;
    font-size: 13px;
    padding: 0;
}

.fee-partial-input-group span {
    font-size: 8px;
    font-weight: 800;
    color: var(--pos-text-muted);
}

/* Refined Teacher Subject Table Popover */
.subjects-popover-wrapper {
    position: relative;
    display: inline-block;
}

.btn-subjects-toggle {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.08) 0%, rgba(46, 125, 50, 0.04) 100%);
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.2);
    padding: 6px 12px;
    border-radius: var(--br-sm);
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-subjects-toggle:hover {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.12) 0%, rgba(46, 125, 50, 0.08) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(46, 125, 50, 0.1);
    border-color: rgba(46, 125, 50, 0.3);
}

.subjects-popover {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    z-index: 100;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--br-md);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.subjects-popover.active {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.popover-header {
    background: rgba(46, 125, 50, 0.05);
    padding: 10px 15px;
    font-size: 9px;
    font-weight: 800;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.popover-body {
    padding: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.popover-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 10px;
    color: var(--text-dark);
    font-weight: 500;
    transition: background 0.2s ease;
    border-radius: 6px;
}

.popover-item i {
    color: var(--primary-green);
    font-size: 8px;
}

.popover-item:hover {
    background: rgba(46, 125, 50, 0.05);
}

/* Modal Autocomplete Suggestions */
.nerdc-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.nerdc-suggestions.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.suggestion-item {
    padding: 10px 15px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    transition: all 0.2s;
}

.suggestion-item:hover {
    background: #f8fafc;
    color: var(--primary-green);
    padding-left: 20px;
}

.suggestion-item i {
    font-size: 10px;
    opacity: 0.5;
}

/* Tag Styles */
.tags-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--br-md);
    background: rgba(255, 255, 255, 0.95);
    min-height: 48px;
    align-items: center;
    position: relative;
}

.tag {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 6px 14px;
    border-radius: var(--br-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: tagPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tag i {
    cursor: pointer;
    font-size: 9px;
}

.tag-input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    min-width: 120px;
    font-size: 11px;
}

@keyframes tagPop {
    from {
        transform: scale(0.6);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Clean Tooltip Styles */
.status-info-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    cursor: help;
}

.status-info-icon {
    font-size: 11px;
    color: var(--dark-gray);
    opacity: 0.6;
    transition: all 0.2s ease;
}

.status-info-wrapper:hover .status-info-icon {
    opacity: 1;
    color: var(--primary-green);
    transform: scale(1.1);
}

.status-tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: var(--br-sm);
    font-size: 9px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
}

.status-info-wrapper:hover .status-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.status-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
}

/* Glassmorphic Chart Tooltip */
#chartjs-tooltip {
    opacity: 0;
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--br-md);
    padding: 10px 15px;
    pointer-events: none;
    transition: all .2s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 2000;
}

#chartjs-tooltip table {
    margin: 0;
}

#chartjs-tooltip .tooltip-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

#chartjs-tooltip .tooltip-value {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 6px;
}

#chartjs-tooltip .tooltip-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-green);
    box-shadow: 0 0 8px var(--primary-green);
}

/* =========================================
   PREMIUM TEACHER REGISTRATION MODAL STYLES
   ========================================= */

/* Glassmorphism Modal Overlay */
.modal {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.fade-in {
    opacity: 1;
}

/* Premium Modal Dialog */
.premium-modal-dialog {
    max-width: 900px;
    width: 95%;
    height: 90vh;
    margin: 5vh auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--br-xl);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.premium-modal-dialog .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--br-xl);
}

.premium-modal-dialog .modal-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: thin;
}

.modal.show .premium-modal-dialog {
    transform: scale(1);
    opacity: 1;
}

/* Modal Header with Gradient */
.premium-modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.premium-modal-title {
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    margin: 0;
}

.btn-close-premium {
    width: 36px;
    height: 36px;
    border-radius: var(--br-md);
    border: none;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-premium:hover {
    background: #e2e8f0;
    color: #ef4444;
    transform: rotate(90deg);
}

/* Premium Toggle Switch */
.premium-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.premium-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.premium-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
}

.premium-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.premium-slider {
    background-color: #2e7d32;
}

input:checked+.premium-slider:before {
    transform: translateX(18px);
}

.premium-slider.round {
    border-radius: 34px;
}

.premium-slider.round:before {
    border-radius: 50%;
}

/* Layout Grid */
.premium-modal-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    padding: 0;
    min-height: 0;
    /* Changed from 500px to avoid overflow issues */
    flex: 1;
    overflow-y: auto;
}

/* Sidebar / Profile Section */
.premium-sidebar {
    background: #f8fafc;
    padding: 24px;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-upload-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 16px;

}

.profile-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #94a3b8;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 0 0 4px #ffffff;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.profile-upload-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    background: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 3px solid #ffffff;
}

.profile-upload-btn:hover {
    transform: scale(1.1);
    background: #1b5e20;
}

.sidebar-helper-text {
    color: #64748b;
    font-size: 10px;
    line-height: 1.5;
}

.sidebar-helper-text h4 {
    color: #334155;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 13px;
}

/* Main Form Area */
.premium-form-area {
    padding: 24px;
    background: #ffffff;
}

.premium-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.full-width {
    grid-column: span 2;
}

/* Float Label Input */
.float-label-group {
    position: relative;
    margin-bottom: 8px;
}

.premium-input {
    width: 100%;
    padding: 8px 12px 8px 40px;
    /* Space for icon */
    border: 2px solid #e2e8f0;
    border-radius: var(--br-md);
    font-size: 10px;
    font-weight: 500;
    color: #334155;
    background: #fff;
    transition: all 0.2s ease;
    height: 42px;
    box-sizing: border-box;
}

.premium-input:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
    outline: none;
}

.premium-input::placeholder {
    color: transparent;
    /* Hide default placeholder for float effect */
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 12px;
    transition: color 0.2s ease;
    pointer-events: none;
}

.premium-input:focus~.input-icon {
    color: #2e7d32;
}

.float-label {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 10px;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    padding: 0 4px;
}

/* Active State for Float Label */
.premium-input:focus~.float-label,
.premium-input:not(:placeholder-shown)~.float-label {
    top: 0;
    left: 14px;
    font-size: 8px;
    font-weight: 600;
    color: #2e7d32;
}

/* Select styling */
select.premium-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 48px;
}

/* Tag Input Area - Modernized */
.premium-tags-container {
    border: 2px solid #e2e8f0;
    border-radius: var(--br-md);
    padding: 8px 12px;
    min-height: 56px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #fff;
    transition: all 0.2s ease;
    align-items: center;
}

.premium-tags-container:focus-within {
    border-color: #2e7d32;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.premium-tag {
    background: #e8f5e9;
    color: #1b5e20;
    padding: 6px 12px;
    border-radius: var(--br-xl);
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: scaleIn 0.2s ease;
}

.premium-tag i {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.premium-tag i:hover {
    opacity: 1;
}

.tag-input-ghost {
    border: none;
    outline: none;
    flex: 1;
    min-width: 120px;
    font-size: 11px;
    color: #334155;
    padding: 4px 0;
}

/* Footer Actions */
.premium-footer {
    padding: 24px 32px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}

.btn-premium-ghost {
    padding: 12px 24px;
    border-radius: var(--br-md);
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-premium-ghost:hover {
    background: #f1f5f9;
    color: #334155;
}

.btn-premium-primary {
    padding: 12px 32px;
    border-radius: var(--br-md);
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(46, 125, 50, 0.2);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-premium-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(46, 125, 50, 0.3);
    transform: translateY(-2px);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   PREMIUM TEACHER REGISTRATION MODAL
   ======================================== */

/* Hero Header with Gradient Background */
.modal-hero-header {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
    padding: 20px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--br-lg) 15px 0 0;
}

.modal-hero-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.modal-hero-content {
    position: relative;
    z-index: 1;
}

.modal-hero-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
    transition: all 0.3s ease;
    border: 3px solid white;
}

.modal-hero-avatar.has-initials {
    animation: avatarPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes avatarPop {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.modal-hero-title {
    font-size: 16px;
    font-weight: 700;
    color: #1b5e20;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modal-hero-subtitle {
    font-size: 10px;
    color: #2e7d32;
    font-weight: 500;
    opacity: 0.9;
}

/* Role Selection Grid */
.role-selection-section {
    margin-bottom: 32px;
}

.section-label {
    font-size: 10px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-label i {
    color: #2e7d32;
}

.role-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.role-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: var(--br-md);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05) 0%, rgba(46, 125, 50, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.role-card:hover {
    border-color: #2e7d32;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(46, 125, 50, 0.15);
}

.role-card:hover::before {
    opacity: 1;
}

.role-card.selected {
    border-color: #2e7d32;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.08) 0%, rgba(46, 125, 50, 0.03) 100%);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.role-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: var(--br-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 19px;
    transition: all 0.3s ease;
}

.role-card.selected .role-card-icon {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    transform: scale(1.1);
}

.role-card-title {
    font-size: 10px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.role-card.selected .role-card-title {
    color: #2e7d32;
}

.role-card-desc {
    font-size: 9px;
    color: #64748b;
    line-height: 1.4;
}

.role-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.role-card.selected .role-card-check {
    opacity: 1;
    transform: scale(1);
}

/* Floating Label Inputs */
.form-floating {
    position: relative;
    margin-bottom: 24px;
}

.form-floating-input {
    width: 100%;
    padding: 16px 16px 8px 44px;
    border: 2px solid #e2e8f0;
    border-radius: var(--br-md);
    font-size: 11px;
    color: #334155;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.form-floating-input:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.form-floating-input:focus+.form-floating-label,
.form-floating-input:not(:placeholder-shown)+.form-floating-label {
    transform: translateY(-8px) scale(0.85);
    color: #2e7d32;
    font-weight: 600;
}

.form-floating-label {
    position: absolute;
    left: 44px;
    top: 16px;
    font-size: 11px;
    color: #64748b;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left top;
    background: white;
    padding: 0 4px;
}

.form-floating-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.3s ease;
}

.form-floating-input:focus~.form-floating-icon {
    color: #2e7d32;
}

/* Enhanced Subject Tags */
.premium-subjects-section {
    margin-bottom: 24px;
}

.popular-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.popular-subject-btn {
    padding: 6px 14px;
    border-radius: var(--br-xl);
    font-size: 10px;
    font-weight: 500;
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.popular-subject-btn:hover {
    background: rgba(46, 125, 50, 0.15);
    transform: translateY(-2px);
}

.popular-subject-btn i {
    font-size: 8px;
}

.tags-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: var(--br-md);
    background: white;
    min-height: 56px;
    transition: all 0.3s ease;
}

.tags-input-container:focus-within {
    border-color: #2e7d32;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.tag {
    padding: 6px 12px;
    border-radius: var(--br-xl);
    font-size: 10px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: tagSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid;
}

@keyframes tagSlideIn {
    from {
        transform: scale(0) translateX(-20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateX(0);
        opacity: 1;
    }
}

/* Pastel color variations for tags */
.tag:nth-child(5n+1) {
    background: rgba(139, 195, 74, 0.15);
    color: #558b2f;
    border-color: rgba(139, 195, 74, 0.3);
}

.tag:nth-child(5n+2) {
    background: rgba(33, 150, 243, 0.15);
    color: #1565c0;
    border-color: rgba(33, 150, 243, 0.3);
}

.tag:nth-child(5n+3) {
    background: rgba(156, 39, 176, 0.15);
    color: #6a1b9a;
    border-color: rgba(156, 39, 176, 0.3);
}

.tag:nth-child(5n+4) {
    background: rgba(255, 152, 0, 0.15);
    color: #e65100;
    border-color: rgba(255, 152, 0, 0.3);
}

.tag:nth-child(5n+5) {
    background: rgba(0, 188, 212, 0.15);
    color: #00838f;
    border-color: rgba(0, 188, 212, 0.3);
}

.tag .remove-tag {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    font-size: 9px;
}

.tag .remove-tag:hover {
    opacity: 1;
}

.tag-input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 150px;
    font-size: 10px;
    color: #334155;
    background: transparent;
}

.tag-input::placeholder {
    color: #94a3b8;
}

/* Form Sections */
.premium-form-section {
    margin-bottom: 32px;
    animation: sectionFadeIn 0.5s ease-out backwards;
}

.premium-form-section:nth-child(1) {
    animation-delay: 0.1s;
}

.premium-form-section:nth-child(2) {
    animation-delay: 0.2s;
}

.premium-form-section:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
    margin: 32px 0;
}

/* NERDC Autocomplete Enhancement */
.nerdc-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #2e7d32;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(46, 125, 50, 0.15);
    display: none;
}

.nerdc-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    color: #334155;
}

.suggestion-item:hover {
    background: rgba(46, 125, 50, 0.08);
    color: #2e7d32;
}

.suggestion-item i {
    color: #2e7d32;
    font-size: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .role-selection-grid {
        grid-template-columns: 1fr;
    }

    .modal-hero-header {
        padding: 30px 20px;
    }

    .modal-hero-avatar {
        width: 80px;
        height: 80px;
        font-size: 22px;
    }
}

/* ========================================
   ULTRA-PREMIUM STUDENT REGISTRATION WIZARD
   ======================================== */

/* Student Modal - Extra Wide */
#addStudentModal .modal-dialog {
    max-width: 900px;
}

/* Wizard Progress Bar */
.wizard-progress-container {
    padding: 12px 20px 0;
    background: white;
}

.wizard-progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2e7d32 0%, #4caf50 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* Step Indicators */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    position: relative;
}

.wizard-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.wizard-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 10px;
    color: #94a3b8;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.wizard-step-indicator.active .wizard-step-circle {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    border-color: #2e7d32;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.wizard-step-indicator.completed .wizard-step-circle {
    background: #2e7d32;
    border-color: #2e7d32;
    color: white;
}

.wizard-step-label {
    font-size: 8px;
    font-weight: 500;
    color: #94a3b8;
    text-align: center;
    transition: color 0.3s ease;
}

.wizard-step-indicator.active .wizard-step-label {
    color: #2e7d32;
    font-weight: 600;
}

.wizard-step-indicator.completed .wizard-step-label {
    color: #2e7d32;
}

/* Wizard Content */
.wizard-content {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.wizard-step-content {
    display: none;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-step-content.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Step 1: Photo Capture */
.photo-capture-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.photo-preview-large {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    overflow: hidden;
    border: 2px dashed #cbd5e1;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.photo-preview-large:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.3);
}

.photo-preview-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.photo-preview-large.has-photo img {
    display: block;
}

.photo-preview-large i {
    font-size: 24px;
    color: #2e7d32;
    opacity: 0.3;
}

.photo-preview-large.has-photo i {
    display: none;
}

.photo-capture-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.photo-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-badge:hover {
    transform: scale(1.1);
    background: #2e7d32;
    color: white;
}

.photo-badge i {
    font-size: 16px;
    color: #2e7d32;
}

.photo-badge:hover i {
    color: white;
}

/* Class Selection Cards (Step 3) */
.class-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.class-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: var(--br-md);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.class-card:hover {
    border-color: #2e7d32;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(46, 125, 50, 0.15);
}

.class-card.selected {
    border-color: #2e7d32;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.08) 0%, rgba(46, 125, 50, 0.03) 100%);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.class-card-label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    transition: color 0.3s ease;
}

.class-card.selected .class-card-label {
    color: #2e7d32;
}

.class-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.class-card.selected .class-card-check {
    opacity: 1;
    transform: scale(1);
}

/* Parent Search */
.parent-search-container {
    position: relative;
    margin-bottom: 24px;
}

.parent-search-result {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(46, 125, 50, 0.08);
    border-radius: var(--br-sm);
    border-left: 3px solid #2e7d32;
    display: none;
}

.parent-search-result.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.parent-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--br-md);
    font-size: 9px;
    font-weight: 600;
    margin-left: 8px;
}

.parent-badge.existing {
    background: rgba(46, 125, 50, 0.15);
    color: #2e7d32;
}

.parent-badge.new {
    background: rgba(33, 150, 243, 0.15);
    color: #1565c0;
}

/* Step 4: Student Card Preview */
.student-card-preview {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    border-radius: var(--br-lg);
    padding: 30px;
    color: white;
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.4);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.student-card-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.student-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.student-card-logo {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.9;
}

.student-card-body {
    display: flex;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.student-card-photo {
    width: 100px;
    height: 100px;
    border-radius: var(--br-md);
    background: white;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.student-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-card-photo i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #2e7d32;
}

.student-card-info {
    flex: 1;
}

.student-card-name {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.student-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 10px;
    opacity: 0.9;
}

.student-card-detail {
    display: flex;
    align-items: center;
    gap: 6px;
}

.student-card-detail i {
    font-size: 10px;
    opacity: 0.7;
}

/* Review Sections */
.review-section {
    background: white;
    border-radius: var(--br-md);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

.review-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.review-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-section-title i {
    color: #2e7d32;
}

.review-edit-btn {
    padding: 6px 12px;
    border-radius: var(--br-sm);
    font-size: 10px;
    font-weight: 500;
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.08);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-edit-btn:hover {
    background: rgba(46, 125, 50, 0.15);
}

.review-field {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.review-field:last-child {
    border-bottom: none;
}

.review-field-label {
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
}

.review-field-value {
    font-size: 10px;
    color: #334155;
    font-weight: 600;
}

/* Wizard Navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px 32px;
    border-top: 1px solid #e2e8f0;
    background: white;
}

.wizard-nav-btn {
    padding: 12px 24px;
    border-radius: var(--br-md);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wizard-nav-btn.btn-back {
    background: transparent;
    color: #64748b;
}

.wizard-nav-btn.btn-back:hover {
    background: #f1f5f9;
    color: #334155;
}

.wizard-nav-btn.btn-next,
.wizard-nav-btn.btn-submit {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.wizard-nav-btn.btn-next:hover,
.wizard-nav-btn.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.4);
}

.wizard-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Success Animation */
@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #2e7d32;
    position: absolute;
    animation: confetti 3s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .class-selection-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wizard-steps {
        flex-wrap: wrap;
    }

    .wizard-step-label {
        font-size: 8px;
    }

    .student-card-body {
        flex-direction: column;
        text-align: center;
    }

    .student-card-details {
        grid-template-columns: 1fr;
    }
}

/* Cropper Overlays */
#cropperModal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.cropper-modal-content {
    background: white;
    margin: 5vh auto;
    padding: 24px;
    border-radius: var(--br-xl);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#cropper-container {
    width: 100%;
    height: 400px;
    background: #f8fafc;
    border-radius: var(--br-md);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Hostel Management Styles */
.status-badge {
    padding: 4px 10px;
    border-radius: var(--br-xl);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-active {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.status-inactive {
    background: rgba(158, 158, 158, 0.1);
    color: #757575;
    border: 1px solid rgba(158, 158, 158, 0.2);
}

.icon-blue {
    background: rgba(33, 150, 243, 0.1) !important;
    color: #1976d2 !important;
}

.icon-green {
    background: rgba(76, 175, 80, 0.1) !important;
    color: #2e7d32 !important;
}

.icon-orange {
    background: rgba(255, 152, 0, 0.1) !important;
    color: #ef6c00 !important;
}

/* --- PREMIUM REGISTRATION SUMMARY --- */
.premium-summary-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 32px;
}

@media (max-width: 900px) {
    .premium-summary-layout {
        flex-direction: column;
        padding: 20px;
    }
}

.sticky-preview-sidebar {
    position: sticky;
    top: 20px;
    flex: 0 0 340px;
    width: 340px;
}

@media (max-width: 900px) {
    .sticky-preview-sidebar {
        position: static;
        width: 100%;
        flex: none;
    }
}

.review-details-main {
    flex: 1;
}

.review-info-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 125, 50, 0.1);
    border-radius: var(--br-xl);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.review-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.review-card-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-edit-all-btn {
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary-green);
    border: none;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.review-edit-all-btn:hover {
    background: var(--primary-green);
    color: white;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.review-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: fieldReveal 0.5s ease backwards;
}

@keyframes fieldReveal {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.review-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.review-value:empty::before {
    content: "Not provided";
    font-style: italic;
    font-weight: 400;
    color: #94a3b8;
}

/* Specific formatting for address/long fields */
.full-row {
    grid-column: 1 / -1;
}


/* --- CV-STYLE REGISTRATION SUMMARY --- */
.cv-container {
    padding: 20px;
    background: #f1f5f9;
    border-radius: var(--br-xl);
}

.cv-paper {
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-height: 800px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .cv-paper {
        flex-direction: column;
    }
}

.cv-sidebar {
    width: 260px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 40px 30px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cv-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid var(--primary-green);
        padding: 30px 20px;
        text-align: center;
    }
}

.cv-photo-frame {
    width: 150px;
    height: 180px;
    background: #f1f5f9;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin: 0 auto 30px;
    overflow: hidden;
    position: relative;
}

.cv-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-photo-frame i {
    font-size: 60px;
    color: #cbd5e1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cv-sidebar-section {
    margin-bottom: 30px;
}

.cv-sidebar-title {
    font-size: 9px;
    font-weight: 800;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: block;
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
    padding-bottom: 4px;
}

.cv-contact-item {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cv-contact-label {
    font-size: 8px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cv-contact-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-all;
}

.cv-main {
    flex: 1;
    padding: 50px 40px;
}

@media (max-width: 768px) {
    .cv-main {
        padding: 30px 20px;
    }
}

.cv-header {
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 20px;
}

.cv-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 4px;
}

.cv-role {
    font-size: 9.6px;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.cv-section {
    margin-bottom: 35px;
}

.cv-section-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cv-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.cv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 480px) {
    .cv-grid {
        grid-template-columns: 1fr;
    }
}

.cv-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cv-item-label {
    font-size: 8px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cv-item-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
}

.cv-print-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
}

@media print {
    .wizard-container, .wizard-navigation, .portal-header, .cv-print-btn {
        display: none !important;
    }
    body {
        background: white;
        padding: 0;
    }
    .cv-container {
        padding: 0;
        background: white;
    }
    .cv-paper {
        box-shadow: none;
        border: none;
        width: 100%;
        max-width: none;
        margin: 0;
    }
}

/* PWA Install Button - Floating Action Button */
.pwa-install-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideUp 0.5s ease;
}

.pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.5);
}

.pwa-install-btn:active {
    transform: translateY(0);
}

.pwa-install-btn i {
    font-size: 16px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .pwa-install-btn {
        bottom: 15px;
        right: 15px;
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* Hide install button when app is installed */
@media all and (display-mode: standalone) {
    .pwa-install-btn {
        display: none !important;
    }
}
