/**
 * Students Management Styles
 *
 * @package Lucid_Pulse_School_Management
 */

/* Tab System */
.lpsm-tabs {
    margin-top: 20px;
}

.lpsm-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.lpsm-page-header {
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.lpsm-tab-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

/* Student Profile Tab Navigation - Scoped to prevent conflicts with school forms */
.lpsm-tab-nav {
    display: flex;
    background: white;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    margin-bottom: 0;
}

/* Only apply tab button styles within student profile containers */
.lpsm-student-profile .lpsm-tab-nav .lpsm-tab-btn,
.lpsm-students-dashboard .lpsm-tab-nav .lpsm-tab-btn,
.lpsm-tabs .lpsm-tab-nav .lpsm-tab-btn,
.lpsm-tab-nav .lpsm-tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 15px 20px;
    background: #f8f9fa;
    border: none;
    border-right: 1px solid #e9ecef;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.lpsm-student-profile .lpsm-tab-nav .lpsm-tab-btn:last-child,
.lpsm-students-dashboard .lpsm-tab-nav .lpsm-tab-btn:last-child,
.lpsm-tabs .lpsm-tab-nav .lpsm-tab-btn:last-child,
.lpsm-tab-nav .lpsm-tab-btn:last-child {
    border-right: none;
}

.lpsm-student-profile .lpsm-tab-nav .lpsm-tab-btn:hover,
.lpsm-students-dashboard .lpsm-tab-nav .lpsm-tab-btn:hover,
.lpsm-tabs .lpsm-tab-nav .lpsm-tab-btn:hover,
.lpsm-tab-nav .lpsm-tab-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.lpsm-student-profile .lpsm-tab-nav .lpsm-tab-btn.active,
.lpsm-students-dashboard .lpsm-tab-nav .lpsm-tab-btn.active,
.lpsm-tabs .lpsm-tab-nav .lpsm-tab-btn.active,
.lpsm-tab-nav .lpsm-tab-btn.active {
    background: white;
    color: #0073aa;
    border-bottom: 3px solid #0073aa;
    font-weight: 600;
}

.lpsm-student-profile .lpsm-tab-nav .lpsm-tab-btn i,
.lpsm-students-dashboard .lpsm-tab-nav .lpsm-tab-btn i,
.lpsm-tabs .lpsm-tab-nav .lpsm-tab-btn i,
.lpsm-tab-nav .lpsm-tab-btn i {
    font-size: 14px;
}

.lpsm-tab-content {
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

/* ============================================
   CRITICAL: STUDENT PROFILE TAB PANEL VISIBILITY
   ============================================
   This is the core fix for tab display issues.
   ALL tab panels MUST be hidden by default.
   Only panels with .active class should be visible.
   
   CONFLICT RESOLUTION: This overrides admin.css general rules
   ============================================ */

/* BASE RULE: Hide ALL tab panels by default - ULTRA MAXIMUM SPECIFICITY */
/* This MUST override admin.css .lpsm-tab-panel rules */
/* Using multiple selector variations and !important to ensure precedence */
/* Note: Using descendant selector (space) instead of direct child (>) for flexibility */
body div.lpsm-student-profile div.lpsm-tab-content div.lpsm-tab-panel:not(.active),
body div.lpsm-students-dashboard div.lpsm-tab-content div.lpsm-tab-panel:not(.active),
body div.lpsm-tabs div.lpsm-tab-content div.lpsm-tab-panel:not(.active),
div.lpsm-student-profile div.lpsm-tab-content div.lpsm-tab-panel:not(.active),
div.lpsm-students-dashboard div.lpsm-tab-content div.lpsm-tab-panel:not(.active),
div.lpsm-tabs div.lpsm-tab-content div.lpsm-tab-panel:not(.active),
.lpsm-student-profile .lpsm-tab-content .lpsm-tab-panel:not(.active),
.lpsm-students-dashboard .lpsm-tab-content .lpsm-tab-panel:not(.active),
.lpsm-tabs .lpsm-tab-content .lpsm-tab-panel:not(.active),
.lpsm-student-profile .lpsm-tab-content .lpsm-tab-panel[id^="tab-"]:not(.active),
.lpsm-students-dashboard .lpsm-tab-content .lpsm-tab-panel[id^="tab-"]:not(.active),
.lpsm-tabs .lpsm-tab-content .lpsm-tab-panel[id^="tab-"]:not(.active) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

/* ACTIVE RULE: Show ONLY the active panel - ULTRA MAXIMUM SPECIFICITY */
/* This MUST override admin.css .lpsm-tab-panel.active rules */
/* Note: Using descendant selector (space) instead of direct child (>) for flexibility */
body div.lpsm-student-profile div.lpsm-tab-content div.lpsm-tab-panel.active,
body div.lpsm-students-dashboard div.lpsm-tab-content div.lpsm-tab-panel.active,
body div.lpsm-tabs div.lpsm-tab-content div.lpsm-tab-panel.active,
div.lpsm-student-profile div.lpsm-tab-content div.lpsm-tab-panel.active,
div.lpsm-students-dashboard div.lpsm-tab-content div.lpsm-tab-panel.active,
div.lpsm-tabs div.lpsm-tab-content div.lpsm-tab-panel.active,
.lpsm-student-profile .lpsm-tab-content .lpsm-tab-panel.active,
.lpsm-students-dashboard .lpsm-tab-content .lpsm-tab-panel.active,
.lpsm-tabs .lpsm-tab-content .lpsm-tab-panel.active,
.lpsm-student-profile .lpsm-tab-content .lpsm-tab-panel[id^="tab-"].active,
.lpsm-students-dashboard .lpsm-tab-content .lpsm-tab-panel[id^="tab-"].active,
.lpsm-tabs .lpsm-tab-content .lpsm-tab-panel[id^="tab-"].active {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    padding: 30px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 2px solid #0073aa !important;
    border-radius: 0 0 8px 8px !important;
    min-height: 400px !important;
    opacity: 1 !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    z-index: auto !important;
    pointer-events: auto !important;
}

/* Ensure nested tabs within panels don't interfere */
/* This targets internal tabs within tab panels (like in overview.php) */
.lpsm-tab-panel .lpsm-tab-content {
    display: none;
}

.lpsm-tab-panel .lpsm-tab-content.active {
    display: block;
}

/* Debug: Add visual indicators - Only for student profile tabs */
.lpsm-student-profile .lpsm-tab-nav .lpsm-tab-btn,
.lpsm-students-dashboard .lpsm-tab-nav .lpsm-tab-btn,
.lpsm-tabs .lpsm-tab-nav .lpsm-tab-btn,
.lpsm-tab-nav .lpsm-tab-btn {
    position: relative;
}

.lpsm-student-profile .lpsm-tab-nav .lpsm-tab-btn::after,
.lpsm-students-dashboard .lpsm-tab-nav .lpsm-tab-btn::after,
.lpsm-tabs .lpsm-tab-nav .lpsm-tab-btn::after,
.lpsm-tab-nav .lpsm-tab-btn::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lpsm-student-profile .lpsm-tab-nav .lpsm-tab-btn:hover::after,
.lpsm-students-dashboard .lpsm-tab-nav .lpsm-tab-btn:hover::after,
.lpsm-tabs .lpsm-tab-nav .lpsm-tab-btn:hover::after,
.lpsm-tab-nav .lpsm-tab-btn:hover::after {
    opacity: 1;
}

/* Removed duplicate .lpsm-tab-panel rule that was overriding display: none */

/* Responsive tabs - Only for student profile tabs */
@media (max-width: 768px) {
    .lpsm-student-profile .lpsm-tab-nav,
    .lpsm-students-dashboard .lpsm-tab-nav,
    .lpsm-tabs .lpsm-tab-nav,
    .lpsm-tab-nav {
        flex-direction: column;
    }
    
    .lpsm-student-profile .lpsm-tab-nav .lpsm-tab-btn,
    .lpsm-students-dashboard .lpsm-tab-nav .lpsm-tab-btn,
    .lpsm-tabs .lpsm-tab-nav .lpsm-tab-btn,
    .lpsm-tab-nav .lpsm-tab-btn {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        min-width: auto;
    }
    
    .lpsm-student-profile .lpsm-tab-nav .lpsm-tab-btn:last-child,
    .lpsm-students-dashboard .lpsm-tab-nav .lpsm-tab-btn:last-child,
    .lpsm-tabs .lpsm-tab-nav .lpsm-tab-btn:last-child,
    .lpsm-tab-nav .lpsm-tab-btn:last-child {
        border-bottom: none;
    }
    
    .lpsm-student-profile .lpsm-tab-nav .lpsm-tab-btn.active,
    .lpsm-students-dashboard .lpsm-tab-nav .lpsm-tab-btn.active,
    .lpsm-tabs .lpsm-tab-nav .lpsm-tab-btn.active,
    .lpsm-tab-nav .lpsm-tab-btn.active {
        border-bottom: 1px solid #e9ecef;
        border-left: 3px solid #0073aa;
    }
}

/* Students Dashboard */
.lpsm-students-dashboard {
    padding: 20px;
    background: #f5f5f5;
    min-height: 100vh;
}

/* NOTE: .lpsm-dashboard-header has been moved to elaha.css (main container file) */
/* This ensures consistent styling across all dashboard pages */
/* Student-specific styles below */

.header-actions .lpsm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-actions .lpsm-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
}

/* School Selector */
.lpsm-school-selector {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #0073aa;
}

.lpsm-school-selector label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.lpsm-select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
    background: white;
    transition: border-color 0.3s ease;
}

