/* OrthoLearn LMS Pro - Course Creator Styles */

:root {
    --ol-glass-bg: rgba(255, 255, 255, 0.05);
    --ol-glass-border: rgba(255, 255, 255, 0.1);
    --ol-glass-blur: blur(15px);
    --ol-primary: #00f2fe;
    --ol-secondary: #4facfe;
    --ol-text: #ffffff;
    --ol-text-dim: rgba(255, 255, 255, 0.6);
}

.ol-course-creator {
    background: var(--ol-glass-bg);
    backdrop-filter: var(--ol-glass-blur);
    border: 1px solid var(--ol-glass-border);
    border-radius: 20px;
    padding: 2rem;
    color: var(--ol-text);
    max-width: 1000px;
    margin: 2rem auto;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.ol-creator-header {
    margin-bottom: 2rem;
    text-align: center;
}

.ol-creator-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.ol-creator-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ol-glass-border);
    z-index: 1;
}

.ol-step {
    position: relative;
    z-index: 2;
    background: #1a1a1a;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ol-glass-border);
    transition: all 0.3s ease;
}

.ol-step.active {
    border-color: var(--ol-primary);
    box-shadow: 0 0 15px var(--ol-primary);
    background: var(--ol-primary);
    color: #000;
}

.ol-step.completed {
    background: var(--ol-secondary);
    border-color: var(--ol-secondary);
}

.ol-step-label {
    position: absolute;
    top: 50px;
    font-size: 0.8rem;
    white-space: nowrap;
    color: var(--ol-text-dim);
}

.ol-step.active .ol-step-label {
    color: var(--ol-primary);
    font-weight: 600;
}

/* Form Content */
.ol-creator-content {
    min-height: 400px;
}

.ol-form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.ol-form-step.active {
    display: block;
}

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

input[type="text"], 
input[type="number"], 
textarea, 
select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--ol-glass-border);
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--ol-primary);
    outline: none;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--ol-text);
}

/* Curriculum Builder */
.ol-curriculum-builder {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
}

.ol-curriculum-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ol-curriculum-item {
    background: var(--ol-glass-bg);
    border: 1px solid var(--ol-glass-border);
    margin-bottom: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: grab;
    transition: background 0.2s ease;
}

.ol-curriculum-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ol-item-handle {
    margin-right: 15px;
    color: var(--ol-text-dim);
}

.ol-item-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 10px;
}

.ol-item-type.unit { color: #fce38a; }
.ol-item-type.quiz { color: #f38181; }

.ol-item-remove {
    margin-left: auto;
    color: #ff4b2b;
    cursor: pointer;
    opacity: 0.6;
}

.ol-library-search {
    margin-top: 2rem;
    position: relative;
}

.ol-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #222;
    border: 1px solid var(--ol-glass-border);
    border-radius: 10px;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.ol-search-results.active {
    display: block;
}

.ol-search-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--ol-glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.ol-search-item:hover {
    background: var(--ol-primary);
    color: #000;
}

/* Footer Buttons */
.ol-creator-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

.ol-btn {
    padding: 12px 25px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ol-btn-prev {
    background: var(--ol-glass-bg);
    border: 1px solid var(--ol-glass-border);
    color: #fff;
}

.ol-btn-next, .ol-btn-save {
    background: linear-gradient(135deg, var(--ol-primary), var(--ol-secondary));
    color: #000;
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.2);
}

.ol-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
