/* =========================================================
   Language Switcher Styles
========================================================= */

.olc-lang-tabs {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    flex-wrap: wrap; /* prevents overflow on small screens */
}

.olc-lang-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: #ffffff;
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.olc-lang-tab:hover {
    border-color: #667eea;
    background: #f8f9fe;
}

.olc-lang-tab.active {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
}

.olc-lang-panel {
    display: none;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #ffffff;
    margin-top: 10px;
}

.olc-lang-panel.active {
    display: block;
}

.olc-lang-panel input,
.olc-lang-panel textarea {
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

.olc-lang-panel textarea[dir="rtl"] {
    direction: rtl;
    text-align: right;
    font-family: Tahoma, Arial, sans-serif;
}

/* =========================================================
   Student Panel Styles
========================================================= */

.olc-eng-box {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.olc-eng-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.olc-eng-title {
    font-size: 24px;
    font-weight: 600;
    color: #333333;
}

/* legacy language links (if still used somewhere) */
.olc-eng-lang a {
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    background: #f0f0f0;
    color: #666666;
}

.olc-eng-lang a.active {
    background: #667eea;
    color: #ffffff;
}

.olc-eng-section {
    margin-bottom: 30px;
}

.olc-eng-card {
    background: #f9f9f9;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.olc-eng-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333333;
}

.olc-eng-row {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #f9f9f9;
}

.olc-eng-badge {
    background: #667eea;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
}

.olc-eng-empty {
    text-align: center;
    padding: 20px;
    color: #666666;
    background: #f9f9f9;
    border-radius: 6px;
}

.olc-eng-success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
}

/* =========================================================
   Form Styles
========================================================= */

.olc-eng-form {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 20px;
}

.olc-eng-form-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333333;
}

.olc-eng-form-intro {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: #666666;
}

.olc-eng-q {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eeeeee;
}

.olc-eng-q-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333333;
}

.olc-eng-req {
    color: #dc3545;
}

.olc-eng-opt {
    display: block;
    margin: 8px 0;
    padding: 8px;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
}

.olc-eng-opt:hover {
    background: #e9ecef;
}

.olc-eng-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.olc-eng-text {
    width: 100%;
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.olc-eng-btn {
    background: #667eea;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.olc-eng-btn:hover {
    background: #5a67d8;
}