.lpsm-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Students Grid */
.lpsm-students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lpsm-student-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef;
    position: relative;
}

.lpsm-student-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lpsm-student-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 115, 170, 0.15);
    border-color: #0073aa;
}

.lpsm-student-card:hover::before {
    opacity: 1;
}

.student-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.student-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.02) 0%, rgba(0, 90, 135, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lpsm-student-card:hover .student-header::before {
    opacity: 1;
}

.student-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
    transition: transform 0.3s ease;
}

.lpsm-student-card:hover .student-avatar {
    transform: scale(1.1);
}

.avatar-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.student-info {
    flex: 1;
    min-width: 0;
}

.student-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.student-id {
    margin: 0;
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

.student-status {
    margin-left: 15px;
    flex-shrink: 0;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-active {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.status-inactive {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.student-details {
    padding: 20px;
    background: #fff;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    margin-right: 12px;
    color: #0073aa;
    width: 16px;
    font-size: 16px;
    flex-shrink: 0;
}

.detail-item span {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.student-actions {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid #e9ecef;
}

/* Button Styles */
.lpsm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lpsm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.lpsm-btn:hover::before {
    left: 100%;
}

.lpsm-btn-primary {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.lpsm-btn-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
    color: white;
}

.lpsm-btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.lpsm-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
    color: white;
}

.lpsm-btn-outline {
    background: transparent;
    color: #0073aa;
    border: 2px solid #0073aa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.lpsm-btn-outline:hover {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.lpsm-btn-sm {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Empty State */
.lpsm-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 2px dashed #e9ecef;
}

.empty-icon {
    margin-bottom: 20px;
}

.empty-icon i {
    font-size: 72px;
    color: #ccc;
    opacity: 0.7;
}

.lpsm-empty-state h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.lpsm-empty-state p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Modal Styles */
.lpsm-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lpsm-modal.show {
    opacity: 1;
    visibility: visible;
}

.lpsm-modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lpsm-modal.show .lpsm-modal-content {
    transform: scale(1) translateY(0);
}

.lpsm-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px 12px 0 0;
}

.lpsm-modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.lpsm-modal-close {
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lpsm-modal-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.1);
}

.lpsm-modal-body {
    padding: 30px;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group h3 {
    margin: 30px 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.form-actions {
    text-align: right;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.form-actions .lpsm-btn {
    min-width: 120px;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* NOTE: .lpsm-dashboard-header responsive styles moved to elaha.css */
    
    .lpsm-students-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .lpsm-student-card {
        margin: 0 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .student-actions {
        flex-direction: column;
    }
    
    .student-actions .lpsm-btn {
        width: 100%;
        justify-content: center;
    }
    
    .lpsm-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .lpsm-modal-body {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .lpsm-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .lpsm-students-dashboard {
        padding: 10px;
    }
    
    /* NOTE: .lpsm-dashboard-header responsive styles moved to elaha.css */
    
    .lpsm-school-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .lpsm-select {
        min-width: auto;
    }
    
    .student-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .student-avatar {
        margin-right: 0;
    }
    
    .student-status {
        margin-left: 0;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading States */
.lpsm-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.lpsm-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Attendance Tab Styles */
.lpsm-attendance {
    padding: 0;
}

.lpsm-attendance-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 30px;
}

.lpsm-attendance-summary .lpsm-card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.lpsm-attendance-summary .lpsm-header-content h3 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
}

.lpsm-attendance-summary .lpsm-header-content p {
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-size: 14px;
}

.lpsm-attendance-summary .lpsm-card-content {
    background: transparent;
}

.lpsm-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.lpsm-stat-card {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lpsm-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.lpsm-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.02) 100%);
    border-radius: 50%;
    transform: translate(20px, -20px);
}

.lpsm-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 20px;
    color: white;
    position: relative;
    z-index: 2;
}

.lpsm-stat-primary .lpsm-stat-icon {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
}

.lpsm-stat-success .lpsm-stat-icon {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.lpsm-stat-warning .lpsm-stat-icon {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.lpsm-stat-info .lpsm-stat-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.lpsm-stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.lpsm-stat-content p {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
}

.lpsm-stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #28a745;
    font-weight: 600;
}

.lpsm-stat-trend i {
    font-size: 9px;
}

.lpsm-content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.lpsm-content-card:hover {
    transform: translateY(-2px);
}

.lpsm-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lpsm-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

.lpsm-card-content {
    padding: 25px;
}

.lpsm-table-container {
    overflow-x: auto;
}

.lpsm-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.lpsm-table th,
.lpsm-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.lpsm-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lpsm-table td {
    color: #6c757d;
    font-size: 14px;
}

.lpsm-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lpsm-status-present {
    background: #d4edda;
    color: #155724;
}

.lpsm-status-absent {
    background: #f8d7da;
    color: #721c24;
}

.lpsm-status-late {
    background: #fff3cd;
    color: #856404;
}

.lpsm-status-excused {
    background: #d1ecf1;
    color: #0c5460;
}

.lpsm-no-data {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

.lpsm-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.lpsm-form-group {
    flex: 1;
    margin-bottom: 15px;
}

.lpsm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.lpsm-form-input,
.lpsm-form-select,
.lpsm-form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lpsm-form-input:focus,
.lpsm-form-select:focus,
.lpsm-form-textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.lpsm-form-actions {
    text-align: right;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.lpsm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lpsm-btn-primary {
    background: #0073aa;
    color: white;
}

.lpsm-btn-primary:hover {
    background: #005a87;
    color: white;
}

.lpsm-btn-secondary {
    background: #6c757d;
    color: white;
}

.lpsm-btn-secondary:hover {
    background: #5a6268;
    color: white;
}

.lpsm-btn-danger {
    background: #dc3545;
    color: white;
}

.lpsm-btn-danger:hover {
    background: #c82333;
    color: white;
}

.lpsm-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .lpsm-stats-row {
        grid-template-columns: 1fr;
    }
    
    .lpsm-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .lpsm-card-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Parent Info Tab Styles */
.lpsm-invite-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.lpsm-invite-section h4 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 18px;
}

.lpsm-family-members-section h4 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 18px;
}

.lpsm-family-member-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lpsm-family-member-info {
    flex: 1;
}

.lpsm-family-member-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.lpsm-family-member-email {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 5px;
}

.lpsm-family-member-relationship {
    color: #6c757d;
    font-size: 12px;
    text-transform: capitalize;
}

.lpsm-family-member-status {
    margin-left: 15px;
}

.lpsm-status-pending {
    color: #ffc107;
    font-weight: 600;
    background: #fff3cd;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.lpsm-status-active {
    color: #28a745;
    font-weight: 600;
    background: #d4edda;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.lpsm-family-member-actions {
    margin-left: 15px;
    display: flex;
    gap: 5px;
}

.lpsm-family-member-actions .lpsm-btn {
    padding: 4px 8px;
    font-size: 12px;
}

.lpsm-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.lpsm-loading i {
    margin-right: 8px;
}

/* School Info Tab Styles */
.lpsm-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.lpsm-schedule-day {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
}

.lpsm-schedule-day h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.lpsm-schedule-day .lpsm-form-group {
    margin-bottom: 15px;
}

.lpsm-schedule-day .lpsm-form-group:last-child {
    margin-bottom: 0;
}

.lpsm-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
}

.lpsm-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.lpsm-checkbox-text {
    font-weight: 500;
    color: #495057;
}

/* Observations Tab Styles */
.lpsm-observations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lpsm-observation-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.lpsm-observation-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.lpsm-observation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
}

.lpsm-observation-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lpsm-observation-date,
.lpsm-observation-by {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.lpsm-observation-date i,
.lpsm-observation-by i {
    color: #007bff;
    font-size: 12px;
}

.lpsm-observation-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lpsm-observation-card:hover .lpsm-observation-actions {
    opacity: 1;
}

.lpsm-observation-actions .lpsm-btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.lpsm-observation-actions .lpsm-btn:hover {
    transform: scale(1.05);
}

.lpsm-observation-content {
    padding: 20px;
    line-height: 1.6;
}

.lpsm-observation-content p {
    margin: 0;
    color: #333;
    font-size: 14px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.lpsm-observation-images {
    margin: 0 20px 20px 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.lpsm-observation-images h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lpsm-observation-images h4:before {
    content: "📷";
    font-size: 16px;
}

.lpsm-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.lpsm-image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.lpsm-image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lpsm-observation-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lpsm-observation-image:hover {
    transform: scale(1.05);
}

.lpsm-observation-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

.lpsm-observation-likes {
    display: flex;
    align-items: center;
}

.lpsm-like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lpsm-like-btn:hover {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
    transform: scale(1.05);
}

.lpsm-like-btn.liked {
    background: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
}

.lpsm-like-btn i {
    font-size: 12px;
}

.lpsm-like-count {
    font-weight: 600;
}

.lpsm-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.lpsm-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.lpsm-lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.lpsm-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lpsm-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* No data state */
.lpsm-no-data {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.lpsm-no-data i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #dee2e6;
}

.lpsm-no-data p {
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* Attendance Tab Styles */
.lpsm-attendance-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.lpsm-attendance-summary .lpsm-card-header h3,
.lpsm-attendance-summary .lpsm-card-header p {
    color: white;
}

.lpsm-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.lpsm-stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.lpsm-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.lpsm-stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.lpsm-stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: white;
}

.lpsm-stat-content p {
    font-size: 14px;
    margin: 0 0 10px 0;
    opacity: 0.9;
    font-weight: 500;
}

.lpsm-stat-trend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    opacity: 0.8;
}

.lpsm-stat-trend i {
    font-size: 10px;
}

/* Add Attendance Record Form */
.lpsm-content-card:has(#lpsm-add-attendance-form) {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.lpsm-content-card:has(#lpsm-add-attendance-form) .lpsm-card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 20px;
    margin: 0;
}

.lpsm-content-card:has(#lpsm-add-attendance-form) .lpsm-card-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.lpsm-content-card:has(#lpsm-add-attendance-form) .lpsm-card-content {
    padding: 25px;
}

#lpsm-add-attendance-form .lpsm-form-row {
    margin-bottom: 20px;
}

#lpsm-add-attendance-form .lpsm-form-group {
    margin-bottom: 15px;
}

#lpsm-add-attendance-form .lpsm-form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

#lpsm-add-attendance-form .lpsm-form-input,
#lpsm-add-attendance-form .lpsm-form-select,
#lpsm-add-attendance-form .lpsm-form-textarea {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

#lpsm-add-attendance-form .lpsm-form-input:focus,
#lpsm-add-attendance-form .lpsm-form-select:focus,
#lpsm-add-attendance-form .lpsm-form-textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

#lpsm-add-attendance-form .lpsm-form-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

#lpsm-add-attendance-form .lpsm-btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

#lpsm-add-attendance-form .lpsm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Attendance Table */
.lpsm-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.lpsm-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.lpsm-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.lpsm-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}

.lpsm-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
    color: #555;
}

.lpsm-table tbody tr:hover {
    background: #f8f9fa;
}

.lpsm-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lpsm-status-present {
    background: #d4edda;
    color: #155724;
}

.lpsm-status-absent {
    background: #f8d7da;
    color: #721c24;
}

.lpsm-status-late {
    background: #fff3cd;
    color: #856404;
}

.lpsm-status-excused {
    background: #d1ecf1;
    color: #0c5460;
}

/* Filter Dropdown */
#lpsm-attendance-filter {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    background: white;
    transition: all 0.3s ease;
}

