/* styles.css */
:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
body { margin: 0; background: #0b0f19; color: #e8eefc; }
.container { max-width: 1080px; margin: 0 auto; padding: 40px 16px; }

.header { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
h1 { margin:0 0 6px; letter-spacing:-0.02em; }
.muted { opacity: 0.8; margin: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

.topRight { display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.profileRow { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }

.actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }

button { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: inherit; cursor: pointer; }
button.primary { background: #2e6bff; border-color: #2e6bff; }
.smallBtn { padding: 8px 10px; border-radius: 10px; }

select, input, textarea {
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25); color: inherit;
}

.panel { margin-top: 18px; padding: 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.04); }
.filters { display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 12px; }
.filters input { width: min(420px, 100%); }
.filters select { min-width: 170px; }

.tableWrap { overflow-x:auto; }
table { width:100%; border-collapse: collapse; }
th, td { padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,0.10); text-align:left; vertical-align: top; }
th { opacity: 0.9; font-weight: 600; }
a { color:#9db7ff; text-decoration: none; }
a:hover { text-decoration: underline; }
td.actionsCell { white-space: nowrap; }

dialog { border: none; padding: 0; border-radius: 16px; background: rgba(12,16,28,0.98); color: #e8eefc; }
dialog::backdrop { background: rgba(0,0,0,0.55); }

.modal { min-width: min(560px, 92vw); display:flex; flex-direction:column; gap: 10px; padding: 16px; }
.modal label { display:flex; flex-direction:column; gap:6px; }
.modalActions { display:flex; justify-content:flex-end; gap:10px; margin-top: 6px; }

.hint { font-size: 12px; margin-top: 4px; }

footer { margin-top: 18px; }

/* Accessibility helpers */
.srOnly{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Print-friendly (Export PDF uses print dialog) */
@media print {
  body { background: white; color: black; }
  .actions, .filters, #newProfileBtn, #modeSelect, #profileSelect, footer { display:none !important; }
  .panel { border: none; background: transparent; }
  th, td { border-bottom: 1px solid #ddd; }
  a { color: black; text-decoration: none; }
}

/* Application Snapshot panel
   Displays uploaded files per job
   Responsive grid layout
*/
.filesPanel { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.10); }
.filesTitle { margin: 0 0 8px; font-size: 14px; opacity: 0.95; }
.fileRow { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.fileMeta { display:flex; flex-direction:column; gap:2px; }
.filesHint { font-size: 12px; margin-top: 6px; }
@media (max-width: 720px){
  .fileRow { grid-template-columns: 1fr; }
}
 /* style for the drop down menu for the attached files*/
 .filesCell { position: relative; }
.filesBtn { padding: 8px 10px; border-radius: 10px; }
.filesMenu {
  position: absolute;
  top: 36px;
  right: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,14,25,0.98);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 50;
}
.filesMenu a, .filesMenu button {
  display: block;
  width: 100%;
  text-align: left;
  margin: 6px 0;
}
.filesTag {
  display: inline-block;
  font-size: 12px;
  opacity: .85;
  margin-right: 6px;
}