/* Governance Monitoring Form Styles */

/* Hide default Syncfusion dialog icon that shows as broken character */
.e-dlg-header-content::before {
    display: none !important;
}

.e-dialog .e-dlg-header-content .e-dlg-header {
    padding-left: 0 !important;
}

.monitoring-form-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    padding: 0.75rem 2rem;
    background: white;
    border-bottom: 1px solid #e1e8ed;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: #1976d2;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    text-decoration: underline;
    color: #1565c0;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #666;
}

.breadcrumb-current {
    color: #333;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    border-bottom: 1px solid #e1e8ed;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.monitoring-form-title {
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
    color: #1a1a1a;
}

.header-left h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
}

.header-left {
    display: flex;
    flex-direction: column;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.term-badge, .role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin-right: 0.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.term-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.role-badge {
    background: #f3e5f5;
    color: #7b1fa2;
}

.completed-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #4caf50;
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.completed-badge i {
    font-size: 1rem;
}

.save-status {
    color: #666;
    font-size: 0.875rem;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: #1976d2;
}

.form-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Left Navigation Panel */
.question-nav {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-right: 1px solid #e1e8ed;
    overflow-y: auto;
    padding: 1rem;
}

.progress-indicator {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e1e8ed;
}

.progress-label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.25rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-count {
    display: block;
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: #e1e8ed;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
    transition: width 0.3s ease;
}

.nav-question {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: none;
    border-left: 3px solid transparent;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.nav-question:hover {
    background: #e3f2fd;
    transform: translateX(2px);
}

.nav-question.active {
    background: #e3f2fd;
    border-left-color: #1976d2;
    font-weight: 500;
}

.nav-question.status-complete {
    border-left-color: #4caf50;
}

.nav-question.status-in-progress {
    border-left-color: #ff9800;
}

.status-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.status-complete .status-icon {
    color: #4caf50;
}

.status-in-progress .status-icon {
    color: #ff9800;
}

.status-not-started .status-icon {
    color: #ccc;
}

.question-code {
    flex-shrink: 0;
    font-weight: 600;
    color: #1976d2;
    min-width: 40px;
}

.question-preview {
    flex: 1;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.4;
}

/* Main Content Area */
.question-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: #f5f7fa;
}

.question-main {
    margin-bottom: 2rem;
}

.question-main h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 600;
}

.question-purpose {
    padding: 1rem;
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
    color: #e65100;
    font-size: 0.9rem;
    line-height: 1.5;
}

.response-section {
    margin-bottom: 2rem;
}

.response-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.95rem;
}

.response-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s;
    background: white;
}

.response-textarea:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* Sub-questions */
.sub-questions {
    margin-bottom: 2rem;
}

.sub-question {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sub-question h4 {
    margin: 0 0 1rem 0;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
}

.guidance {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
}

.guidance i {
    color: #ff9800;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.sub-response {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: border-color 0.2s;
}

.sub-response:focus {
    outline: none;
    border-color: #1976d2;
}

/* Evidence Section */
.evidence-section {
    margin-bottom: 1.5rem;
}

.evidence-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.evidence-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.2s;
}

.evidence-textarea:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.evidence-upload {
    position: relative;
    margin-bottom: 1rem;
}

.file-input {
    display: none;
}

.upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border: 2px dashed #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    font-size: 0.9rem;
}

.upload-label:hover {
    border-color: #1976d2;
    color: #1976d2;
    background: #f8f9fa;
}

.evidence-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.evidence-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.evidence-item i {
    color: #1976d2;
}

.evidence-item span {
    flex: 1;
    font-size: 0.9rem;
}

.btn-remove {
    width: 24px;
    height: 24px;
    border: none;
    background: #f44336;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-remove:hover {
    background: #d32f2f;
}

/* Observations Grid */
.observations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.observation-box {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.observation-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.observation-box textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: border-color 0.2s;
}

.observation-box textarea:focus {
    outline: none;
    border-color: #1976d2;
}

