* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
body { background-color: #f1f5f9; color: #1e293b; }
.hidden { display: none !important; }

/* Logos */
.brand-logo { width: 50px; height: auto; object-fit: contain; }
.brand-logo-sm { width: 35px; height: auto; object-fit: contain; background: white; padding: 2px; border-radius: 4px; }

/* --- LOGIN VIEW --- */
.login-container { display: flex; justify-content: center; align-items: center; height: 100vh; background: #0f172a; }
.login-box { background: #fff; padding: 40px; border-radius: 12px; width: 400px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); text-align: center; }
.login-logo { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 10px; color: #0f172a; }
.login-logo h1 { font-size: 22px; text-align: left; }
.login-subtitle { color: #64748b; margin-bottom: 30px; font-size: 14px; }
.login-box .form-group { text-align: left; margin-bottom: 20px; }
.login-box label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.login-box input { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; }
.btn-primary { width: 100%; padding: 12px; background: #0f172a; color: white; border: none; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-primary:hover { background: #1e293b; }
.error-msg { color: #ef4444; margin-top: 15px; font-size: 14px; font-weight: 500; min-height: 20px; }

/* --- EXAM VIEW --- */
.app-container { display: flex; flex-direction: column; height: 100vh; max-width: 1400px; margin: 0 auto; background: #fff; box-shadow: 0 0 20px rgba(0,0,0,0.05); }
.app-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 40px; border-bottom: 1px solid #e2e8f0; background: #0f172a; color: white; }
.brand { display: flex; align-items: center; gap: 15px; }
.brand h1 { font-size: 18px; font-weight: 700; }
.candidate-badge { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); padding: 6px 12px; border-radius: 20px; font-size: 13px; }

/* Progress */
.progress-container { padding: 20px 40px; border-bottom: 1px solid #e2e8f0; }
.progress-bar { height: 4px; background: #e2e8f0; border-radius: 2px; position: relative; margin-bottom: 15px; }
.progress-bar::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: #3b82f6; border-radius: 2px; transition: width 0.3s ease; }
.progress-steps { display: flex; justify-content: space-between; }
.step-dot { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #94a3b8; font-size: 11px; font-weight: 600; }
.step-dot i { font-size: 16px; }
.step-dot.active { color: #3b82f6; }
.step-dot.completed { color: #10b981; }

/* Wizard Content */
.wizard-content { display: flex; flex: 1; overflow: hidden; }
.input-panel { flex: 1; padding: 40px; border-right: 1px solid #e2e8f0; overflow-y: auto; }
.platform-header { display: none; } /* Hidden by modern UI */
.instruction { font-size: 13px; color: #64748b; margin-bottom: 25px; padding: 12px; background: #f8fafc; border-left: 4px solid #3b82f6; border-radius: 4px; }

/* --- MODERN PUBLISHER UI --- */
.platform-icons-row { display: flex; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid #e2e8f0; margin-bottom: 20px; }
.p-icon { width: 45px; height: 45px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: #94a3b8; cursor: pointer; transition: 0.2s; font-size: 18px; border: 2px solid transparent; }
.p-icon:hover { background: #e2e8f0; color: #64748b; }
.p-icon.active { background: #eff6ff; border-color: #3b82f6; color: #3b82f6; }

.editor-textarea-wrapper { position: relative; margin-bottom: 20px; }
#contentInput { width: 100%; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; font-size: 15px; resize: none; min-height: 120px; transition: border 0.2s; font-family: inherit; }
#contentInput:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.char-counter { text-align: right; font-size: 11px; color: #94a3b8; margin-top: 4px; }
.char-counter.warning { color: #f59e0b; }
.char-counter.danger { color: #ef4444; }

.media-tabs { display: flex; gap: 5px; margin-bottom: 15px; border-bottom: 1px solid #e2e8f0; }
.media-tab { background: none; border: none; padding: 10px 16px; font-size: 14px; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 8px; transition: 0.2s; }
.media-tab:hover { color: #334155; }
.media-tab.active { color: #3b82f6; border-bottom: 2px solid #3b82f6; font-weight: 600; }

.media-dropzone { border: 2px dashed #cbd5e1; border-radius: 8px; padding: 15px; background: #f8fafc; min-height: 180px; display: flex; flex-direction: column; align-items: center; }
.url-input-wrapper { width: 100%; margin-bottom: 15px; }
.url-input-wrapper input { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; background: white; }
.image-preview-area { width: 100%; min-height: 100px; display: flex; justify-content: center; align-items: center; }
.dropzone-placeholder { display: flex; flex-direction: column; align-items: center; color: #94a3b8; }
.dropzone-placeholder i { font-size: 32px; margin-bottom: 8px; }
.dropzone-placeholder p { font-size: 13px; }
.preview-img-thumb { max-width: 100%; max-height: 200px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

/* --- MOBILE PREVIEW --- */
.preview-panel { flex: 1; background: #f8fafc; display: flex; flex-direction: column; align-items: center; }
.preview-header { width: 100%; text-align: center; padding: 15px; font-weight: 700; color: #64748b; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #e2e8f0; }
.phone-wrapper { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 40px 20px; overflow-y: auto; width: 100%; }
.phone-mockup { width: 320px; height: 650px; background: #000; border-radius: 40px; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); position: relative; flex-shrink: 0; }
.phone-notch { width: 120px; height: 25px; background: #000; border-radius: 0 0 15px 15px; position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 10; }
.phone-screen { width: 100%; height: 100%; background: #fff; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
/* --- REALISTIC MOBILE PREVIEW UI --- */
.phone-screen { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.mbl-app-header { display: flex; align-items: center; padding: 10px 12px; border-bottom: 1px solid #dbdbdb; font-size: 16px; font-weight: 700; gap: 8px; min-height: 45px; background: #fff; }
.mbl-app-header i { font-size: 18px; cursor: pointer; }
.mbl-body { flex: 1; overflow-y: auto; background: #fff; }

/* Post Header (Shared) */
.mbl-post-header { display: flex; align-items: center; padding: 10px 12px; gap: 10px; }
/* Logo as Profile Picture */
.mbl-logo-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid #dbdbdb; padding: 1px; }
.ig-story-ring .mbl-logo-avatar { width: 100%; height: 100%; border: 2px solid #fff; padding: 0; }
.mbl-username { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.mbl-meta { font-size: 11px; color: #65676b; margin-top: 1px; font-weight: 400; }

/* Images */
.mbl-image { width: 100%; aspect-ratio: 4/3; background-color: #f0f2f5; background-size: cover; background-position: center; }
.mbl-image-square { width: 100%; aspect-ratio: 1; background-color: #f0f2f5; background-size: cover; background-position: center; }

/* Content Text */
.mbl-content { padding: 0 12px 10px; font-size: 13px; line-height: 1.4; word-break: break-word; white-space: pre-wrap; color: #1c1e21; }
.mbl-content .bold-user { font-weight: 700; color: #1c1e21; margin-right: 4px; }

/* --- Instagram Specifics --- */
.ig-story-ring { width: 36px; height: 36px; border-radius: 50%; padding: 2px; background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); display: flex; align-items: center; justify-content: center; }
.ig-story-ring .mbl-avatar { width: 100%; height: 100%; border: 2px solid #fff; }
.ig-actions { display: flex; padding: 4px 12px; gap: 15px; font-size: 22px; color: #1c1e21; }
.ig-bookmark { margin-left: auto; }
.ig-likes { padding: 0 12px; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.ig-comments { padding: 0 12px; font-size: 13px; color: #8e8e8e; margin-bottom: 4px; }
.ig-time { padding: 0 12px 10px; font-size: 10px; color: #8e8e8e; text-transform: uppercase; }

/* --- Facebook Specifics --- */
.fb-react-bar { display: flex; align-items: center; padding: 0 12px; margin-top: 6px; font-size: 12px; color: #65676b; }
.fb-react-icons { display: flex; margin-right: 4px; }
.fb-react-icon { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 10px; border: 2px solid #fff; margin-left: -4px; }
.fb-actions { display: flex; justify-content: space-around; padding: 8px 0; border-top: 1px solid #e4e6eb; margin-top: 8px; color: #65676b; font-weight: 600; font-size: 12px; }
.fb-action-btn { display: flex; align-items: center; gap: 5px; cursor: pointer; padding: 4px 20px; border-radius: 4px; }
.fb-action-btn:hover { background: #f0f2f5; }

/* --- X (Twitter) Specifics --- */
.x-layout { display: flex; gap: 12px; padding: 12px; }
.x-col-left { display: flex; flex-direction: column; align-items: center; }
.x-line { width: 2px; flex: 1; background: #eff3f4; margin-top: 4px; }
.x-col-right { flex: 1; }
.x-user-row { display: flex; align-items: center; gap: 4px; font-size: 14px; flex-wrap: wrap; }
.x-handle { color: #536471; font-weight: 400; font-size: 13px; }
.x-dot { color: #536471; font-size: 6px; margin: 0 2px; }
.x-actions { display: flex; justify-content: space-between; padding: 10px 12px 10px 56px; color: #536471; font-size: 13px; }
.x-action-group { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.x-action-group:hover { color: #1d9bf0; }

/* --- LinkedIn Specifics --- */
.li-actions { display: flex; justify-content: space-around; padding: 8px 0; border-top: 1px solid #e4e6eb; margin-top: 8px; color: #64748b; font-weight: 600; font-size: 12px; }
.li-btn { display: flex; align-items: center; gap: 6px; padding: 4px 12px; cursor: pointer; border-radius: 4px; }

/* --- YouTube Specifics --- */
.yt-header { display: flex; align-items: center; padding: 12px; gap: 12px; }
.yt-info { flex: 1; }
.yt-subscribe { background: #0f0f0f; color: white; border: none; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer; }
.yt-actions { display: flex; justify-content: space-around; padding: 10px 12px; border-top: 1px solid #e5e5e5; margin-top: 10px; color: #0f0f0f; font-size: 14px; font-weight: 600; }
.yt-btn { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: #f2f2f2; border-radius: 20px; cursor: pointer; }

/* --- Telegram Specifics --- */
.tg-bg { background: #e7ebf0; height: 100%; padding: 20px 10px; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; }
.tg-bubble { background: white; padding: 8px 10px; border-radius: 12px 12px 0 12px; max-width: 85%; box-shadow: 0 1px 2px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.tg-text { font-size: 14px; line-height: 1.4; color: #000; word-break: break-word; white-space: pre-wrap; }
.tg-footer { font-size: 11px; color: #aaa; text-align: right; margin-top: 5px; display: flex; justify-content: flex-end; gap: 4px; align-items: center; align-self: flex-end; }
.tg-img { width: 100%; aspect-ratio: 4/3; background-color: #ddd; background-size: cover; background-position: center; border-radius: 8px 8px 0 0; margin-bottom: -6px; }
/* Footer Nav */
.wizard-footer { display: flex; justify-content: space-between; padding: 15px 40px; border-top: 1px solid #e2e8f0; background: #fff; }
.nav-btn { padding: 10px 20px; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.nav-btn.primary { background: #3b82f6; color: white; }
.nav-btn.primary:hover { background: #2563eb; }
.nav-btn.secondary { background: #e2e8f0; color: #64748b; }
.nav-btn:disabled { opacity: 0.5; cursor: not-allowed; }