
/* ResumeVault admin — unified with the new indigo/data-forward brand */

:root {
  /* Backgrounds */
  --bg: #f7f6fb;
  --bg-alt: #f0eef8;
  --card: #ffffff;

  /* Text */
  --ink: #1d1b2b;
  --muted: #66617d;
  --muted-2: #8f89a8;

  /* Borders */
  --line: #e3e0f0;
  --line-strong: #cfc9e6;

  /* Brand */
  --accent: #857bbd;
  --accent-hi: #a79ce3;
  --accent-soft: #f2effc;
  --accent-bg: #f8f7fd;
  --accent-ink: #4d457b;

  /* Radius */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 10px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(133, 123, 189, 0.08);
  --shadow: 0 8px 24px rgba(133, 123, 189, 0.12);

  /* Animation */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Font */
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes focusPulse {
  0% { box-shadow: 0 0 0 0 rgba(54, 47, 156, 0.28); }
  100% { box-shadow: 0 0 0 3px rgba(54, 47, 156, 0.14); }
}

@keyframes shineBar {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Header */
#header {
  background:  #857bbd  !important;
  color: #fff !important;
  box-shadow: none !important;
  border-bottom: none !important;
  animation: fadeIn 0.4s var(--ease) backwards;
}

#header a:link,
#header a:visited,
#branding h1,
#branding h1 a:link,
#branding h1 a:visited {
  color: #fff !important;
  letter-spacing: -0.01em;
}

#user-tools {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
  font-family: var(--mono);
}

#user-tools a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
  transition: border-color 0.15s var(--ease);
}

#user-tools a:hover { border-bottom-color: #fff !important; }

div.breadcrumbs {
  background: var(--accent-ink) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  padding: 10px 20px !important;
  font-size: 0.82rem !important;
  font-family: var(--mono);
}

div.breadcrumbs a { color: #fff !important; }

/* Page */
body {
  background: var(--bg) !important;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

#content { padding: 22px 26px !important; }

#content h1 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  letter-spacing: -0.01em;
  margin: 0 0 18px !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-hi) !important;
  outline-offset: 2px;
}

/* Forms */
fieldset.module,
.module {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-xs) !important;
  margin-bottom: 18px !important;
  overflow: hidden;
  animation: fadeInUp 0.35s var(--ease) backwards;
  position: relative;
}

fieldset.module::before,
.module::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-hi), #7dd3c0, var(--accent-hi), transparent);
  background-size: 200% 100%;
  animation: shineBar 6s linear infinite;
  opacity: 0.85;
  z-index: 1;
}

fieldset.module:nth-of-type(1), .module:nth-of-type(1) { animation-delay: 0.03s; }
fieldset.module:nth-of-type(2), .module:nth-of-type(2) { animation-delay: 0.07s; }
fieldset.module:nth-of-type(3), .module:nth-of-type(3) { animation-delay: 0.11s; }
fieldset.module:nth-of-type(n+4), .module:nth-of-type(n+4) { animation-delay: 0.14s; }

.module h2,
.module caption,
fieldset.module h2 {
  background:  #b7b5cc !important;
  color: var(--accent) !important;
  font-family: var(--mono);
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 11px 16px !important;
  border-bottom: 1px solid var(--line) !important;
}

.form-row {
  padding: 13px 16px !important;
  border-bottom: 1px solid var(--line) !important;
  transition: background 0.12s var(--ease);
}

.form-row:last-child { border-bottom: none !important; }
.form-row:hover { background: rgba(54, 47, 156, 0.025) !important; }

label {
  color: var(--muted) !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
}

.help,
p.help {
  color: var(--muted-2) !important;
  font-size: 0.8rem !important;
}

.rv-form-note {
  background: var(--accent-soft);
  border: 1px solid #d4d1f5;
  border-radius: var(--radius);
  padding: 11px 16px;
  margin: 0 0 18px;
  color: var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
textarea,
select,
.vTextField,
.vLargeTextField {
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius-sm) !important;
  padding: 9px 11px !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

input:hover, textarea:hover, select:hover { border-color: var(--muted-2) !important; }

input:focus, textarea:focus, select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(54, 47, 156, 0.14) !important;
  outline: none;
  animation: focusPulse 0.4s var(--ease);
}

input[type="file"] {
  border: 1px dashed var(--line-strong) !important;
  border-radius: var(--radius-sm) !important;
  padding: 13px !important;
  background: var(--bg-alt) !important;
  width: min(100%, 380px);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

input[type="file"]:hover {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
}

/* Buttons */
.button,
input[type="submit"],
input[type="button"],
.submit-row input,
a.button {
  border-radius: var(--radius-sm) !important;
  border: none !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.1s var(--ease);
}

.button:active,
input[type="submit"]:active,
.submit-row input:active { transform: translateY(1px); }

.object-tools { margin-bottom: 14px !important; }

.object-tools a,
.object-tools a.addlink,
.object-tools a:link,
.object-tools a:visited {
  background: #ededf1 !important;
  color: #ffffff !important;
  border-radius: var(--radius-sm) !important;
  padding: 9px 16px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  box-shadow: 0 1px 2px rgba(36, 31, 110, 0.2), 0 4px 12px rgba(54, 47, 156, 0.2) !important;
  transition: background 0.15s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--spring) !important;
}

.object-tools a:hover {
  background: var(--accent-hi) !important;
  box-shadow: 0 1px 2px rgba(36, 31, 110, 0.24), 0 8px 20px rgba(54, 47, 156, 0.3) !important;
  transform: translateY(-2px);
}