/* Navigation Buttons */
.question-nav-buttons {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e1e8ed;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: #1976d2;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.btn-secondary:hover:not(:disabled) {
    background: #e0e0e0;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Context Panel */
.context-panel {
    width: 320px;
    flex-shrink: 0;
    background: white;
    border-left: 1px solid #e1e8ed;
    padding: 1.5rem;
    overflow-y: auto;
}

.context-panel h3 {
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e1e8ed;
    font-size: 1.1rem;
    font-weight: 600;
}

.context-section {
    margin-bottom: 1.5rem;
}

.context-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.context-text {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #333;
}

.context-empty {
    font-size: 0.875rem;
    color: #999;
    font-style: italic;
}

.context-data {
    padding: 0.5rem;
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 0.25rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .context-panel {
        display: none;
    }

    .question-nav {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .form-body {
        flex-direction: column;
    }

    .question-nav {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid #e1e8ed;
    }

    .question-content {
        padding: 1rem;
    }

    .observations-grid {
        grid-template-columns: 1fr;
    }

    .form-header {
        padding: 1rem;
    }

    .header-left h1 {
        font-size: 1.25rem;
    }
}

/* Loading State */
.monitoring-form-container > p {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-size: 1.1rem;
    color: #666;
}

/* ========================================
   MONITORING VISITS PAGE STYLES
   ======================================== */

.visits-container {
    padding: 2rem;
    background: #f5f7fa;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.visits-header {
    margin-bottom: 1rem;
}

.visits-header h1 {
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
}

.filters {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: nowrap;
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 120px;
    max-width: 160px;
}

.filter-select:focus {
    outline: none;
    border-color: #1976d2;
}

.filter-select:hover {
    border-color: #90caf9;
}

.btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #1976d2;
    color: white;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-primary:hover:not(:disabled) {
    background: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.btn-secondary:hover:not(:disabled) {
    background: #e0e0e0;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #d32f2f;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading-state, .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.loading-state i {
    font-size: 2rem;
    color: #1976d2;
    margin-bottom: 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
    font-size: 1.25rem;
}

.empty-state p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.visits-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow-x: auto;
    overflow-y: visible;
}

.visits-table {
    width: 100%;
    border-collapse: collapse;
}

.visits-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e1e8ed;
}

.visits-table th {
    padding: 0.5rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.visits-table tbody tr {
    border-bottom: 1px solid #e1e8ed;
    transition: background-color 0.2s;
}

.visits-table tbody tr:hover {
    background: #f8f9fa;
}

.visits-table td {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #333;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-scheduled {
    background: #e3f2fd;
    color: #1976d2;
}

.status-inprogress {
    background: #fff3e0;
    color: #ff9800;
}

.status-completed {
    background: #e8f5e9;
    color: #4caf50;
}

.status-cancelled {
    background: #f5f5f5;
    color: #666;
}

.actions-menu {
    position: relative;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: #1976d2;
}

.actions-dropdown {
    position: absolute;
    left: 40px;
    top: 0;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    min-width: 150px;
    overflow: hidden;
}

.actions-dropdown button {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
    color: #333;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.actions-dropdown button:hover {
    background: #f8f9fa;
}

.actions-dropdown button.delete-action {
    color: #f44336;
}

.actions-dropdown button.delete-action:hover {
    background: #ffebee;
}

.actions-dropdown button.disabled-action {
    color: #9e9e9e;
    cursor: not-allowed;
    opacity: 0.6;
}

.actions-dropdown button.disabled-action:hover {
    background: none;
}

.actions-dropdown button:disabled {
    color: #9e9e9e;
    cursor: not-allowed;
    opacity: 0.6;
}

.actions-dropdown button:disabled:hover {
    background: none;
}

/* ========================================
   SYNCFUSION GRID STYLES
   IMPLICATION: Consistent grid styling matching other pages
   ======================================== */
.grid-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 0 1rem;
}

/* Grid header styling to match application theme */
.grid-container .e-gridheader {
    background: #f8f9fa !important;
    border-bottom: 2px solid #e1e8ed !important;
}

.grid-container .e-headercell {
    background: #f8f9fa !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0.625rem 1rem !important;
}

/* Grid row styling */
.grid-container .e-row {
    border-bottom: 1px solid #e5e7eb !important;
}

.grid-container .e-row:hover {
    background: #f9fafb !important;
}

.grid-container .e-rowcell {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
    vertical-align: middle !important;
}

/* Alternate row colors */
.grid-container .e-altrow {
    background: #fafafa !important;
}

/* School name styling */
.school-name {
    font-weight: 500;
    color: #1a1a1a;
}

/* Action Buttons in Grid */
/* IMPLICATION: Horizontal button layout for consistent appearance across all grids */
.action-buttons {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
}

/* Radzen button sizing in grid actions */
.action-buttons .rz-button {
    padding: 0.25rem 0.5rem !important;
    min-width: unset !important;
    width: 32px !important;
    height: 32px !important;
}

/* Pager styling */
.grid-container .e-pager {
    background: #f8f9fa !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 0.5rem !important;
}

.grid-container .e-pagercontainer {
    background: transparent !important;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.modal-small {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e1e8ed;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-close:hover {
    background: #f5f5f5;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e1e8ed;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1976d2;
}

.form-group input:disabled,
.form-group select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400;
}

.radio-label input[type="radio"] {
    width: auto;
    cursor: pointer;
}

.radio-label input[type="radio"]:disabled {
    cursor: not-allowed;
}

.error-message {
    padding: 1rem;
    background: #ffebee;
    border-left: 4px solid #f44336;
    border-radius: 4px;
    color: #c62828;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-message {
    padding: 1rem;
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
    color: #e65100;
    font-size: 0.875rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .visits-container {
        padding: 1rem;
    }

    .visits-header h1 {
        font-size: 1.5rem;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

    .btn-primary {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .visits-table-container {
        overflow-x: auto;
    }

    .visits-table {
        min-width: 600px;
    }

    .modal-content {
        margin: 1rem;
    }
}

/* Tab Navigation Styles */
.monitoring-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    border-bottom: 2px solid #e1e8ed;
}

.monitoring-tabs .tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.monitoring-tabs .tab:hover {
    color: #1976d2;
    background: #f8f9fa;
}

.monitoring-tabs .tab.active {
    color: #1976d2;
    border-bottom-color: #1976d2;
    background: #f8f9fa;
}

/* Dashboard Container */
.dashboard-container {
    padding: 2rem 0 2rem 0;
    background: #f5f7fa;
    min-height: calc(100vh - 200px);
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.year-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.year-selector-wrapper label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
}

.year-selector {
    padding: 0.5rem 1rem;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.summary-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #e3f2fd;
    color: #1976d2;
}

.summary-card .card-icon.scheduled {
    background: #fff3e0;
    color: #f57c00;
}

.summary-card .card-icon.in-progress {
    background: #e8f5e9;
    color: #388e3c;
}

.summary-card .card-icon.completed {
    background: #f3e5f5;
    color: #7b1fa2;
}

.summary-card .card-content {
    flex: 1;
}

.summary-card .card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.summary-card .card-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.summary-card .card-detail {
    font-size: 0.75rem;
    color: #999;
}

/* Breadcrumb Navigation (Dashboard) */
.breadcrumb-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 2rem 1.5rem 2rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 6px;
}

.breadcrumb-back {
    padding: 0.5rem 1rem;
    border: 1px solid #e1e8ed;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #1976d2;
    transition: all 0.2s;
}

.breadcrumb-back:hover {
    background: #f8f9fa;
    border-color: #1976d2;
}

.breadcrumb-text {
    font-size: 0.9rem;
    color: #666;
}

/* Progress Grid */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem;
}

.progress-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.2s;
}

