/* frontend/style.css */
:root { --bg: #121212; --card: #1e1e1e; --text: #e0e0e0; --primary: #00e676; --danger: #ff5252; --accent: #2979ff; --sidebar: #181818; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); margin: 0; padding: 20px; }
.container { max-width: 1100px; margin: 0 auto; }
.nav { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.nav-item { cursor: pointer; padding: 8px 16px; border-radius: 4px; transition: 0.3s; }
.nav-item.active { background: var(--accent); color: white; }
.card { background: var(--card); border-radius: 12px; padding: 20px; margin-bottom: 15px; border: 1px solid #333; position: relative;}
.vacancy-header { display: flex; justify-content: space-between; align-items: flex-start; }
.salary { color: var(--primary); font-weight: bold; }
.actions { display: flex; gap: 10px; margin-top: 15px; }
.btn { padding: 8px 16px; border-radius: 6px; border: none; cursor: pointer; font-weight: 600; transition: 0.2s; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:active { transform: scale(0.98); }
.btn-like { background: var(--primary); color: #000; }
.btn-reject { background: #333; color: var(--danger); border: 1px solid var(--danger); }
.btn-ban { background: #442222; color: #ff8888; border: 1px solid #663333; font-size: 0.8em; }
.btn-keyword { background: #1a3a2a; color: #44ff88; border: 1px solid #2a5a3a; font-size: 0.8em; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: var(--card); width: 450px; padding: 25px; border-radius: 15px; border: 1px solid #444; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }

/* Chat Styles */
.chat-modal { width: 900px; max-width: 95vw; display: flex; flex-direction: column; max-height: 85vh; padding: 20px; }
.chat-messages { flex: 1; overflow-y: auto; background: #131313; padding: 15px; border-radius: 8px; margin-bottom: 15px; display: flex; flex-direction: column; gap: 10px; min-height: 350px; max-height: 55vh; border: 1px solid #2a2a2a; }
.chat-bubble { max-width: 85%; padding: 12px 16px; border-radius: 10px; font-size: 0.9em; line-height: 1.5; word-wrap: break-word; }
.chat-bubble.user { background: var(--accent); color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-bubble.assistant { background: #222c26; color: #a8e6cf; align-self: flex-start; border-bottom-left-radius: 2px; border: 1px solid #334a3f; }
.chat-role { font-size: 0.75em; opacity: 0.6; margin-bottom: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.chat-input-area { display: flex; gap: 10px; align-items: stretch; }
.chat-input-area textarea { flex: 1; resize: none; min-height: 50px; padding: 12px; font-size: 0.9em; }

.settings-layout { display: flex; gap: 20px; align-items: flex-start; }
.profiles-sidebar { width: 280px; background: var(--sidebar); border-radius: 12px; padding: 15px; border: 1px solid #333; }
.profile-item { padding: 10px; border-radius: 6px; margin-bottom: 8px; cursor: pointer; border: 1px solid transparent; display: flex; justify-content: space-between; align-items: center;}
.profile-item.active { background: #222; border-color: var(--accent); }
.profile-editor { flex: 1; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.tag { display: inline-flex; align-items: center; background: #333; padding: 4px 10px; border-radius: 20px; font-size: 0.9em; margin: 4px; }
.tag-remove { margin-left: 8px; cursor: pointer; color: var(--danger); }
input[type="text"], input[type="number"], select, textarea { background: #121212; border: 1px solid #444; color: white; padding: 10px; border-radius: 6px; width: 100%; box-sizing: border-box; font-family: inherit; }
input[type="text"]:focus, input[type="number"]:focus, textarea:focus { border-color: var(--accent); outline: none; }

.description-box { font-size: 0.85em; color: #999; margin-top: 15px; padding: 10px; background: #161616; border-radius: 6px; max-height: 120px; overflow-y: auto; border-left: 3px solid #333; }
.flex-row { display: flex; gap: 8px; }
