/* Enhanced LWFS Interface Styles */

/* Dashboard Styles */
.lwfs-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.user-details h1 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 600;
}

.user-details p {
    margin: 0 0 10px 0;
    opacity: 0.9;
}

.user-role {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 15px;
}

.user-details-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.header-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Dashboard Stats */
.lwfs-dashboard-stats {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.lwfs-stat-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.lwfs-stat-card h4 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.lwfs-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
}

.lwfs-stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.lwfs-stat-item:hover {
    transform: translateY(-2px);
}

.lwfs-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.lwfs-stat-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lwfs-zone-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lwfs-zone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.lwfs-zone-name {
    font-weight: 500;
    color: #495057;
}

.lwfs-zone-count {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Quick Actions */
.lwfs-dashboard-actions {
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.lwfs-dashboard-actions h4 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.lwfs-action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.lwfs-button {
    background: #667eea;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.lwfs-button:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.lwfs-button-secondary {
    background: #6c757d;
}

.lwfs-button-secondary:hover {
    background: #5a6268;
}

.lwfs-button-warning {
    background: #ffc107;
    color: #212529;
}

.lwfs-button-warning:hover {
    background: #e0a800;
    color: #212529;
}

.lwfs-button-small {
    padding: 8px 15px;
    font-size: 12px;
}

/* Student Search Styles */
.lwfs-student-search {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.lwfs-search-header {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lwfs-search-header h3 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 24px;
    font-weight: 600;
}

.lwfs-search-description {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
}

.lwfs-search-form {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lwfs-form-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.lwfs-form-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.lwfs-form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.lwfs-search-results {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lwfs-results-header {
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.lwfs-results-header h4 {
    margin: 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.lwfs-table-container {
    overflow-x: auto;
}

.lwfs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lwfs-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
}

.lwfs-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.lwfs-table tbody tr:hover {
    background: #f8f9fa;
}

.lwfs-student-name strong {
    color: #495057;
    font-size: 16px;
}

.lwfs-serial-number {
    color: #6c757d;
    font-size: 12px;
}

.lwfs-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lwfs-badge-zone {
    background: #e3f2fd;
    color: #1976d2;
}

.lwfs-class-progress {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lwfs-progress-bar {
    position: relative;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.lwfs-progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.lwfs-progress-success {
    background: #28a745;
}

.lwfs-progress-warning {
    background: #ffc107;
}

.lwfs-progress-danger {
    background: #dc3545;
}

.lwfs-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.lwfs-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lwfs-no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lwfs-no-results-icon {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 20px;
}

.lwfs-no-results h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 20px;
}

.lwfs-no-results p {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
}

/* Modal Styles */
.lwfs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lwfs-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lwfs-modal-large {
    width: 800px;
}

.lwfs-modal-header {
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lwfs-modal-header h3 {
    margin: 0;
    color: #495057;
    font-size: 20px;
    font-weight: 600;
}

.lwfs-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.lwfs-modal-close:hover {
    background: #e9ecef;
}

.lwfs-modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Update Form Styles */
.lwfs-update-form-container {
    max-width: 600px;
}

.lwfs-student-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.lwfs-student-info h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 20px;
    font-weight: 600;
}

.lwfs-student-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
}

.lwfs-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
}

.lwfs-progress-summary {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.lwfs-progress-summary h5 {
    margin: 0 0 15px 0;
    color: #1976d2;
    font-size: 16px;
    font-weight: 600;
}

.lwfs-next-class {
    margin: 15px 0 0 0;
    color: #1976d2;
    font-weight: 500;
}

.lwfs-form-group {
    margin-bottom: 20px;
}

.lwfs-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 500;
}

.lwfs-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.lwfs-form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.lwfs-class-requirements {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.lwfs-class-requirements h5 {
    margin: 0 0 15px 0;
    color: #856404;
    font-size: 16px;
    font-weight: 600;
}

.lwfs-checkbox-group {
    margin-bottom: 12px;
}

.lwfs-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
}

.lwfs-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.lwfs-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Success/Error Messages */
.lwfs-success-message,
.lwfs-error-message,
.lwfs-completion-message {
    text-align: center;
    padding: 40px 20px;
}

.lwfs-success-icon,
.lwfs-error-icon,
.lwfs-completion-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.lwfs-success-icon {
    color: #28a745;
}

.lwfs-error-icon {
    color: #dc3545;
}

.lwfs-completion-icon {
    color: #28a745;
}

.lwfs-success-message h4,
.lwfs-error-message h4,
.lwfs-completion-message h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.lwfs-success-message h4 {
    color: #28a745;
}

.lwfs-error-message h4 {
    color: #dc3545;
}

.lwfs-completion-message h4 {
    color: #28a745;
}

.lwfs-success-message p,
.lwfs-error-message p,
.lwfs-completion-message p {
    margin: 0 0 20px 0;
    color: #6c757d;
    font-size: 16px;
}

.lwfs-completion-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.lwfs-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 16px;
}

.lwfs-loading i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .user-details-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lwfs-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .lwfs-action-buttons {
        grid-template-columns: 1fr;
    }
    
    .lwfs-form-group {
        flex-direction: column;
    }
    
    .lwfs-table {
        font-size: 12px;
    }
    
    .lwfs-table th,
    .lwfs-table td {
        padding: 10px 8px;
    }
    
    .lwfs-action-buttons {
        flex-direction: column;
    }
    
    .lwfs-modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .lwfs-form-actions {
        flex-direction: column;
    }
}

/* Debug Styles */
.lwfs-debug-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.lwfs-debug-info h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-weight: 600;
}

.lwfs-debug-info p {
    margin: 0 0 8px 0;
}

.lwfs-debug-info pre {
    background: #e9ecef;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 10px 0 0 0;
} 