#lpsm-attendance-filter:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

/* Overview Tab Styles */
.lpsm-overview-grid {
    padding: 0;
}

/* Current Week Attendance */
.lpsm-week-range {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.lpsm-week-attendance-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.lpsm-day-attendance {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.lpsm-day-attendance:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.lpsm-day-attendance.lpsm-weekend {
    background: #f1f3f4;
    opacity: 0.7;
}

.lpsm-day-name {
    font-weight: 600;
    font-size: 12px;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lpsm-day-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.lpsm-time-info {
    font-size: 10px;
    color: #666;
}

.lpsm-status-unknown {
    background: #e9ecef;
    color: #6c757d;
}

/* Enhanced Basic Information */
.lpsm-info-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.lpsm-info-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

.lpsm-info-section .lpsm-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.lpsm-info-section .lpsm-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lpsm-info-section .lpsm-info-item label {
    font-weight: 600;
    color: #555;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lpsm-info-section .lpsm-info-item span {
    color: #333;
    font-size: 14px;
}

/* Timeline Styles */
.lpsm-timeline {
    position: relative;
    padding-left: 30px;
}

.lpsm-timeline-item {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
}

.lpsm-timeline-marker {
    position: absolute;
    left: -30px;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lpsm-timeline-dot {
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 3px #e3f2fd;
    z-index: 2;
}

.lpsm-timeline-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #007bff, #e3f2fd);
    margin-top: 5px;
    min-height: 30px;
}

.lpsm-timeline-content {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    transition: all 0.3s ease;
}

.lpsm-timeline-content:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.lpsm-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f3f4;
}

.lpsm-timeline-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.lpsm-timeline-date {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.lpsm-timeline-body {
    margin-bottom: 15px;
}

.lpsm-timeline-body p {
    margin: 0 0 10px 0;
    color: #555;
    line-height: 1.5;
}

.lpsm-observation-areas {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 10px;
}

.lpsm-observation-areas strong {
    color: #333;
    margin-right: 5px;
}

.lpsm-timeline-images {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.lpsm-timeline-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lpsm-timeline-image:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.lpsm-more-images {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
}

.lpsm-timeline-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f1f3f4;
}

.lpsm-timeline-author {
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lpsm-timeline-author i {
    color: #007bff;
}

.lpsm-timeline-actions {
    display: flex;
    gap: 10px;
}

.lpsm-observation-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lpsm-type-learning {
    background: #e3f2fd;
    color: #1976d2;
}

.lpsm-type-behavior {
    background: #fff3e0;
    color: #f57c00;
}

.lpsm-type-social {
    background: #f3e5f5;
    color: #7b1fa2;
}

.lpsm-type-physical {
    background: #e8f5e8;
    color: #388e3c;
}

.lpsm-type-emotional {
    background: #fce4ec;
    color: #c2185b;
}

.lpsm-type-general {
    background: #f5f5f5;
    color: #616161;
}

/* Notes List Enhancement */
.lpsm-notes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lpsm-note-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.lpsm-note-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.lpsm-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f3f4;
}

.lpsm-note-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.lpsm-note-date {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.lpsm-note-content p {
    margin: 0 0 8px 0;
    color: #555;
    font-size: 13px;
    line-height: 1.4;
}

.lpsm-note-by {
    color: #666;
    font-size: 11px;
    font-style: italic;
}

/* Observation Areas Form */
.lpsm-observation-areas-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.lpsm-observation-category {
    margin-bottom: 25px;
}

.lpsm-observation-category:last-child {
    margin-bottom: 0;
}

.lpsm-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

.lpsm-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.lpsm-area-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.lpsm-area-checkbox:hover {
    background: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.lpsm-area-checkbox input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.lpsm-area-checkbox input[type="checkbox"]:checked + .lpsm-area-name {
    color: #007bff;
    font-weight: 600;
}

.lpsm-area-checkbox input[type="checkbox"]:checked ~ .lpsm-area-description {
    color: #007bff;
}

.lpsm-area-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

.lpsm-area-description {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    display: block;
}

.lpsm-area-checkbox:has(input[type="checkbox"]:checked) {
    background: #e3f2fd;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.lpsm-area-checkbox:has(input[type="checkbox"]:checked)::before {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;
    color: #007bff;
    font-weight: bold;
    font-size: 14px;
}

.lpsm-tab-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

button#lpsm-cancel-all-changes {
    background-color: #ff0000;
}

.lpsm-header-content h3 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color:#fff
}

.lpsm-header-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
    color:#fff !important;
}

.lpsm-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lpsm-stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #0073aa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lpsm-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.lpsm-stat-card.lpsm-stat-primary {
    border-left-color: #0073aa;
}

.lpsm-stat-card.lpsm-stat-success {
    border-left-color: #28a745;
}

.lpsm-stat-card.lpsm-stat-warning {
    border-left-color: #ffc107;
}

.lpsm-stat-card.lpsm-stat-info {
    border-left-color: #17a2b8;
}

.lpsm-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.lpsm-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
    color: white;
    position: relative;
    z-index: 2;
}

