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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Demo notification */
.demo-notification {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 101;
}

.demo-notification i {
    margin-right: 0.5rem;
}

/* Header */
.header {
    background: white;
    color: #333;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    border-radius: 4px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-title {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: #2196F3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    gap: 0.25rem;
}

/* Container */
.container {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    min-height: calc(100vh - 80px);
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: #2196F3;
    color: white;
    padding: 2rem 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 1.5rem;
    padding: 0 1.5rem;
}

.sidebar-section h3 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.4rem;
    line-height: 1.3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.sidebar-section h3:hover {
    background-color: rgba(255,255,255,0.1);
    padding: 0.4rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.sidebar-section h3 .toggle-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.sidebar-section.collapsed h3 .toggle-arrow {
    transform: rotate(-90deg);
}

.sidebar-section ul {
    list-style: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 500px; /* Достатъчно високо за всички категории */
}

.sidebar-section.collapsed ul {
    max-height: 0;
}

.sidebar-section li {
    margin-bottom: 0.4rem;
}

.sidebar-section a {
    color: white;
    text-decoration: none;
    padding: 0.4rem 0;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 0.85rem;
    line-height: 1.4;
}

.sidebar-section a:hover {
    background-color: rgba(255,255,255,0.1);
    padding-left: 0.5rem;
}

.sidebar-section a.active {
    color: #ffffff;
    background: #e3f2fd;
    font-weight: 600;
    border-radius: 4px;
    border-left: 3px solid rgb(255, 255, 255);
    padding-left: 0.75rem;
}

.sidebar-close {
    display: none;
}

/* Sidebar home link */
.sidebar-home {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.home-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
}

.home-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.home-link.active {
    background: #e3f2fd;
    color: #2196f3;
    font-weight: 600;
    border-left: 3px solid rgb(255, 255, 255);
}

.home-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

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

.dropdown-toggle {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.dropdown-toggle:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.dropdown.open .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid #f8f9fa;
}

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

.dropdown-item:hover {
    background: #f8f9fa;
    color: #1976d2;
}

.dropdown-item.active {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
}

.dropdown-item i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    background-color: #f8f9fa;
    min-width: 0;
    overflow-x: hidden;
}

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

.welcome-section h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.welcome-section h2 {
    font-size: 1.5rem;
    color: #666;
    font-weight: normal;
}

/* Quick Actions Grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    width: 100%;
}

.action-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.action-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.action-icon.green { background: #4CAF50; }
.action-icon.blue { background: #2196F3; }
.action-icon.orange { background: #FF9800; }
.action-icon.purple { background: #9C27B0; }
.action-icon.red { background: #F44336; }
.action-icon.teal { background: #009688; }
.action-icon.blue-alt { background: #03A9F4; }
.action-icon.brown { background: #795548; }

.action-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.action-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Statistics Section */
.statistics-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.info-panel, .events-panel {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.info-panel h3, .events-panel h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.2rem;
}

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

.stat-item {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background: #f8f9fa;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.8rem;
    color: #999;
}

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

.event-icon {
    width: 40px;
    height: 40px;
    background: #FFC107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.event-content p {
    margin-bottom: 0.25rem;
    color: #333;
}

.event-content small {
    color: #666;
    font-style: italic;
}

/* Form Styles */
.form-container {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
}

