/* LMS Enrollment Block Styles */

.lum-enrollment-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Step Indicator */
.lum-steps-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
}

.lum-steps-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.lum-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.lum-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f1;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.lum-step.active .lum-step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.lum-step.completed .lum-step-number {
    background: #28a745;
    color: white;
}

.lum-step-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.lum-step.active .lum-step-label {
    color: #2271b1;
    font-weight: 600;
}

/* Enrollment Card */
.lum-enrollment-step {
    display: none;
}

.lum-enrollment-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.lum-enrollment-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.lum-enrollment-card h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #2d3436;
}

.lum-enrollment-card > p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 15px;
}

/* Auth Tabs */
.lum-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.lum-auth-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.lum-auth-tab:hover {
    color: #2271b1;
}

.lum-auth-tab.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
}

/* Forms */
.lum-auth-form {
    display: none;
}

.lum-auth-form.active {
    display: block;
}

.lum-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.lum-form-group {
    margin-bottom: 20px;
}

.lum-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3436;
    font-size: 14px;
}

.lum-form-group input[type="text"],
.lum-form-group input[type="email"],
.lum-form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.lum-form-group input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.lum-form-group small {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 13px;
}

.lum-form-group input[type="checkbox"] {
    margin-right: 8px;
}

.lum-join-code-input {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: monospace;
    font-size: 18px !important;
    text-align: center;
}

/* Form Actions */
.lum-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.lum-form-actions > * {
    flex: 0 0 auto;
}

.lum-form-actions .lum-btn-primary {
    flex: 1;
    min-width: 200px;
}

.lum-form-actions .lum-skip-step,
.lum-form-actions .lum-skip-finish {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: #666;
}

.lum-form-actions .lum-skip-step:hover,
.lum-form-actions .lum-skip-finish:hover {
    background: #f8f9fa;
    border-color: #2271b1;
    color: #2271b1;
}

.lum-form-footer {
    margin-top: 20px;
    text-align: center;
}

.lum-form-footer a {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
}

.lum-form-footer a:hover {
    text-decoration: underline;
}

/* Buttons */
.lum-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.lum-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex: 1;
}

.lum-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.lum-btn-secondary {
    background: #f0f0f1;
    color: #2c3338;
}

.lum-btn-secondary:hover {
    background: #dcdcde;
}

.lum-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Logged In Message */
.lum-logged-in-message {
    text-align: center;
    padding: 40px 20px;
}

.lum-user-avatar {
    margin-bottom: 20px;
}

.lum-user-avatar img {
    border-radius: 50%;
    border: 4px solid #e0e0e0;
}

.lum-logged-in-message h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #2d3436;
}

.lum-logged-in-message p {
    margin: 0 0 30px 0;
    color: #666;
}

.lum-logged-in-message .lum-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.lum-or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #999;
}

.lum-or-divider::before,
.lum-or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.lum-or-divider span {
    padding: 0 15px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Success Message */
.lum-success-message {
    text-align: center;
    padding: 40px 20px;
}

.lum-success-message .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.lum-success-message h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #2d3436;
}

.lum-success-message p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 15px;
}

/* Courses Grid */
.lum-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lum-course-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.lum-course-card:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.lum-course-card.selected {
    border-color: #2271b1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.lum-course-checkbox {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
}

.lum-course-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
    margin: 0 0 10px 0;
    padding-right: 40px;
}

.lum-course-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.lum-course-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Loading */
.lum-loading {
    text-align: center;
    padding: 60px 20px;
}

.lum-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Messages */
.lum-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
}

.lum-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.lum-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.lum-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Responsive */
@media (max-width: 768px) {
    .lum-enrollment-card {
        padding: 30px 20px;
    }
    
    .lum-form-row {
        grid-template-columns: 1fr;
    }
    
    .lum-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .lum-form-actions {
        flex-direction: column;
    }
    
    .lum-form-actions .lum-btn {
        width: 100%;
    }
    
    .lum-steps-indicator {
        gap: 10px;
    }
    
    .lum-step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .lum-step-label {
        font-size: 11px;
    }
}

/* Current Location Display */
.lum-current-location {
    margin: 30px 0;
}

.lum-location-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s;
}

.lum-location-card:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.1);
    transform: translateY(-2px);
}

.lum-location-card .dashicons {
    font-size: 48px;
    color: #2271b1;
    margin-top: 5px;
}

.lum-location-details {
    flex: 1;
}

.lum-location-details h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #2d3436;
}

.lum-location-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2271b1 0%, #1557a0 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.lum-location-meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.lum-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.lum-meta-item .dashicons {
    font-size: 18px;
    color: #2271b1;
}

/* Responsive */
@media (max-width: 768px) {
    .lum-location-card {
        flex-direction: column;
        text-align: center;
    }
    
    .lum-location-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .lum-meta-item {
        justify-content: center;
    }
}

/* Current Location Display */
.lum-current-location {
    margin: 30px 0;
}

.lum-location-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

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

.lum-location-card > .dashicons {
    font-size: 48px;
    color: #2271b1;
    width: 48px;
    height: 48px;
}

.lum-location-details {
    flex: 1;
}

.lum-location-details h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 10px 0;
}

.lum-location-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2271b1 0%, #1557a0 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.lum-location-meta {
    display: flex;
    gap: 25px;
    margin-top: 15px;
}

.lum-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.lum-meta-item .dashicons {
    font-size: 18px;
    color: #2271b1;
}

/* Responsive for location card */
@media (max-width: 768px) {
    .lum-location-card {
        flex-direction: column;
        text-align: center;
    }
    
    .lum-location-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .lum-meta-item {
        justify-content: center;
    }
}