.lpsm-stat-primary .lpsm-stat-icon {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
}

.lpsm-stat-success .lpsm-stat-icon {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.lpsm-stat-warning .lpsm-stat-icon {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.lpsm-stat-info .lpsm-stat-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.lpsm-stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
}

.lpsm-stat-content p {
    margin: 0 0 10px 0;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.lpsm-stat-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
}

.lpsm-stat-trend i {
    font-size: 10px;
}

.lpsm-overview-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.lpsm-content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.lpsm-content-card:hover {
    transform: translateY(-2px);
}

.lpsm-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lpsm-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

.lpsm-card-content {
    padding: 25px;
}

.lpsm-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.lpsm-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lpsm-info-item label {
    font-weight: 600;
    color: #6c757d;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lpsm-info-item span {
    color: #495057;
    font-size: 15px;
    font-weight: 500;
}

.lpsm-observations-list,
.lpsm-notes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lpsm-observation-item,
.lpsm-note-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 3px solid #0073aa;
}

.lpsm-observation-date,
.lpsm-note-date {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 8px;
}

.lpsm-observation-content p,
.lpsm-note-content p {
    margin: 0 0 8px 0;
    color: #495057;
    line-height: 1.5;
}

.lpsm-observation-by,
.lpsm-note-by {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

.lpsm-no-data {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.lpsm-no-data i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.lpsm-status-active {
    color: #28a745;
    font-weight: 600;
    background: #d4edda;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.lpsm-status-inactive {
    color: #dc3545;
    font-weight: 600;
    background: #f8d7da;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.lpsm-parent-account-info,
.lpsm-student-account-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.lpsm-parent-account-setup,
.lpsm-student-account-setup {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.lpsm-account-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lpsm-account-actions .lpsm-btn {
    margin: 0;
}

@media (max-width: 768px) {
    .lpsm-stats-row {
        grid-template-columns: 1fr;
    }
    
    .lpsm-overview-sections {
        grid-template-columns: 1fr;
    }
    
    .lpsm-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Observation Display Enhancements */
.lpsm-observation-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.lpsm-observation-title h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.lpsm-observation-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lpsm-type-learning {
    background: #e8f5e8;
    color: #27ae60;
}

.lpsm-type-behavior {
    background: #fff3cd;
    color: #f39c12;
}

.lpsm-type-social {
    background: #d1ecf1;
    color: #17a2b8;
}

.lpsm-type-physical {
    background: #f8d7da;
    color: #dc3545;
}

.lpsm-type-emotional {
    background: #e2e3e5;
    color: #6c757d;
}

.lpsm-type-general {
    background: #f8f9fa;
    color: #495057;
}

.lpsm-observation-areas {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.lpsm-observation-areas strong {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

.lpsm-areas-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lpsm-area-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #3498db;
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.lpsm-observation-next-steps {
    margin: 15px 0;
    padding: 15px;
    background: #fff3cd;
    border-radius: 6px;
    border-left: 4px solid #f39c12;
}

.lpsm-observation-next-steps strong {
    display: block;
    margin-bottom: 8px;
    color: #856404;
    font-size: 14px;
}

.lpsm-observation-next-steps p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

