/* ===============================
   RESET
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
/* ===============================
   BASE
================================ */
body {
    background: #f4f6f9;
}
h2 {
    text-align: center;
}
/* ===============================
   LAYOUT
================================ */
.app {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 220px;
    background: #1e293b;
    color: white;
    padding: 20px;
}
.sidebar a {
    display: block;
    color: #cbd5e1;
    padding: 10px;
    text-decoration: none;
    border-radius: 6px;
}
.sidebar a:hover {
    background: #334155;
    color: white;
}
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.topbar {
    background: white;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}
.content {
    padding: 20px;
}
/* ===============================
   CARD
================================ */
.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
/* ===============================
   BUTTONS
================================ */
.btn {
    background: #2563eb;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: #1d4ed8;
}
/* ===============================
   FORMS
================================ */
input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
}
/* ===============================
   RTL / LTR
================================ */
.rtl {
    direction: rtl;
    text-align: right;
}
.ltr {
    direction: ltr;
    text-align: left;
}
/* ===============================
   EXAM FIX
================================ */
.question label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    width: 100%;
    cursor: pointer;
}

.card.rtl input[type="radio"] {
    margin-right: 0;
    margin-left: 10px;
    order: 1;
    flex-shrink: 0;
}

.card.rtl .question label span {
    order: 2;
    flex: 1;
}

.card.rtl .question {
    text-align: right;
}

.card.rtl .question label {
    flex-direction: row-reverse;
    text-align: right;
    justify-content: flex-start;
    padding-right: 30px;
}

.card.ltr .question {
    text-align: left;
}

.card.ltr .question label {
    flex-direction: row;
    text-align: left;
}

input[type="radio"] {
    width: auto !important;
    flex-shrink: 0;
}
/* ===============================
   TIMER
================================ */

#examTimerBox {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    background: #1e293b;
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: bold;
}


/* ===============================
   MOBILE
================================ */
@media (max-width: 768px) {
    .app {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }
    .sidebar a {
        flex: 1;
        text-align: center;
    }
    .card {
        padding: 15px;
    }
}