.progress-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.progress-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-card .card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.progress-card .percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1976d2;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e1e8ed;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-bar.high {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
}

.progress-bar.medium {
    background: linear-gradient(90deg, #ff9800, #ffc107);
}

.progress-bar.low {
    background: linear-gradient(90deg, #f44336, #e91e63);
}

.progress-card .card-footer {
    font-size: 0.875rem;
    color: #666;
}

/* Aim Card - Modern Layout */
.aim-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.aim-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #1976d2;
}

/* Progress Grid for Aims */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem 2rem 2rem;
}

/* School List View */
.school-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.school-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.school-info {
    flex: 1;
}

.school-info h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.school-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.school-progress .progress-bar-container {
    flex: 1;
    max-width: 300px;
    margin: 0;
}

.school-progress .percentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1976d2;
    min-width: 60px;
    text-align: right;
}

.school-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-scheduled {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.status-inprogress {
    background: #e8f5e9;
    color: #388e3c;
}

.status-badge.status-completed {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Loading State */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #666;
    font-size: 1rem;
}

.loading-state i {
    margin-right: 0.5rem;
}

/* Filter Row (for Meeting Agendas page) */
.filters-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    color: #333;
}

.hub-readiness-list {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-success {
    background-color: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner-container {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.loading-spinner-container p {
    margin: 0;
    color: #495057;
    font-weight: 500;
    font-size: 1.1rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.action-buttons .btn {
    width: 100%;
    text-align: left;
}

/* Summary Section */
.summary-section {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.summary-section h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
}

.summary-description {
    margin: 0 0 2rem 0;
    color: #666;
    font-size: 0.95rem;
}

.summary-field {
    margin-bottom: 1.5rem;
}

.summary-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.summary-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.2s;
}

.summary-textarea:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.summary-nav {
    margin-top: 1rem;
    border-top: 1px solid #e1e8ed;
    padding-top: 1rem;
}
