 .questions-layout {
     display: grid;
     grid-template-columns: 250px 1fr;
     /* Scaled down list width for compact modal */
     gap: 30px;
     margin-top: 20px;
     height: 80vh;
     /* Taller inner height to match 90vh modal */
     width: 100%;
 }

 .modal-header-custom {
     padding-bottom: 15px;
     border-bottom: 1px solid var(--border-color);
     margin-bottom: 20px;
 }

 .section-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 15px;
 }

 .questions-container {
     height: 100%;
     overflow-y: auto;
     padding-right: 10px;
 }

 .form-card {
     background: var(--bg-default);
     padding: 20px;
     /* Reduced padding */
     border-radius: 12px;
     border: 1px solid var(--border-color);
     box-shadow: var(--shadow-sm);
     height: 100%;
     overflow-y: auto;
 }

 .form-header h3 {
     margin: 0 0 20px 0;
     color: var(--primary);
     border-bottom: 2px solid var(--primary-light);
     padding-bottom: 10px;
     display: inline-block;
 }

 .options-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 15px;
 }

 .input-with-icon {
     position: relative;
     display: flex;
     align-items: center;
 }

 .opt-badge {
     position: absolute;
     left: 10px;
     background: var(--bg-dark);
     color: var(--text-light);
     width: 24px;
     height: 24px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 0.8rem;
     font-weight: bold;
     z-index: 2;
 }

 .input-with-icon input {
     padding-left: 40px !important;
 }

 /* Compact Text Area */
 #qText {
     min-height: 100px;
     /* Reduced from 150px to fit better */
     width: 100%;
     max-width: 100%;
     box-sizing: border-box;
     font-size: 1rem;
     line-height: 1.5;
     padding: 12px;
     resize: vertical;
     border: 2px solid var(--border-color);
 }

 .form-group {
     margin-bottom: 15px;
     /* Tighter spacing */
 }

 .btn-block {
     width: 100%;
     margin-top: 10px;
     /* Reduced margin */
 }

 /* Question List Items */
 .q-item-card {
     background: #fff;
     border: 1px solid var(--border-color);
     border-radius: 10px;
     padding: 20px;
     margin-bottom: 15px;
     transition: all 0.3s ease;
     border-left: 4px solid transparent;
 }

 .q-item-card:hover {
     box-shadow: var(--shadow-md);
     border-left-color: var(--primary);
     transform: translateY(-2px);
 }

 .q-options-display {
     display: grid;
     grid-template-columns: 1fr;
     /* Stack options vertically in the narrow list */
     gap: 8px;
     margin-top: 15px;
     font-size: 0.9rem;
     background: var(--bg-light);
     padding: 10px;
     border-radius: 8px;
 }

 .q-opt-bg {
     padding: 5px 10px;
     border-radius: 4px;
     background: #fff;
     border: 1px solid #eee;
 }

 .q-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 10px;
 }

 /* Progress Section */
 .info-card {
     background: linear-gradient(135deg, var(--primary), var(--primary-dark));
     color: white;
     padding: 20px;
     border-radius: 12px;
     margin-bottom: 20px;
 }

 /* Utils */
 .btn-icon-danger {
     background: #fee2e2;
     color: #ef4444;
     border: none;
     width: 32px;
     height: 32px;
     border-radius: 6px;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     transition: all 0.2s;
 }

 .btn-icon-danger:hover {
     background: #ef4444;
     color: white;
 }

 .correct-highlight {
     background-color: #dcfce7 !important;
     border-color: #86efac !important;
     color: #166534;
 }