/* ================================
   🌟 Vision Lab - Unified Layout
   ================================ */

/* ================= Base ================= */
:root {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --accent: #FBBF24;
    --green: #10B981;
    --green-dark: #059669;
    --red: #EF4444;
    --text-dark: #1F2937;
    --bg-soft: #F9FAFB;
}

body {
    font-family: 'Instrument Sans', 'Cairo', sans-serif;
    direction: rtl;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-soft);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ================= Containers ================= */
/* ======== General Container ======== */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ======== Video Section ======== */
#video-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

#video-container video {
    width: 20%;
    border-radius: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #000;
}

.appointment {
    background-color: #fff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    width: 100%;

}

#recordingControls button {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    margin-right: 8px;
    font-weight: bold;
    transition: 0.2s;
}

#participantsSidebar {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 200px;
    max-height: 60vh;
    background: #f8f8f8;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    overflow-y: auto;
    z-index: 1000;
}

#participantsSidebar h3 {
    margin-top: 0;
    font-size: 16px;
    text-align: center;
}

#participantsList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#participantsList li {
    padding: 4px 6px;
    margin-bottom: 2px;
    border-radius: 4px;
    font-size: 14px;
}

#participantsList li.teacher {
    font-weight: bold;
    background: #d0f0ff;
}

#participantsList li.parent {
    background: #fff;
}

/* للجوال: تصغير الشريط الجانبي */
@media (max-width: 768px) {
    #participantsSidebar {
        width: 140px;
        top: 10px;
        right: 10px;
        font-size: 12px;
        max-height: 50vh;
    }
}


/* الألوان الطبيعية */
.bg-purple { background-color: #6a0dad; }
.bg-red { background-color: #e74c3c; }
.bg-green { background-color: #27ae60; }

/* تأثير hover */
.bg-purple:hover:not(:disabled) { background-color: #7d1dbf; }
.bg-red:hover:not(:disabled) { background-color: #f05a4f; }
.bg-green:hover:not(:disabled) { background-color: #2ecc71; }

/* الحالة disabled */
#recordingControls button:disabled {
    opacity: 0.6;       /* تقليل التباين قليلاً */
    cursor: not-allowed; /* إظهار أن الزر غير قابل للنقر */
}


/* ======== Whiteboard Section ======== */
#whiteboard {
    width: 100%;
    max-width: 100%;
    height: 500;
    border: 2px solid #333;
    border-radius: 10px;
    background-color: #fff;
    cursor: crosshair;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease-in-out;
}

#whiteboard:active {
    box-shadow: inset 0 0 15px rgba(0,0,0,0.2);
}

/* ======== Toolbar ======== */
#toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

#toolbar label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #333;
}

#toolbar input[type="color"],
#toolbar input[type="number"],
#toolbar input[type="range"] {
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 3px 5px;
    font-size: 14px;
}

#toolbar button {
    padding: 6px 15px;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#toolbar button:hover {
    background-color: #0056b3;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* ======== Responsive ======== */
@media (max-width: 992px) {
    #video-container {
        flex-direction: column;
        gap: 20px;
    }

    #video-container video {
        width: 100%;
    }
}


/* ================= Headings ================= */
h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* ================= Inputs ================= */
.input-field,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-field:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(124, 58, 237, 0.3);
}

/* ================= Buttons ================= */
.btn {
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

/* Purple Buttons */
.btn-purple {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(124,58,237,0.4);
}

.btn-purple:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124,58,237,0.5);
}

/* Green Buttons */
.btn-green {
    background-color: var(--green);
    color: #fff;
    box-shadow: 0 2px 6px rgba(16,185,129,0.4);
}


.btn-green:hover {
    background-color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16,185,129,0.5);
}

/* Red Buttons */
.btn-red {
    background-color: var(--red);
    color: #fff;
    box-shadow: 0 2px 6px rgba(239,68,68,0.4);
}

.btn-red:hover {
    background-color: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239,68,68,0.5);
}

.bg-green{
    background-color: var(--green);
    color: #fff;
    box-shadow: 0 2px 6px rgba(16,185,129,0.4);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}
