/* CONTAINER */
.ees-container { max-width: 900px; margin: 20px auto; font-family: 'Segoe UI', sans-serif; padding: 10px; }

/* HEADER */
.ees-dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 15px; }
#ees-search { width: 100%; max-width: 300px; padding: 10px 15px; border-radius: 20px; border: 1px solid #ddd; outline: none; }

/* LIST ITEM */
.ees-list-item { display: flex; align-items: center; background: #fff; padding: 15px; border-radius: 10px; margin-bottom: 12px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; transition: 0.2s; position: relative; }
.ees-list-item:hover { border-color: #3498db; transform: translateY(-2px); }

.item-icon { width: 45px; height: 45px; background: #e8f6fd; color: #3498db; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-right: 15px; flex-shrink: 0; }
.item-icon.locked-icon { background: #f2f2f2; color: #999; }

.item-details { flex: 1; }
.item-details h3 { margin: 0 0 2px; font-size: 1.1rem; color: #333; }

/* NEW SYLLABUS TEXT */
.syllabus-text { font-size: 0.8rem; color: #666; margin-bottom: 5px; line-height: 1.3; font-style: italic; background: #f9f9f9; display: inline-block; padding: 2px 8px; border-radius: 4px; }

.meta-info { font-size: 0.8rem; color: #888; display: block; }

/* BUTTONS */
.ees-btn-start { background: #3498db; color: white; padding: 8px 18px; border-radius: 20px; text-decoration: none; font-size: 0.9rem; font-weight: bold; white-space: nowrap; }
.ees-btn-start:hover { background: #2980b9; }

.ees-btn-locked { background: #eee; color: #999; border: none; padding: 8px 15px; border-radius: 20px; font-size: 0.85rem; cursor: not-allowed; }

.score-pill { font-size: 0.85rem; font-weight: bold; color: #27ae60; background: #eafaf1; padding: 5px 10px; border-radius: 5px; display: inline-block; margin-right: 5px; }
.btn-mini-group { display: inline-flex; gap: 5px; }
.btn-mini { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #eee; text-decoration: none; font-size: 1rem; }
.btn-mini.restart { background: #fdf2e9; color: #e67e22; }
.btn-mini.result { background: #e8f8f5; color: #1abc9c; }

/* EXAM UI & SOLUTIONS (Same as previous) */
#ees-exam-wrapper { display: flex; flex-direction: column; gap: 15px; }
.ees-header { background: #333; color: #fff; padding: 10px 15px; border-radius: 8px; display: flex; justify-content: space-between; position: sticky; top: 0; z-index: 99; }
.button-danger { background: #e74c3c; border: none; color: white; padding: 5px 10px; border-radius: 4px; }
.ees-question-area { background: #fff; padding: 15px; border-radius: 8px; border: 1px solid #ddd; }
.opt-row { padding: 10px; border: 1px solid #f0f0f0; margin-bottom: 5px; border-radius: 5px; display: flex; justify-content: space-between; font-size: 0.95rem; }
.opt-row input { margin-right: 10px; }
.bg-green { background: #d4edda; border-color: #c3e6cb; color: #155724; }
.bg-red { background: #f8d7da; border-color: #f5c6cb; color: #721c24; }
.exp-box { background: #fff8e1; padding: 10px; margin-top: 10px; border-radius: 4px; border-left: 3px solid #f1c40f; font-size: 0.9rem; color: #444; }

/* MODAL */
.ees-modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.ees-modal-content { background: #fff; width: 90%; max-width: 350px; padding: 25px; border-radius: 12px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.modal-score { font-size: 2.5rem; font-weight: 800; color: #2c3e50; margin: 10px 0; }
.modal-stats { display: flex; justify-content: space-around; background: #f8f9fa; padding: 15px; border-radius: 8px; margin: 20px 0; }
.btn-view-sol { display: block; width: 100%; padding: 12px; background: #8e44ad; color: white; border-radius: 6px; text-decoration: none; font-weight: bold; }
.palette-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.palette-btn { height: 35px; border: 1px solid #ccc; display: flex; align-items: center; justify-content: center; }
.palette-btn.active { border-color: blue; }
.palette-btn.answered { background: green; color: white; }
/* Rank Badge Styling */
.score-block { display: flex; flex-direction: column; align-items: flex-end; margin-right: 10px; }
.score-text { font-weight: bold; font-size: 0.9rem; color: #333; }
.rank-badge { font-size: 0.8rem; background: #FFD700; color: #000; padding: 2px 6px; border-radius: 4px; font-weight: bold; margin-top: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.rank-wait { font-size: 0.75rem; color: #999; font-style: italic; margin-top: 3px; }