.object-tools a:active { transform: translateY(0) scale(0.97); }

.submit-row {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  padding: 13px 16px !important;
  box-shadow: var(--shadow-xs) !important;
}

.submit-row input.default { background: #857bbd !important; }
.submit-row input.default:hover { background: var(--accent-hi) !important; }
/* Status & Stage dropdown */

.resume-select{
    width:170px;
    min-width:170px;
    height:40px;
    padding:0 32px 0 12px;
    border:1px solid #d0d7de;
    border-radius:6px;
    background:#fff;
    font-size:13px;
    cursor:pointer;
    outline:none;
    box-sizing:border-box;
}

.resume-select:focus{
    border-color:#4f46e5;
    box-shadow:0 0 0 3px rgba(79,70,229,.15);
}

/* Edit page dropdown */
#id_status,
#id_stage {
    min-height: 42px;
    height: 42px;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Label bhi center ho jayegi */
.form-row .flex-container{
    align-items: center;
}
/* Center the column */

.field-status_col,
.field-stage_col{
    text-align:center;
}

/* Make table cells larger */

#result_list td{
    vertical-align:middle;
    padding-top:10px;
    padding-bottom:10px;
}
/* Listing */
#changelist { background: transparent !important; }

#changelist-form {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

/* Left side table */
#changelist #changelist-form {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}

/* Right side filter */
#changelist-filter {
  width: 260px;
  flex-shrink: 0;
}

/* Table */
#result_list {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

/* Header nowrap */
#result_list thead th {
  background: var(--bg-alt) !important;
  color: var(--muted) !important;
  font-family: var(--mono);
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line) !important;
  border-top: none !important;
  padding: 11px 14px !important;
  white-space: nowrap;
}

/* Cell nowrap */
#result_list tbody td,
#result_list tbody th {
  padding: 11px 14px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid var(--line) !important;
  border-top: none !important;
  font-size: 0.88rem !important;
  color: var(--ink);
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Skills column can wrap a bit but stay compact */
#result_list tbody td:nth-child(6) {
  white-space: normal;
  max-width: 260px;
  line-height: 1.4;
  color: var(--muted);
  font-size: 0.83rem !important;
}

/* Row hover effect */
#result_list tbody tr {
  transition: background 0.15s var(--ease), border-left-color 0.2s var(--ease), transform 0.15s var(--ease);
  border-left: 2px solid transparent;
  animation: fadeInUp 0.3s var(--ease) backwards;
}

#result_list tbody tr:nth-child(1) { animation-delay: 0.02s; }
#result_list tbody tr:nth-child(2) { animation-delay: 0.04s; }
#result_list tbody tr:nth-child(3) { animation-delay: 0.06s; }
#result_list tbody tr:nth-child(4) { animation-delay: 0.08s; }
#result_list tbody tr:nth-child(5) { animation-delay: 0.1s; }
#result_list tbody tr:nth-child(n+6) { animation-delay: 0.12s; }

#result_list tbody tr:hover {
  background: #fafaff !important;
  border-left-color: #857bbd;
  transform: translateX(2px);
}

/* Links */
#result_list a:link,
#result_list a:visited { color: var(--ink); font-weight: 600; }

#result_list a:hover { color: #857bbd; }

.rv-link {
  color: #857bbd !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 0.85rem;
}

.rv-link:hover { text-decoration: underline !important; }

/* Toolbar */
#toolbar {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  margin-bottom: 14px !important;
  padding: 9px 13px !important;
  box-shadow: var(--shadow-xs) !important;
}

/* Search bar in toolbar */
#toolbar #searchbar {
  border-radius: var(--radius-sm) !important;
  border: 1px solid #cccccc !important;
  padding: 8px 11px !important;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

#toolbar #searchbar:focus {
  border-color: #857bbd !important;
  box-shadow: 0 0 0 3px rgba(54, 47, 156, 0.14) !important;
  outline: none;
}

/* Filter section */
#changelist-filter {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-xs) !important;
  animation: fadeInUp 0.4s var(--ease) 0.1s backwards;
  width: 260px;
  flex-shrink: 0;
}

/* Content full width */
#content {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Make changelist container flex layout */
#changelist {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  flex-wrap: nowrap; /* keep side by side */
}

/* Left: table container */
#changelist #changelist-form {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  display: block;
}

/* Right: filter container */
#changelist-filter {
  width: 260px;
  flex-shrink: 0;
  flex-grow: 0;
}

/* Table styles */
#result_list {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

/* Sticky header (optional) */
#result_list thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}

/* Hide left nav and expand content */
.toggle-nav-sidebar,
#toggle-nav-sidebar,
#nav-sidebar {
  display: none !important;
  width: 0 !important;
  flex: 0 0 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  visibility: hidden !important;
}

.main > #nav-sidebar + .content,
.main.shifted > #nav-sidebar + .content,
.main > .content,
#container > .main > .content {
  max-width: 100% !important;
  width: 100% !important;
  flex: 1 1 100% !important;
}

#content { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }

#content-main,
#changelist,
#changelist-form,
.changelist-form-container {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Make ADD button clearer */
.object-tools a.addlink { background: #857bbd !important; color: #857bbd; }
.object-tools a.addlink::after { content: none; }

/* Login */
.login { background: var(--bg) !important; }

.login #container {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
  overflow: hidden;
}

.login .submit-row input.default { background: #857bbd !important; }

/* Messages */
.messagelist li { border-radius: var(--radius-sm) !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
}