.bg-purple{
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(16,185,129,0.4);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}
.bg-red{
    background-color: var(--red);
    color: #fff;
    box-shadow: 0 2px 6px rgba(16,185,129,0.4);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.bg-accent{
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 2px 6px rgba(16,185,129,0.4);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

/* ================= Tables ================= */
table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

thead {
    background-color: #E9D8FD;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.9rem;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
}

tbody tr {
    transition: background-color 0.3s ease;
}

tbody tr:hover {
    background-color: #FAF5FF;
}

/* Table Buttons */
.table-btn {
    padding: 0.3rem 0.7rem;
    border-radius: 0.4rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.table-btn-edit {
    background-color: #3B82F6;
}
.table-btn-edit:hover {
    background-color: #2563EB;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(59,130,246,0.4);
}

.table-btn-delete {
    background-color: var(--red);
}
.table-btn-delete:hover {
    background-color: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(239,68,68,0.4);
}

/* ================= Status ================= */
.status-paid {
    color: #38A169;
    font-weight: 600;
}
.status-pending {
    color: #D69E2E;
    font-weight: 600;
}

/* ================= Labels ================= */
label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #4B5563;
}

/* ================= Lists ================= */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul li {
    background-color: #fff;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

ul li:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* ================= Auth Pages ================= */
.auth-container {
    max-width: 400px;
    width: 90%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    text-align: center;
}

/* ================= Responsive ================= */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    input, select, textarea, button {
        font-size: 0.95rem;
    }

    .flex {
        flex-direction: column;
    }

    .space-x-4 > * + * {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}


/* ================================
   🌟 Multi-Step Form - Vision Lab
   ================================ */

.step {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.step-buttons button {
    padding: 0.65rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-buttons .btn-prev {
    background-color: #D1D5DB;
    color: var(--text-dark);
}

.step-buttons .btn-prev:hover {
    background-color: #9CA3AF;
}

.step-buttons .btn-next {
    background-color: var(--primary);
    color: #fff;
}

.step-buttons .btn-next:hover {
    background-color: var(--primary-dark);
}

/* Progress bar */
.progress-bar {
    display: flex;
    margin-bottom: 1.5rem;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    font-weight: 600;
    color: #9CA3AF;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    height: 4px;
    background-color: #D1D5DB;
    width: 100%;
    transform: translateY(-50%);
    z-index: -1;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.active {
    color: var(--primary);
}

.progress-step.active::before {
    content: '●';
    color: var(--primary);
    display: block;
    margin: 0 auto 0.3rem;
}

.progress-step::before {
    content: '○';
    display: block;
    margin: 0 auto 0.3rem;
    color: #D1D5DB;
}

/* ================================
   🌟 Vision Lab - Modern Dashboard
   ================================ */

/* الخطوط */
body {
    font-family: 'Cairo', 'Instrument Sans', sans-serif;
    line-height: 1.6;
    color: #1F2937; /* داكن للنص */
    background-color: #F9FAFB; /* خلفية ناعمة */
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
}

/* العناوين */
h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #7C3AED; /* البنفسجي الرئيسي */
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #4B5563;
}

/* ================= Buttons ================= */
.btn {
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* البنفسجي */
.btn-purple {
    background-color: #7C3AED;
    color: #fff;
    box-shadow: 0 2px 6px rgba(124, 58, 237,0.4);
}

.btn-purple:hover {
    background-color: #6D28D9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124,58,237,0.5);
}

/* الأخضر */
.btn-green {
    background-color: #10B981;
    color: #fff;
    box-shadow: 0 2px 6px rgba(16,185,129,0.4);
}

.btn-green:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16,185,129,0.5);
}

/* الأحمر */
.btn-red {
    background-color: #EF4444;
    color: #fff;
    box-shadow: 0 2px 6px rgba(239,68,68,0.4);
}

.btn-red:hover {
    background-color: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239,68,68,0.5);
}

/* ================= Tables ================= */
table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

thead {
    background-color: #F3E8FF;
    color: #7C3AED;
    text-transform: uppercase;
    font-size: 0.875rem;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
}

tbody tr {
    transition: background-color 0.3s ease;
}

tbody tr:hover {
    background-color: #FAF5FF;
    transform: scale(1.01);
}

/* جدول أزرار تعديل وحذف */
.table-btn {
    padding: 0.35rem 0.7rem;
    border-radius: 0.4rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.table-btn-edit {
    background-color: #3B82F6;
}

.table-btn-edit:hover {
    background-color: #2563EB;
    transform: translateY(-1px);
}

.table-btn-delete {
    background-color: #EF4444;
}

.table-btn-delete:hover {
    background-color: #DC2626;
    transform: translateY(-1px);
}

/* ================= Status Badges ================= */
.status-paid {
    color: #38A169;
    font-weight: 600;
    background-color: #D1FAE5;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.status-pending {
    color: #D97706;
    font-weight: 600;
    background-color: #FEF3C7;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.status-completed {
    color: #065F46;
    font-weight: 600;
    background-color: #D1FAE5;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

/* ================= Upcoming Appointments ================= */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul li {
    background-color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

ul li:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* ================= Responsive ================= */
@media (max-width: 768px) {
    .flex { flex-direction: column; }
    th, td { padding: 0.5rem 0.75rem; }
    .btn { width: 100%; justify-content: center; }
}

.tracks {
    padding: 60px 0;
}

.track-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    transition: 0.3s ease;
    border: 1px solid #f1f1f1;
    margin: 10px;
}

.track-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.track-card.featured {
    border: 2px solid #7c3aed;
    transform: scale(1.03);
}

.track-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #7c3aed;
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 999px;
}

.track-header h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.track-header p {
    font-size: 13px;
    color: #777;
}

.track-price {
    margin: 15px 0;
    font-size: 30px;
    font-weight: bold;
}

.track-price small {
    font-size: 14px;
    color: #666;
}

.track-details {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 13px;
}

.detail strong {
    display: block;
    color: #444;
}

.detail span {
    color: #777;
}

.track-desc {
    font-size: 13px;
    color: #666;
    margin: 10px 0 20px;
}

.track-btn {
    display: inline-block;
    background: #7c3aed;
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.track-btn:hover {
    background: #5b21b6;
}