.form-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-section h2 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.form-section p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.form-fields {
    padding: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group label.required {
    color: #dc3545;
    font-weight: 600;
}

.form-group label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.form-group textarea {
    resize: vertical;
    min-height: 70px;
}

/* Compact form grid for better organization */
.form-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-fields-grid .form-group {
    margin-bottom: 0.8rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2196F3;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-success {
    background: #4CAF50;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.search-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-filters input,
.search-filters select {
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

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

.calendar-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.calendar-nav button {
    background: #2196F3;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day {
    background: white;
    padding: 1rem;
    min-height: 120px;
    position: relative;
}

.calendar-day.other-month {
    background: #f5f5f5;
    color: #999;
}

.calendar-day.today {
    background: #e3f2fd;
}

.calendar-day-number {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.calendar-event {
    background: #2196F3;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
}

.calendar-event.vacation {
    background: #4CAF50;
}

.calendar-event.exam {
    background: #FF5722;
}

.calendar-event.meeting {
    background: #9C27B0;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.calendar-legend h3 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.legend-items {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.vacation { background: #4CAF50; }
.legend-color.exam { background: #FF5722; }
.legend-color.meeting { background: #9C27B0; }
.legend-color.event { background: #2196F3; }
.legend-color.holiday { background: #FFC107; }

/* Calendar Navigation */
.calendar-options {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.calendar-options select {
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.nav-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background: #1976D2;
}

/* Month View */
.month-view {
    margin-top: 1.5rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.weekday {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #555;
    background: #e3f2fd;
}

.calendar-day {
    min-height: 120px;
    border: 1px solid #e0e0e0;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    flex-direction: column;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.today {
    background: #e3f2fd;
    border-color: #2196F3;
}

.calendar-day.weekend {
    background: #fafafa;
}

.calendar-day.empty {
    background: #f5f5f5;
    cursor: default;
}

.calendar-day-number {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.calendar-day.today .calendar-day-number {
    color: #2196F3;
}

.calendar-day-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-event {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: white;
    cursor: pointer;
    transition: opacity 0.3s;
}

.calendar-event:hover {
    opacity: 0.8;
}

/* Year View */
.year-view {
    margin-top: 1.5rem;
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.year-month {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
}

.year-month h4 {
    margin: 0 0 1rem 0;
    text-align: center;
    color: #2196F3;
}

.mini-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 1px;
}

.mini-weekday {
    padding: 0.25rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    background: #e0e0e0;
}

.mini-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.mini-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mini-day:hover {
    background: #e3f2fd;
}

.mini-day.today {
    background: #2196F3;
    color: white;
}

.mini-day.empty {
    background: #f5f5f5;
    cursor: default;
}

.mini-day.has-events {
    background: #ffeb3b;
    font-weight: bold;
}

/* Events Summary */
.events-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.summary-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.summary-section h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upcoming-event {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upcoming-event:hover {
    background: #e3f2fd;
}

.event-date {
    background: #2196F3;
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

.event-info {
    flex: 1;
}

.event-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.event-type {
    font-size: 0.9rem;
    color: #666;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Event Details */
.event-details h3 {
    margin: 0 0 1rem 0;
    color: #2196F3;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    gap: 0.5rem;
}

.info-row strong {
    min-width: 120px;
    color: #555;
}

/* Messages Interface Styles */
.contacts-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.contacts-header h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.message-search input {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.contact-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.contact-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.contact-tab:hover {
    background: #e3f2fd;
}

.contact-tab.active {
    background: #2196F3;
    color: white;
}

.contact-count {
    background: rgba(255,255,255,0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.contact-tab.active .contact-count {
    background: rgba(255,255,255,0.2);
}

.contacts-list {
    max-height: 500px;
    overflow-y: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.contact-item:hover {
    background: #f8f9fa;
}

.contact-item.active {
    background: #e3f2fd;
    border-left: 3px solid #2196F3;
}

.contact-avatar {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-avatar.teacher { background: #4CAF50; }
.contact-avatar.parent { background: #FF9800; }
.contact-avatar.staff { background: #9C27B0; }

.unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #333;
}

.contact-role {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.last-message {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.last-message-time {
    font-size: 0.75rem;
    color: #bbb;
}

.no-contacts {
    padding: 2rem;
    text-align: center;
    color: #666;
}

/* Message Panel */
.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: white;
}

.conversation-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.conversation-info .contact-avatar {
    width: 40px;
    height: 40px;
    background: #2196F3;
}

.contact-details h3 {
    margin: 0;
    color: #333;
}

.contact-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    color: #666;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background: #f0f0f0;
    color: #333;
}

/* Message Content */
.message-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8f9fa;
    max-height: 400px;
}

.no-conversation,
.no-messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    text-align: center;
}

.message {
    margin-bottom: 1rem;
    max-width: 80%;
}

.message.outgoing {
    margin-left: auto;
}

.message.incoming {
    margin-right: auto;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.message-sender {
    font-weight: 600;
    color: #333;
}

.message-time {
    font-size: 0.75rem;
    color: #999;
}

.priority-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.priority-badge.high {
    background: #FF9800;
    color: white;
}

.priority-badge.urgent {
    background: #f44336;
    color: white;
}

.message-subject {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.message-body {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    line-height: 1.5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.message.outgoing .message-body {
    background: #2196F3;
    color: white;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

.read-receipt {
    color: #4CAF50;
}

.category-tag {
    background: #e0e0e0;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    color: #666;
}

/* Message Compose */
.message-compose {
    border-top: 1px solid #e0e0e0;
    background: white;
    padding: 1rem;
}

.compose-tools {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.tool-btn {
    background: transparent;
    border: 1px solid #e0e0e0;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tool-btn:hover {
    background: #f0f0f0;
}

.message-input-container {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.message-input {
    flex: 1;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    resize: vertical;
    font-family: inherit;
    min-height: 80px;
}

.message-input:focus {
    outline: none;
    border-color: #2196F3;
}

.send-area {
    flex-shrink: 0;
}

/* Compose Modal */
.compose-modal {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.compose-fields {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 1rem;
}

.recipients-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.selected-recipients {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.recipient-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recipient-tag .remove-btn {
    background: none;
    border: none;
    color: #1976d2;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compose-editor {
    position: relative;
}

.editor-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px 6px 0 0;
    border: 1px solid #e0e0e0;
    border-bottom: none;
}

.editor-toolbar button {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.editor-toolbar button:hover {
    background: #e0e0e0;
}

/* Message Stats */
.message-stats {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.message-stats h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
}

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

.message-stats .stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    background: #2196F3;
}

.stat-icon.unread {
    background: #FF9800;
}

.stat-icon.sent {
    background: #4CAF50;
}

.stat-info {
    flex: 1;
}

.message-stats .stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.25rem;
}

.message-stats .stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Message Styles */
.message-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    height: 600px;
}

.contacts-panel {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-item:hover {
    background: #f8f9fa;
}

.contact-item.active {
    background: #e3f2fd;
}

.contact-avatar {
    width: 40px;
    height: 40px;
    background: #2196F3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.message-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.message-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.message-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.message-compose {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.message-input {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
}

.message-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #2196F3;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.header-icon {
    width: 50px;
    height: 50px;
    background: #2196F3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.page-header h1 {
    margin: 0;
    color: #333;
}

/* Active sidebar link */
.sidebar-section a.active {
    background-color: rgba(255,255,255,0.2);
    padding-left: 0.5rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Password field */
.password-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-field input {
    flex: 1;
}

.toggle-password-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.toggle-password-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.toggle-password-btn i {
    font-size: 14px;
}

/* Academic Accordion Styles */
.academic-accordion {
    margin-top: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.academic-accordion-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.academic-accordion-header:hover {
    background: linear-gradient(135deg, #3d8bfe 0%, #00d4fe 100%);
}

.academic-accordion-header h4 {
    margin: 0;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.academic-accordion-header h4 i:first-child {
    font-size: 1.1rem;
}

.academic-chevron {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.academic-accordion-content {
    background: white;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.academic-accordion-content .form-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.academic-accordion-content .form-group-full {
    grid-column: 1 / -1;
}

.generate-password-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
}

.generate-password-btn:hover {
    background: #45a049;
}

/* Checkbox group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.checkbox-label:hover {
    background: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-label span {
    font-weight: normal;
}

/* Status badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge.inactive {
    background: #ffebee;
    color: #c62828;
}

.status-badge.pending {
    background: #fff3e0;
    color: #ef6c00;
}

/* File upload styles */
.file-upload-container {
    position: relative;
    margin-top: 0.5rem;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: #2196F3;
    background: #f0f8ff;
}

.file-upload-label i {
    font-size: 2rem;
    color: #2196F3;
    margin-bottom: 0.5rem;
}

.file-upload-text {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.file-upload-hint {
    font-size: 0.8rem;
    color: #666;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.file-icon {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.file-icon.pdf {
    color: #dc3545;
}

.file-icon.image {
    color: #28a745;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.file-size {
    font-size: 0.8rem;
    color: #666;
}

.file-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.file-preview {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.file-preview:hover {
    background: #0056b3;
}

.file-preview,
.file-remove {
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.file-remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s ease;
}

.file-remove:hover {
    background: #c82333;
}

.file-upload-label.dragover {
    border-color: #2196F3;
    background: #e3f2fd;
    transform: scale(1.02);
}

/* Documents list in profile details */
.documents-list {
    margin-top: 0.5rem;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.document-item:last-child {
    margin-bottom: 0;
}

.document-item i {
    margin-right: 0.5rem;
    color: #dc3545;
}

.document-item span {
    flex: 1;
    font-weight: 500;
}

.document-item small {
    color: #666;
    font-size: 0.8rem;
}

/* Status select dropdown */
.status-select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    background: white;
    cursor: pointer;
    min-width: 100px;
    transition: all 0.2s ease;
}

/* Student list rows */
.profile-row {
    background: #fff;
    border-left: 4px solid #2196F3;
}

.child-row {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
}

.child-row .student-name {
    padding-left: 1rem;
    position: relative;
}

.child-row .student-name::before {
    content: "└─";
    position: absolute;
    left: 0;
    color: #6c757d;
    font-weight: bold;
}

.child-number {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.2rem 0.4rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.status-select:hover {
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.status-select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.status-select option {
    padding: 0.5rem;
    font-weight: 500;
}

/* Action buttons in tables */
td.action-buttons {
    vertical-align: middle;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: all 0.2s ease;
}

.action-btn i {
    margin: 0;
}

.action-btn.edit {
    background: #2196F3;
    color: white;
}

.action-btn.delete {
    background: #f44336;
    color: white;
}

.action-btn.view {
    background: #4CAF50;
    color: white;
}

.action-btn.duplicate {
    background: #FF9800;
    color: white;
}

.action-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.action-buttons {
    white-space: nowrap;
}

/* Loading states */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #666;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

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

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

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

.close {
    color: #999;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Detailed Information Table */
.info-table-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    overflow-x: auto;
}

.info-table-container h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.3rem;
}

.detailed-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.detailed-info-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.detailed-info-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.detailed-info-table .row-alt {
    background: #fafafa;
}

.detailed-info-table .value-cell {
    font-weight: 600;
    color: #2196F3;
    text-align: center;
    width: 100px;
}

/* Recent Activities */
.recent-activities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.activity-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #2196F3;
}

.activity-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.activity-list {
    margin-bottom: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.activity-number {
    color: #666;
    font-weight: 600;
    min-width: 20px;
}

.activity-text {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
}

.view-more-btn {
    background: transparent;
    color: #2196F3;
    border: 1px solid #2196F3;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
    width: 100%;
}

.view-more-btn:hover {
    background: #2196F3;
    color: white;
}

/* Right Column Sections */
.notifications-section,
.mini-calendar-section {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #2196F3;
}

.section-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

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

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-content p {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-content small {
    color: #666;
    font-style: italic;
}

/* Mini Calendar */
.mini-calendar {
    max-width: 100%;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.month-year {
    font-weight: 600;
    color: #333;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 1px;
}

.weekday {
    text-align: center;
    padding: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    background: #f0f0f0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    font-size: 0.75rem;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s;
    min-height: 28px;
}

.calendar-day:hover {
    background: #e3f2fd;
}

.calendar-day.other-month {
    color: #ccc;
    background: #f5f5f5;
}

.calendar-day.event-day {
    font-weight: bold;
    color: white;
}

.calendar-day.event-day.red {
    background: #f44336;
}

.calendar-day.event-day.green {
    background: #4CAF50;
}

.calendar-day.event-day.orange {
    background: #FF9800;
}

.calendar-day.event-day.blue {
    background: #2196F3;
}

.calendar-legend {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.red { background: #f44336; }
.legend-dot.green { background: #4CAF50; }
.legend-dot.orange { background: #FF9800; }
.legend-dot.blue { background: #2196F3; }

/* Students list specific styles */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-item {
    text-align: center;
}

.summary-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 0.25rem;
}

.summary-label {
    font-size: 0.9rem;
    color: #666;
}

.student-info,
.parent-info {
    display: flex;
    flex-direction: column;
}

.student-name,
.parent-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.student-egn,
.parent-email {
    font-size: 0.8rem;
    color: #666;
}

.grade-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.phone-link {
    color: #2196F3;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.phone-link:hover {
    text-decoration: underline;
}

.export-options {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.export-options h3 {
    margin-bottom: 1rem;
    color: #333;
}

.export-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Profile details modal */
.profile-details {
    max-height: 60vh;
    overflow-y: auto;
}

.detail-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-section h3 {
    color: #2196F3;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.detail-item span {
    color: #333;
}

.detail-item a {
    color: #2196F3;
    text-decoration: none;
}

.detail-item a:hover {
    text-decoration: underline;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

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

/* Curriculum specific styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.section-header h2 {
    margin: 0;
    color: #2196F3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.radio-group,
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.radio-label:hover {
    background: #f8f9fa;
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
}

/* Unit cards */
.unit-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: border-color 0.3s;
}

.unit-card:hover {
    border-color: #2196F3;
}

.unit-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unit-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.btn-remove {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    background: rgba(255,255,255,0.3);
}

.unit-content {
    padding: 1.5rem;
}

/* Assessment and objectives sections */
.objectives-section,
.assessment-section,
.resources-section {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Order type selection */
.order-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0 1rem;
}

.order-type-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.order-type-card:hover {
    border-color: #2196F3;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.15);
}

.order-type-card.active {
    border-color: #2196F3;
    background: #e3f2fd;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
}

.order-type-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.order-type-icon.vacation { background: #4CAF50; }
.order-type-icon.appointment { background: #2196F3; }
.order-type-icon.dismissal { background: #f44336; }
.order-type-icon.transfer { background: #FF9800; }
.order-type-icon.disciplinary { background: #9C27B0; }
.order-type-icon.general { background: #607D8B; }

.order-type-card h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
}

.order-type-card p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Dynamic fields styling */
#dynamicFields {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #2196F3;
}

#dynamicFields .form-group:last-child {
    margin-bottom: 0;
}

/* Order preview styling */
.order-preview {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
}

.order-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #333;
}

.order-title-preview {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 1rem 0;
}

.order-content-preview {
    text-align: justify;
    margin: 1.5rem 0;
}

.signature-area {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
}

.signature-box {
    text-align: center;
    width: 200px;
}

.signature-line {
    border-bottom: 1px solid #333;
    height: 1px;
    margin: 2rem 0 0.5rem 0;
}

/* Form responsiveness */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .radio-group,
    .competencies-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .unit-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Print styles */
@media print {
    .header,
    .sidebar,
    .search-filters,
    .export-options,
    .action-buttons,
    .btn {
        display: none !important;
    }
    
    .container {
        display: block;
    }
    
    .main-content {
        padding: 0;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
}

/* Mobile hamburger menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.mobile-menu-toggle:hover {
    background-color: rgba(0,0,0,0.1);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #2c3e50;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 1rem;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-close {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        float: right;
        margin: 0 1rem 1rem 0;
        cursor: pointer;
        padding: 0.5rem;
    }
    
    .main-content {
        width: 100%;
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .recent-activities {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
    
    .statistics-section {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .header-left {
        gap: 0.75rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .user-menu span {
        display: none;
    }
    
    .app-title {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .dropdown {
        order: 1;
    }
    
    .dropdown-toggle {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .dropdown-menu {
        right: auto;
        left: 0;
        min-width: 180px;
    }
    
    .dropdown-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .user-menu {
        order: 2;
    }
    
    /* Mobile form styles */
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        padding: 1.5rem 1rem;
    }
    
    .form-fields {
        padding: 1rem;
    }
    
    .form-fields-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 0.8rem;
    }
    
    .message-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .contacts-panel {
        order: 2;
        max-height: 300px;
    }
    
    .calendar-days {
        gap: 1px;
    }
    
    .calendar-day {
        font-size: 0.8rem;
    }
    
    .legend-item {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .demo-notification {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, 1fr);
    }
    
    .action-card {
        padding: 1.5rem;
    }
    
    .action-card h3 {
        font-size: 1rem;
    }
    
    .header-content {
        padding: 0 0.75rem;
    }
    
    .mobile-menu-toggle {
        font-size: 1.25rem;
        padding: 0.4rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .app-title {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .user-avatar {
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Large screens - limit to 1920px */
@media (min-width: 1921px) {
    .container {
        max-width: 1920px;
    }
    
    .header-content {
        max-width: 1920px;
    }
    
    body {
        background: #f0f0f0;
    }
}

/* Help text styles */
.help-text {
    display: block;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #495057;
}

.help-text i {
    color: #007bff;
    margin-right: 0.5rem;
}

.help-text strong {
    color: #212529;
    font-weight: 600;
}

/* Password generation styles */
.password-info {
    margin-top: 0.75rem;
    display: none;
}

.password-display {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 0.5rem;
    padding: 1rem;
}

.password-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #155724;
    font-weight: 600;
}

.password-label i {
    margin-right: 0.5rem;
    color: #28a745;
}

.password-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.password-value code {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    flex: 1;
    word-break: break-all;
}

.copy-password-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.copy-password-btn:hover {
    background: #0056b3;
}

.copy-password-btn:active {
    transform: translateY(1px);
}

.password-note {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
}

.password-note i {
    margin-right: 0.5rem;
    color: #17a2b8;
}

/* Emergency contacts */
/* Children container styles */
.children-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.child-form {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    background: #f8f9fa;
    position: relative;
}

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

.child-form-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.child-remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.child-remove-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.children-actions {
    text-align: center;
    padding: 1rem 0;
    border-top: 2px dashed #dee2e6;
    margin-top: 1rem;
}

.children-actions .btn {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

.emergency-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.emergency-contact-row {
    display: grid;
    grid-template-columns: 17% 36% 36% 32px; /* Роля 17%, Име 36%, Телефон 36%, бутон */
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .emergency-contact-row {
        grid-template-columns: 1fr; /* стакване на мобилни устройства */
    }
}

.emergency-actions {
    margin-top: 0.5rem;
}

/* Малък бутон за премахване */
.emergency-remove {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 16px;
}

/* Curriculum List Styles */
.curriculums-container {
    margin-top: 2rem;
}

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

.curriculum-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.curriculum-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.curriculum-title h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.curriculum-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.subject-badge,
.grade-badge,
.year-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-published {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.status-draft {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.curriculum-content {
    padding: 1.5rem;
}

.curriculum-description {
    margin-bottom: 1rem;
}

.curriculum-description p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.stat-item i {
    color: #2196F3;
    width: 16px;
}

.curriculum-objectives {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.curriculum-objectives h4 {
    margin: 0 0 0.5rem 0;
    color: #2196F3;
    font-size: 0.9rem;
}

.curriculum-objectives p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.curriculum-actions {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.curriculum-actions .btn {
    flex: 1;
    min-width: 80px;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

.no-data {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-data-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-data h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.no-data p {
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

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

.filters-section .form-group {
    margin-bottom: 0;
}

.filters-section label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.filters-section select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
}

.filters-section select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-content h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.stat-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Header Actions */
.header-actions {
    margin-left: auto;
}

.header-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid #2196F3;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #4CAF50;
}

.notification-error {
    border-left-color: #f44336;
}

.notification i {
    font-size: 1.2rem;
}

.notification-success i {
    color: #4CAF50;
}

.notification-error i {
    color: #f44336;
}

.notification span {
    font-weight: 500;
    color: #333;
}

/* Parent Curriculum Styles */
.children-selection {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.children-selection h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
}

.children-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.child-tab {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.child-tab:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.child-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.child-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.child-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.curriculum-content {
    margin-top: 2rem;
}

.curriculum-details {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.curriculum-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.curriculum-info h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.curriculum-meta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.curriculum-sections {
    padding: 2rem;
}

.curriculum-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.curriculum-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.curriculum-section h4 {
    margin: 0 0 1.5rem 0;
    color: #2196F3;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.info-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.info-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-item div:not(.info-label) {
    color: #666;
    line-height: 1.5;
}

.competencies-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.competency-item {
    background: #e3f2fd;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.unit-item {
    background: #f8f9fa;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.unit-title {
    font-weight: 600;
    color: #2196F3;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.unit-details div {
    margin-bottom: 0.5rem;
    color: #666;
    line-height: 1.5;
}

.unit-details strong {
    color: #333;
}

/* Responsive Design for Parent Curriculum */
@media (max-width: 768px) {
    .children-tabs {
        flex-direction: column;
    }
    
    .child-tab {
        min-width: auto;
    }
    
    .curriculum-meta {
        flex-direction: column;
        align-items: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .competencies-list {
        grid-template-columns: 1fr;
    }
    
    .curriculum-info {
        padding: 1.5rem;
    }
    
    .curriculum-sections {
        padding: 1.5rem;
    }
}

/* Parent Login Styles */
body.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
    margin: 0 !important;
}

body.login-page .demo-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    right: auto;
    width: auto;
    max-width: 400px;
    border-radius: 0 20px 0 0;
    padding: 1rem;
}

body.login-page .login-container {
    width: 100%;
    max-width: 500px;
}

/* Diary styles */
.diary-content {
    margin-top: 2rem;
}

.diary-details {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.diary-navigation {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.diary-tab {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #495057;
    text-decoration: none;
}

.diary-tab:hover {
    border-color: #007bff;
    color: #007bff;
}

.diary-tab.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.diary-section {
    padding: 2rem;
}

.diary-section h2 {
    color: #333;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.diary-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.diary-table th {
    background: #f8f9fa;
    color: #495057;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
}

.diary-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f8f9fa;
}

.diary-table tr:hover {
    background: #f8f9fa;
}

.grade-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
}

.grade-6 {
    background: #28a745;
    color: white;
}

.grade-5 {
    background: #17a2b8;
    color: white;
}

.grade-4 {
    background: #ffc107;
    color: #212529;
}

.grade-3 {
    background: #dc3545;
    color: white;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.review-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

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

.review-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.review-body p {
    margin: 0.5rem 0;
    color: #555;
}

.info-box {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #1565c0;
}

.info-box i {
    font-size: 1.5rem;
}

.info-box a {
    color: #1565c0;
    font-weight: 600;
    text-decoration: underline;
}

.weekly-navigation {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.week-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.week-nav-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
}

.week-nav-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

.week-info h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
    flex: 1;
    text-align: center;
}

.print-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.weekly-timetable {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.weekly-table {
    width: 100%;
    border-collapse: collapse;
}

.weekly-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    vertical-align: top;
}

.weekly-table td {
    padding: 0.5rem;
    vertical-align: top;
    border: 1px solid #e9ecef;
    min-width: 200px;
}

.lesson-block {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.lesson-block:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lesson-block.lesson-highlight {
    background: #e8f5e9;
    border-color: #4caf50;
}

.lesson-num {
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.lesson-subject {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.lesson-teacher {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.lesson-room {
    color: #495057;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lesson-room i {
    color: #dc3545;
}

.lesson-time {
    color: #007bff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lesson-time i {
    color: #007bff;
}

.lesson-type {
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #555;
    margin-top: 0.5rem;
}

.lesson-vacation {
    text-align: center;
    padding: 1.5rem;
    color: #ff9800;
    font-weight: 600;
    font-size: 1.1rem;
}

.lesson-vacation i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Employee checkbox group styles */
.employee-checkbox-group {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e9ecef;
}

.checkbox-item:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label {
    flex: 1;
    color: #333;
    font-size: 0.95rem;
    cursor: pointer;
}

.checkbox-item:has(input[type="checkbox"]:checked) {
    background: #e7f3ff;
    border-color: #007bff;
}

.checkbox-item:first-child {
    font-weight: 600;
    background: #e3f2fd;
    border-color: #2196F3;
}

.checkbox-item:first-child:hover {
    background: #bbdefb;
}

body.login-page .login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

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

body.login-page .login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

body.login-page .login-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

body.login-page .login-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

body.login-page .login-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

body.login-page .login-form {
    padding: 2rem;
}

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

body.login-page .login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

body.login-page .input-group {
    position: relative;
    display: flex;
    align-items: center;
}

body.login-page .input-group i {
    position: absolute;
    left: 1rem;
    color: #666;
    z-index: 2;
}

body.login-page .input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

body.login-page .input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

body.login-page .password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: color 0.3s ease;
}

body.login-page .password-toggle:hover {
    color: #667eea;
}

body.login-page .login-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

body.login-page .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

body.login-page .login-btn:active {
    transform: translateY(0);
}

body.login-page .login-help {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

body.login-page .login-help p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

body.login-page .login-help a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

body.login-page .login-help a:hover {
    text-decoration: underline;
}

/* Demo Accounts */
body.login-page .demo-accounts {
    background: #f8f9fa;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

body.login-page .demo-accounts h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1rem;
    text-align: center;
}

body.login-page .demo-account-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

body.login-page .demo-account-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

body.login-page .demo-account-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

body.login-page .demo-account-info h4 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 0.9rem;
}

body.login-page .demo-account-info p {
    margin: 0;
    color: #666;
    font-size: 0.8rem;
}

body.login-page .demo-login-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

body.login-page .demo-login-btn:hover {
    background: #5a6fd8;
}

/* Modal Styles */
body.login-page .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.login-page .modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.login-page .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

body.login-page .modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

body.login-page .modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

body.login-page .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.login-page .modal-body {
    padding: 1.5rem;
}

body.login-page .contact-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

body.login-page .contact-info p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

body.login-page .contact-info i {
    color: #667eea;
    width: 16px;
}

/* Responsive Design for Login */
@media (max-width: 768px) {
    body.login-page {
        padding: 1rem !important;
    }
    
    body.login-page .login-header {
        padding: 1.5rem;
    }
    
    body.login-page .login-form {
        padding: 1.5rem;
    }
    
    body.login-page .demo-accounts {
        padding: 1rem;
    }
    
    body.login-page .demo-account-card {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    body.login-page .demo-login-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Read-only input styling */
input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border: 1px solid #e9ecef;
}

input[readonly]:focus {
    border-color: #e9ecef;
    box-shadow: none;
    outline: none;
}

/* Payment page styles */
.payment-summary {
    margin-bottom: 2rem;
}

.payment-summary h2 {
    color: #dc3545;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.summary-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.summary-card.urgent {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.summary-card.urgent .card-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.card-content {
    flex: 1;
}

.card-content h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.card-content .amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc3545;
    margin: 0 0 0.25rem 0;
}

.card-content .due-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.pay-now-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pay-now-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-1px);
}

/* Payment modal styles */
.payment-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.payment-details h3 {
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.payment-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #dc3545;
    margin: 0 0 0.5rem 0;
}

.payment-description {
    color: #6c757d;
    margin: 0;
}

.payment-methods h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

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

.method-option {
    cursor: pointer;
}

.method-option input[type="radio"] {
    display: none;
}

.method-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.method-card i {
    font-size: 1.5rem;
    color: #6c757d;
}

.method-option input[type="radio"]:checked + .method-card {
    border-color: #007bff;
    background: #f8f9ff;
}

.method-option input[type="radio"]:checked + .method-card i {
    color: #007bff;
}

/* Status badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.paid {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.overdue {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Children selection tabs */
.children-selection {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.children-selection h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
}

.children-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.child-tab {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
    text-align: center;
}

.child-tab:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.child-tab.active {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

.child-info h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.child-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Curriculum content */
.curriculum-content {
    margin-top: 2rem;
}

.curriculum-details {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.curriculum-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.curriculum-info h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.curriculum-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.subject-badge, .grade-badge, .year-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.curriculum-sections {
    padding: 2rem;
}

.curriculum-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.curriculum-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.curriculum-section h4 {
    color: #333;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.info-item > div:not(.info-label) {
    color: #333;
    font-size: 1rem;
}

.competencies-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.competency-item {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.unit-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.unit-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.unit-details > div {
    margin-bottom: 0.5rem;
    color: #555;
}

.unit-details strong {
    color: #333;
}