:root { --main-blue: #1e3a8a; --light-blue: #3b82f6; --bg-blue: #f0f7ff; --border-blue: #bfdbfe; }
        .sigma-app { direction: rtl; font-family: 'Segoe UI', sans-serif; background: var(--bg-blue); padding: 25px; border-radius: 15px; max-width: 1100px; margin: auto; }
        .top-bar { display: flex; justify-content: space-between; background: #fff; padding: 20px; border-radius: 12px; margin-bottom: 25px; border: 1px solid var(--border-blue); gap: 20px; }
        .preset-controls { display: flex; gap: 12px; align-items: flex-end; flex: 1.5; }
        .preset-group-wrapper { display: flex; flex-direction: column; gap: 4px; }
        .my-exams-label { background-color: var(--light-blue); color: #fff; padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: bold; display: inline-block; margin-bottom: 5px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
        .mini-label { font-size: 11px; font-weight: bold; color: #888; }
        .main-meta { display: flex; gap: 15px; align-items: flex-end; flex: 2; }
        .meta-field label { display: block; font-size: 13px; font-weight: bold; margin-bottom: 5px; color: var(--main-blue); }
        select, input, textarea { padding: 8px; border: 1px solid var(--border-blue); border-radius: 6px; width: 100%; font-family: inherit; }
        
        .instructions-area { margin-top: 25px; background: #fff; padding: 20px; border-radius: 12px; border: 1px solid var(--border-blue); box-shadow: 0 2px 5px rgba(0,0,0,0.03); display: block; }
        .instructions-area label { font-weight: bold; display: block; margin-bottom: 8px; color: var(--main-blue); }

        .q-card { background: #fff; border: 1px solid var(--border-blue); padding: 15px 20px 20px 20px; margin-bottom: 15px; border-radius: 12px; position: relative; }
        
        /* עיצוב חדש לכותרת השאלה */
        .q-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; }
        .q-num-display { font-size: 16px; font-weight: bold; color: var(--main-blue); background: #e0f2fe; padding: 4px 10px; border-radius: 20px; }
        
        .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
        
        /* עדכון כפתור המחיקה שיהיה בתוך השורה */
        .remove-card { background: none; border: none; color: #ef4444; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 5px; font-size: 13px; }
        .remove-card:hover { text-decoration: underline; }

        .btn-sm { padding: 8px 14px; cursor: pointer; border-radius: 6px; border: 1px solid var(--border-blue); background: #fff; font-weight: bold; }
        .btn-save { background: var(--light-blue); color: #fff; border: none; }
        .btn-delete { color: #ef4444; border-color: #ef4444; }
        .btn-generate { background: linear-gradient(135deg, var(--main-blue), var(--light-blue)); color: white; padding: 14px 40px; border-radius: 50px; border: none; font-weight: bold; cursor: pointer; }
        .footer-summary { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
        .score-pill { padding: 10px 20px; background: #dcfce7; color: #15803d; border-radius: 30px; font-weight: bold; }
        .progress-container { background: #e2e8f0; height: 12px; border-radius: 10px; overflow: hidden; margin: 20px 0; }
        .progress-bar { height: 100%; background: var(--light-blue); width: 0%; transition: width 0.5s ease-out; }
        .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 9999; display: flex; align-items: center; justify-content: center; }
        .modal-content { background: #fff; padding: 30px; border-radius: 15px; max-width: 800px; width: 90%; }
        .hidden { display: none !important; }
        .bulb { font-size: 18px; filter: grayscale(1); }
        .active-bulb { filter: grayscale(0); text-shadow: 0 0 8px #ffd700; }
		.btn-mb-2 {
		margin-bottom: 2px;
		}
		.preset-name-wrapper {
			flex: 4;
			min-width: 220px;
		}
		.custom-inst-wrapper {
		margin-top: 10px;
		}
		.pdf-download-link {
		display: block;
		text-align: center;
		margin-bottom: 20px;
		text-decoration: none;
		}
		.latex-toolbar {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 8px;
		}
