/**
 * Frontend Styles for Lucid Pulse School Management
 */

 div#wpadminbar {
    display: none;
}

/* School Directory Styles */
.lpsm-school-directory {
    margin: 20px 0;
}

.lpsm-directory-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.lpsm-search-box {
    flex: 1;
    min-width: 250px;
}

.lpsm-type-filters {
    min-width: 200px;
}

.lpsm-form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.lpsm-form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Schools Grid */
.lpsm-schools-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.lpsm-grid-1 { grid-template-columns: 1fr; }
.lpsm-grid-2 { grid-template-columns: repeat(2, 1fr); }
.lpsm-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lpsm-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Default to 3 columns if no class specified */
.lpsm-schools-grid:not([class*="lpsm-grid-"]) {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .lpsm-grid-2,
    .lpsm-grid-3,
    .lpsm-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .lpsm-directory-filters {
        flex-direction: column;
    }
}

/* School Card */
.lpsm-school-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.lpsm-school-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #0073aa;
}

.lpsm-school-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.lpsm-school-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.lpsm-school-type {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.lpsm-type-nursery {
    background: #e8f5e8;
    color: #2d5a2d;
}

.lpsm-type-primary {
    background: #e8f4fd;
    color: #1e5a8a;
}

.lpsm-type-secondary {
    background: #fef3e8;
    color: #8a5a1e;
}

.lpsm-school-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.lpsm-school-info {
    margin-bottom: 20px;
}

.lpsm-school-info p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
}

.lpsm-school-info .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #0073aa;
}

.lpsm-school-info a {
    color: #0073aa;
    text-decoration: none;
}

.lpsm-school-info a:hover {
    text-decoration: underline;
}

.lpsm-school-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.lpsm-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lpsm-btn-primary {
    background: #0073aa;
    color: #fff;
}

.lpsm-btn-primary:hover {
    background: #005a87;
    color: #fff;
}

.lpsm-btn-secondary {
    background: #f1f1f1;
    color: #333;
    border: 1px solid #ccc;
}

.lpsm-btn-secondary:hover {
    background: #e1e1e1;
    color: #333;
}

.lpsm-btn-outline {
    background: transparent;
    color: #0073aa;
    border: 1px solid #0073aa;
}

.lpsm-btn-outline:hover {
    background: #0073aa;
    color: #fff;
}

