/* Marriage Course Plugin Styles */
#marriage-course-container {
    font-family: 'Rubik', sans-serif;
    direction: rtl;
    color: #2c2c2c;
    line-height: 1.6;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    min-height: 600px;
    border-radius: 12px;
    overflow: hidden;
}

/* Header Styles */
.marriage-header {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 15px 30px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 20px;
}

.marriage-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.marriage-logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.marriage-header-controls,
.marriage-login-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.marriage-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.marriage-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.marriage-user-avatar:hover {
    transform: scale(1.05);
}

.marriage-progress-indicator {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
}

.marriage-progress-bar {
    width: 60px;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

.marriage-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    width: 0%;
    transition: width 0.5s ease;
}

/* Button Styles */
.marriage-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.marriage-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: white;
    text-decoration: none;
}

.marriage-btn-secondary {
    background: white;
    color: #666;
    border: 2px solid #e8e8e8;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.marriage-btn-secondary:hover {
    border-color: #FFD700;
    color: #2c2c2c;
}

.marriage-btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.marriage-btn-large {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
}

.marriage-btn-primary {
    width: 100%;
    margin-top: 10px;
}

/* Modal Styles */
.marriage-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.marriage-modal-overlay.active {
    display: flex;
}

.marriage-login-modal {
    background: white;
    border-radius: 15px;
    padding: 40px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

.marriage-close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    width: auto;
    padding: 5px;
}

.marriage-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.marriage-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 10px;
}

.marriage-modal-subtitle {
    color: #666;
    font-size: 14px;
}

.marriage-form-group {
    margin-bottom: 20px;
}

.marriage-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.marriage-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Rubik', sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.marriage-form-input:focus {
    outline: none;
    border-color: #FFD700;
}

.marriage-login-error {
    color: #e74c3c;
    font-size: 13px;
    margin: 10px 0;
    text-align: center;
    padding: 10px;
    background: #ffeaea;
    border-radius: 6px;
}

.marriage-login-help {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #666;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

/* Welcome Screen */
.marriage-welcome-screen {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.marriage-welcome-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 20px;
}

.marriage-welcome-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.marriage-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.marriage-stat-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.marriage-stat-card:hover {
    transform: translateY(-5px);
}

.marriage-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 10px;
}

.marriage-stat-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Main Content Layout */
.marriage-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    min-height: 500px;
}

/* Sidebar */
.marriage-sidebar {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    padding: 25px;
    height: fit-content;
    max-height: 600px;
    overflow-y: auto;
}

.marriage-course-title {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    color: #2c2c2c;
}

.marriage-lesson-item {
    margin-bottom: 8px;
}

.marriage-lesson-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.marriage-lesson-header:hover:not(.locked) {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.marriage-lesson-header.completed {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    border-color: #28a745;
}

.marriage-lesson-header.current {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    border-color: #FFD700;
}

.marriage-lesson-header.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.marriage-lesson-icon {
    margin-left: 12px;
    font-size: 14px;
}

.marriage-lesson-title {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}

.marriage-lesson-number {
    background: rgba(0,0,0,0.1);
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.marriage-lesson-header.current .marriage-lesson-number {
    background: rgba(255,255,255,0.3);
    color: white;
}

/* Main Content */
.marriage-main-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    padding: 40px;
    min-height: 500px;
}

/* Admin Panel */
.marriage-admin-panel {
    position: fixed;
    top: 0;
    left: -500px;
    width: 500px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    padding: 30px;
    transition: left 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.marriage-admin-panel.active {
    left: 0;
}

.marriage-admin-header {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #2c2c2c;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.marriage-admin-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 12px;
}

.marriage-admin-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

/* Loading Animation */
.marriage-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade In Animation */
.marriage-fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .marriage-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .marriage-sidebar {
        max-height: none;
        margin-bottom: 15px;
    }

    .marriage-main-content {
        padding: 25px 20px;
    }

    .marriage-welcome-title {
        font-size: 28px;
    }

    .marriage-header-content {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .marriage-admin-panel {
        width: 100%;
        left: -100%;
    }

    .marriage-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .marriage-login-modal {
        margin: 20px;
        padding: 30px 20px;
    }
}