* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background-color: #f8fafc;
    color: #1e293b;
}

body > * {
    margin-left: 0 !important;
}

main, 
.dashboard-container,
.content-area {
    margin-left: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.navbar {
    display: none;
}

.dashboard-container {
    max-width: 100%;
    margin: 0;
    padding: 1rem;
}

main {
    margin-left: 0 !important;
    padding: 20px;
    padding-top: 80px;
    width: 100%;
    box-sizing: border-box;
}

.content-area {
    width: 100%;
    padding: 0;
}

/* Dashboard Container Styles */
.dashboard-container {
    padding: 0;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    main {
        padding: 0.5rem;
    }
    
    .dashboard-container {
        padding: 0.5rem;
    }
}

/* Summary Tiles Styles */
.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-tile {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tile-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: #f1f5f9;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.tile-content h3 {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.tile-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.tile-trend {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tile-trend.positive {
    color: #10b981;
}

.tile-trend.negative {
    color: #ef4444;
}

.tile-trend.neutral {
    color: #64748b;
}

/* Chart Card Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.dashboard-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-card.wide {
    grid-column: span 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

/* Add these new styles for better typography */
h1 {
    margin: 0;
    padding-left: 60px;
    line-height: 1.2;
    font-size: 2rem;
    color: #1e293b;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card.wide {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .dashboard-summary {
        grid-template-columns: 1fr;
    }
}

/* Modern Form Styles */
.modern-form {
    background: #ffffff;
    border-radius: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: #1e293b;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.submit-btn:hover {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(59, 130, 246, 0.2);
}