/* No Schools Message */
.lpsm-no-schools {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.lpsm-no-schools h3 {
    margin-bottom: 10px;
    color: #333;
}

/* Load More */
.lpsm-load-more {
    text-align: center;
    margin-top: 30px;
}

/* Dashboard Styles */
/* NOTE: .lpsm-dashboard-header has been moved to elaha.css (main container file) */
/* This ensures consistent styling across all dashboard pages */

.lpsm-dashboard-content {
    margin-bottom: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dashboard Navigation */
.lpsm-dashboard-nav-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-bottom: 20px;
}

.lpsm-dashboard-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lpsm-dashboard-nav-menu .menu-item {
    margin: 0;
    padding: 0;
}

.lpsm-dashboard-nav-menu .lpsm-nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lpsm-dashboard-nav-menu .lpsm-nav-item:hover {
    background: #f8f9fa;
    color: #0073aa;
    border-left-color: #0073aa;
}

.lpsm-dashboard-nav-menu .menu-item.active .lpsm-nav-item,
.lpsm-dashboard-nav-menu .menu-item.current-menu-item .lpsm-nav-item {
    background: #0073aa;
    color: #fff;
    border-left-color: #005a87;
}

.lpsm-dashboard-nav-menu .lpsm-nav-item .dashicons {
    margin-right: 12px;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.lpsm-dashboard-nav-menu .menu-item-logout .lpsm-nav-item {
    border-top: 1px solid #e9ecef;
    margin-top: 10px;
    padding-top: 20px;
}

.lpsm-dashboard-nav-menu .menu-item-logout .lpsm-nav-item:hover {
    background: #dc3545;
    color: #fff;
    border-left-color: #c82333;
}

.lpsm-dashboard-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.lpsm-dashboard-nav {
    display: flex;
    flex-direction: column;
}

.lpsm-nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.lpsm-nav-item:last-child {
    border-bottom: none;
}

.lpsm-nav-item:hover {
    background: #f8f9fa;
    color: #0073aa;
    text-decoration: none;
}

.lpsm-nav-item.active {
    background: #0073aa;
    color: #fff;
}

.lpsm-nav-item .dashicons {
    margin-right: 10px;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Dashboard Stats */
.lpsm-dashboard-stats {
    margin-bottom: 30px;
}

.lpsm-dashboard-stats h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.lpsm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lpsm-stat-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lpsm-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.lpsm-stat-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.lpsm-stat-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.lpsm-stat-item {
    text-align: center;
}

.lpsm-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 5px;
}

.lpsm-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.lpsm-stat-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Schools Grid for Dashboard */
.lpsm-schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

/* Enquiries List */
.lpsm-enquiries-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lpsm-enquiry-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lpsm-enquiry-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.lpsm-enquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.lpsm-enquiry-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.lpsm-enquiry-school {
    background: #e8f4fd;
    color: #1e5a8a;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.lpsm-enquiry-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.lpsm-enquiry-details p {
    margin: 0;
    color: #555;
}

.lpsm-enquiry-message {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.lpsm-enquiry-message p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.lpsm-enquiry-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Staff List */
.lpsm-staff-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lpsm-staff-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lpsm-staff-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.lpsm-staff-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.lpsm-staff-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.lpsm-staff-school {
    background: #e8f5e8;
    color: #2d5a2d;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.lpsm-staff-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.lpsm-staff-details p {
    margin: 0;
    color: #555;
}

.lpsm-staff-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Settings Sections */
.lpsm-settings-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.lpsm-settings-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lpsm-settings-section h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.lpsm-settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lpsm-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.lpsm-form-group label {
    font-weight: 500;
    color: #333;
}

.lpsm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.lpsm-checkbox-label input[type="checkbox"] {
    margin: 0;
}

.lpsm-form-actions {
    margin-top: 10px;
}

/* Recent Enquiries */
.lpsm-dashboard-recent {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lpsm-dashboard-recent h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.lpsm-recent-enquiries {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lpsm-recent-enquiry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.lpsm-recent-enquiry-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.lpsm-recent-enquiry-info p {
    margin: 0;
    color: #666;
    font-size: 12px;
}

.lpsm-recent-enquiry-date {
    color: #999;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* NOTE: .lpsm-dashboard-header responsive styles moved to elaha.css */
    
    .lpsm-dashboard-nav {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .lpsm-nav-item {
        white-space: nowrap;
        border-bottom: none;
        border-right: 1px solid #f0f0f0;
    }
    
    .lpsm-nav-item:last-child {
        border-right: none;
    }
    
    .lpsm-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .lpsm-schools-grid {
        grid-template-columns: 1fr;
    }
    
    .lpsm-enquiry-header,
    .lpsm-staff-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lpsm-enquiry-details,
    .lpsm-staff-details {
        grid-template-columns: 1fr;
    }
    
    .lpsm-recent-enquiry {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Empty State */
.lpsm-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.lpsm-empty-state h3 {
    margin-bottom: 15px;
    color: #333;
}

.lpsm-empty-state p {
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Status Indicators */
.lpsm-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.lpsm-status-active {
    background: #e8f5e8;
    color: #2d5a2d;
}

.lpsm-status-pending {
    background: #fef3e8;
    color: #8a5a1e;
}

.lpsm-status-inactive {
    background: #f5e8e8;
    color: #8a2d2d;
}

/* Role Indicators */
.lpsm-role {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.lpsm-role-owner {
    background: #e8f4fd;
    color: #1e5a8a;
}

.lpsm-role-principal {
    background: #f0e8fd;
    color: #5a1e8a;
}

.lpsm-role-teacher {
    background: #e8f5e8;
    color: #2d5a2d;
}

.lpsm-role-receptionist {
    background: #fef3e8;
    color: #8a5a1e;
}

/* Dashboard Layout */
.lpsm-dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    justify-content: center;
}

@media (max-width: 768px) {
    .lpsm-dashboard-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
}

/* Dashboard Container */
.lpsm-dashboard-container {
    min-height: 100vh;
    background: #f5f5f5;
    padding: 20px 0;
}

/* Notice Styles */
.lpsm-notice {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
    font-weight: 500;
}

.lpsm-notice-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.lpsm-notice-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.lpsm-notice-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.lpsm-notice-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Button Danger Style */
.lpsm-btn-danger {
    background: #dc3545;
    color: #fff;
}

.lpsm-btn-danger:hover {
    background: #c82333;
    color: #fff;
}

/* Form Styles */
.lpsm-form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lpsm-form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Page Title */
.lpsm-page-title {
    margin: 0 0 30px 0;
    color: #333;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Loading States */
.lpsm-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #666;
}

.lpsm-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: lpsm-spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes lpsm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}