.clear-form-btn {
    padding: 0.5rem 1rem;
    background-color: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-form-btn:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

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

/* Add animation for form submission */
@keyframes formSubmit {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

.submit-btn:active {
    animation: formSubmit 0.3s ease;
}

.dashboard-card canvas {
    max-height: 300px;
    width: 100% !important;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Metrics Page Styles */
.metrics-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.date-range-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.date-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-inputs input {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.quick-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.metrics-insights {
    margin-top: 2rem;
}

.insight-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.insight-period {
    font-size: 0.875rem;
    color: #64748b;
}

.insight-list {
    list-style: none;
    padding: 0;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #f8fafc;
}

.insight-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.insight-item.positive .insight-icon {
    background: #dcfce7;
    color: #10b981;
}

.insight-item.negative .insight-icon {
    background: #fee2e2;
    color: #ef4444;
}

.insight-content p {
    margin: 0 0 0.25rem 0;
    color: #1e293b;
}

.insight-meta {
    font-size: 0.875rem;
    color: #64748b;
}

/* Reports Styles */
.reports-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.reports-header {
    margin-bottom: 2rem;
}

.report-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.filter-group {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.filter-group > div {
    flex: 1;
    min-width: 200px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-group select {
    appearance: none;
    background: #fff url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2014%2014%22%3E%3Cpath%20fill%3D%22%23a0aec0%22%20d%3D%22M7%2010L1%204h12z%22%2F%3E%3C%2Fsvg%3E") no-repeat right 1rem center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    width: 100%;
    transition: all 0.2s ease;
}

.filter-group select:hover {
    border-color: #94a3b8;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.filter-group select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    outline: none;
}

.filter-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.reset-filters-btn {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.reset-filters-btn:hover {
    background-color: #e2e8f0;
    color: #475569;
}

.apply-filters-btn {
    background-color: #3b82f6;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.apply-filters-btn:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.export-report-btn {
    background-color: #10b981;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.export-report-btn:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.report-summary {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.summary-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.summary-metric {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.summary-metric:hover {
    transform: translateY(-2px);
}

.metric-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
}

.metric-trend {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.report-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-actions {
    display: flex;
    gap: 1rem;
}

.search-reports {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    min-width: 250px;
}

.table-view-options {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
}

.report-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5rem;
}

.report-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
}

.report-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.report-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: 8px;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:not(:disabled):hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}

/* Add icons to next/previous buttons */
.pagination-btn.previous::before {
    content: '←';
}

.pagination-btn.next::after {
    content: '→';
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
    margin: 0 0.5rem;
}

.page-btn {
    padding: 0.5rem 0.75rem;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.page-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.page-btn.active:hover {
    background: #2563eb;
}

.entries-per-page {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-right: 1rem;
}

/* Status badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.completed {
    background: #dcfce7;
    color: #10b981;
}

.status-badge.active {
    background: #dbeafe;
    color: #3b82f6;
}

.status-badge.scheduled {
    background: #fef3c7;
    color: #d97706;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-group {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .table-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .table-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .search-reports {
        width: 100%;
    }
    
    .report-pagination {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Data Management Styles */
.data-management-container {
    padding: 2rem;
}

.management-header {
    margin-bottom: 2rem;
}

.section-description {
    color: #64748b;
    margin-top: 0.5rem;
}

.data-management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.data-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.management-form {
    margin-top: 1.5rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section-title {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #475569;
    font-weight: 500;
}

.form-group.required label::after {
    content: "*";
    color: #ef4444;
    margin-left: 4px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

/* Program Cards */
.programs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.program-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.program-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.program-status.scheduled {
    background-color: #dbeafe;
    color: #2563eb;
}

.program-status.active {
    background-color: #dcfce7;
    color: #16a34a;
}

.program-status.completed {
    background-color: #f1f5f9;
    color: #64748b;
}

.program-details {
    margin-bottom: 1.5rem;
}

.program-details p {
    margin: 0.5rem 0;
    color: #475569;
}

.program-actions {
    display: flex;
    gap: 1rem;
}

.edit-btn,
.delete-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-btn {
    background-color: #4f46e5;
    color: white;
    border: none;
}

.edit-btn:hover {
    background-color: #4338ca;
}

.delete-btn {
    background-color: #fee2e2;
    color: #ef4444;
    border: none;
}

.delete-btn:hover {
    background-color: #fecaca;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    background-color: #22c55e;
}

.notification.error {
    background-color: #ef4444;
}

.notification.info {
    background-color: #3b82f6;
}

/* Program Management Styles */
.programs-list {
    margin-top: 1.5rem;
}

.program-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.program-card:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.program-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.program-type {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.program-details {
    margin-bottom: 1rem;
}

.program-details p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0.5rem 0;
}

.program-details strong {
    color: #475569;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.status-badge.active {
    background: #dcfce7;
    color: #059669;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #dc2626;
}

.program-actions {
    display: flex;
    gap: 0.75rem;
}

.program-actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.edit-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.delete-btn {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.delete-btn:hover {
    background: #fecaca;
}

.no-programs {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 8px;
    color: #64748b;
}

/* Modal Styles */
.modal {
    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;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1e293b;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
}

.close-modal:hover {
    color: #1e293b;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body h4 {
    color: #1e293b;
    margin: 0 0 1rem 0;
}

.modal-body ul {
    margin: 0 0 1.5rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    color: #475569;
    margin-bottom: 0.5rem;
}

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .search-controls {
        flex-direction: column;
    }

    .filter-controls {
        width: 100%;
    }

    .filter-controls select {
        flex: 1;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background: #dcfce7;
    color: #10b981;
    border-left: 4px solid #10b981;
}

.notification.error {
    background: #fee2e2;
    color: #ef4444;
    border-left: 4px solid #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Tab Transition Styles */
.hidden-section {
    display: none;
}

section {
    animation: fadeIn 0.3s ease-out;
}

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

/* Action Button Styles */
.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.action-btn.edit {
    background: #dbeafe;
    color: #3b82f6;
    margin-right: 0.5rem;
}

.action-btn.delete {
    background: #fee2e2;
    color: #ef4444;
}

.action-btn:hover {
    filter: brightness(0.95);
}

/* Add styles for required fields */
.form-group.required label::after {
    content: "*";
    color: #ef4444;
    margin-left: 0.25rem;
}

/* Add styles for form validation */
.form-group input:invalid,
.form-group select:invalid {
    border-color: #ef4444;
}

.form-group input:invalid:focus,
.form-group select:invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Add styles for form success state */
.form-group.success input {
    border-color: #10b981;
}

.form-group.success input:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Dropdown and Button Styles */
.view-all-btn, .time-range-select {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-btn:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    color: #3b82f6;
}

.view-all-btn::after {
    content: '→';
    font-size: 1.1em;
}

.time-range-select {
    appearance: none;
    padding-right: 2rem;
    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 0.5rem center;
    background-size: 1.2em;
}

.time-range-select:hover {
    border-color: #3b82f6;
}

.time-range-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Time Period Dropdown Styles */
.time-period-dropdown {
    position: relative;
    min-width: 140px;
}

.time-period-dropdown select {
    appearance: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 2rem 0.625rem 1rem;
    width: 100%;
    transition: all 0.2s ease;
}

.time-period-dropdown::after {
    content: "▼";
    color: #64748b;
    font-size: 0.75rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.time-period-dropdown select:hover {
    border-color: #94a3b8;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.time-period-dropdown select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    outline: none;
}

.time-period-dropdown:hover::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Form Select Styles */
.form-group select {
    appearance: none;
    background: #fff url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2014%2014%22%3E%3Cpath%20fill%3D%22%23a0aec0%22%20d%3D%22M7%2010L1%204h12z%22%2F%3E%3C%2Fsvg%3E") no-repeat right 1rem center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    height: 2.75rem;
    padding: 0 2.5rem 0 1rem;
    width: 100%;
    transition: all 0.2s ease;
}

.form-group select:hover {
    border-color: #94a3b8;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-group select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-group select option {
    padding: 0.5rem;
    font-size: 0.875rem;
}

.form-group select:required:invalid {
    color: #94a3b8;
}

.form-group select option[value=""][disabled] {
    display: none;
}

.form-group select option:not([value=""][disabled]) {
    color: #1e293b;
}

.form-group.required label::after {
    content: "*";
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.5rem;
}

/* Program Filters */
.program-filters {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1e293b;
    background: #fff;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.filter-group {
    display: flex;
    gap: 0.75rem;
}

.filter-group select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1e293b;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' 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.75rem center;
    background-size: 1rem;
    min-width: 160px;
}

.filter-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.refresh-btn svg {
    transition: transform 0.3s ease;
}

.refresh-btn:hover svg {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .program-filters {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select {
        flex: 1;
    }
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: -280px;
    transform: none !important;
    top: 0;
    bottom: 0;
    width: 280px;
    background: #1e1e2d;
    color: #fff;
    z-index: 1000;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    left: 0;
    transform: none !important;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: #1e1b4b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: #e2e8f0;
    opacity: 0.9;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: #e2e8f0;
    letter-spacing: -0.01em;
}

.close-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.close-menu svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    opacity: 0.9;
}

/* Sidebar */
#sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #1e1b4b;
    transition: all 0.3s ease;
    z-index: 100;
    overflow-y: auto;
}

#sidebar.active {
    left: 0;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.1);
}

/* Navigation Links */
.nav-links {
    padding: 1rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #e2e8f0;
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.nav-links a svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    stroke-width: 2;
}

.nav-links a:hover svg {
    opacity: 0.9;
}

.nav-links a.active svg {
    opacity: 1;
}

/* Overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 90;
}

#overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menu Toggle Button */
.menu-toggle {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 8px;
    background: white;
    color: #1e293b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.menu-toggle svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
    opacity: 0.8;
}

/* Main Content */
main {
    margin-left: 0 !important;
    padding: 20px;
    padding-top: 80px;
    width: 100%;
    box-sizing: border-box;
}

main.sidebar-active {
    margin-left: 280px;
}

/* Header styles */
h1 {
    margin: 0;
    padding-left: 60px;
    line-height: 1.2;
    font-size: 2rem;
    color: #1e293b;
}

/* Menu toggle button */
.menu-toggle {
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 998;
    background: #1e1e2d;
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Section headers */
section {
    position: relative;
}

section > h1:first-child {
    margin-bottom: 2rem;
    padding-left: 60px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    main {
        padding: 15px;
        padding-top: 70px;
    }
    
    h1 {
        padding-left: 50px;
        font-size: 1.75rem;
    }
}

/* Add Program Button */
.add-program-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #4f46e5;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.add-program-btn:hover {
    background-color: #4338ca;
    transform: translateY(-1px);
}

.add-program-btn svg {
    width: 20px;
    height: 20px;
}

/* Hidden section class */
.hidden-section {
    display: none;
}

/* Active section */
section:not(.hidden-section) {
    display: block;
}

/* Card Actions and Buttons */
.card-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.help-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-btn:hover {
    background-color: #e2e8f0;
    color: #1e293b;
    transform: translateY(-1px);
}

.help-btn svg {
    width: 20px;
    height: 20px;
}

.clear-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: none;
    background-color: #f1f5f9;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background-color: #e2e8f0;
    color: #1e293b;
    transform: translateY(-1px);
}

.clear-btn::before {
    content: '↺';
    font-size: 1.1em;
}

/* Form Submit Button */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1.5rem;
    width: auto;
}

.submit-btn:hover {
    background-color: #4338ca;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* Form Container */
.management-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

/* Programs List Container */
.manage-programs {
    margin-top: 2rem;
}

.programs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.no-programs {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
    grid-column: 1 / -1;
}

/* View All Programs Modal */
.programs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.programs-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1e293b;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: #e5e7eb;
    color: #1e293b;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.program-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.2s ease;
}

.program-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.program-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: #1e293b;
}

.program-type {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.program-date {
    color: #0f172a;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.program-department,
.program-participants,
.program-cost {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.scheduled {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.in-progress {
    background: #dcfce7;
    color: #166534;
}

.no-programs {
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    padding: 2rem;
    grid-column: 1 / -1;
}

/* View All button styles */
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.view-all-btn:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

.view-all-btn svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.view-all-btn:hover svg {
    opacity: 1;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

 

/* Add Program Button */
.add-program-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-program-btn:hover {
    background-color: var(--primary-color-dark);
}

.add-program-btn a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
}

.data-input-section {
    scroll-margin-top: 2rem; /* Adds some space when scrolling to the section */
}
.app-name {
    position: fixed;
    top: 1rem;
    right: 2rem;
    z-index: 1000;
}

.app-name h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}
