/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

/* Defining colors for PICO */
:root:not([data-theme=dark]),
[data-theme=light] {
  /* Primary colors */
  --pico-primary: #516aff;
  --pico-primary-background: #516aff;
  --pico-primary-border: var(--pico-primary-background);
  --pico-primary-underline: rgba(81, 106, 255, 0.5);
  --pico-primary-hover: #3e58ff;
  --pico-primary-hover-background: #3e58ff;
  --pico-primary-hover-border: var(--pico-primary-hover-background);
  --pico-primary-hover-underline: var(--pico-primary-hover);
  --pico-primary-focus: rgba(81, 106, 255, 0.25);
  --pico-primary-inverse: #fff;

  /* Secondary colors - adjusted to complement primary */
  --pico-secondary: #6b7280;
  --pico-secondary-background: #6b7280;
  --pico-secondary-border: var(--pico-secondary-background);
  --pico-secondary-underline: rgba(107, 114, 128, 0.5);
  --pico-secondary-hover: #4b5563;
  --pico-secondary-hover-background: #4b5563;
  --pico-secondary-hover-border: var(--pico-secondary-hover-background);
  --pico-secondary-hover-underline: var(--pico-secondary-hover);
  --pico-secondary-focus: rgba(107, 114, 128, 0.25);
  --pico-secondary-inverse: #fff;

  /* Form elements */
  --pico-form-element-active-border-color: var(--pico-primary);
  --pico-form-element-focus-color: var(--pico-primary);
  --pico-switch-checked-background-color: var(--pico-primary);
}

/* Dark theme overrides */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --pico-primary: #8796ff;
    --pico-primary-background: #516aff;
    --pico-primary-hover: #a0abff;
    --pico-primary-hover-background: #6b81ff;
    --pico-primary-focus: rgba(81, 106, 255, 0.25);
  }
}

[data-theme=dark] {
  --pico-primary: #8796ff;
  --pico-primary-background: #516aff;
  --pico-primary-hover: #a0abff;
  --pico-primary-hover-background: #6b81ff;
  --pico-primary-focus: rgba(81, 106, 255, 0.25);
}

/* Poppins font for Meriweza */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --pico-font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Remove button-like styling from dropdown in nav */
nav details.dropdown summary:not([role]) {
  height: auto;
  padding: var(--pico-nav-link-spacing-vertical) var(--pico-nav-link-spacing-horizontal);
  border: none;
  background-color: transparent;
  color: var(--pico-color);
  cursor: pointer;
}

select.placeholder-selected {
  color: var(--form-element-placeholder-color);
}

/* For browsers that don't support CSS variables */
@media (prefers-color-scheme: light) {
  select.placeholder-selected {
    color: #979797;
    /* PICO's default light mode placeholder color */
  }
}

@media (prefers-color-scheme: dark) {
  select.placeholder-selected {
    color: #6c757d;
    /* PICO's default dark mode placeholder color */
  }
}

svg {
  display: block;
  width: 100%;
  height: auto;
}

.flash-messages {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.flash-messages.show {
  opacity: 1;
  max-height: 100px;
}

.flash-messages.hide {
  opacity: 0;
  max-height: 0;
}

.alert {
  margin: 0;
  padding: 1rem;
}

.alert-success,
.alert-error,
.alert-notice {
  background-color: var(--pico-primary);
  color: var(--pico-primary-inverse);
}


p {
  text-align: justify;
}

.centered {
  text-align: center;
}

html,
body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
}

.container {
  max-width: 800px;
}

footer {
  flex-shrink: 0;
}

.hidden {
  display: none;
}

/* completion_checker.css */
.field-validated label::after {
  content: " ✓";
  color: var(--primary);
}

.label {
  font-weight: bold;
  text-align: right;
}

.label::after {
  content: " : ";
}

.fa-link {
  text-decoration: none;
  color: var(--pico-secondary);
  padding: 0.2em;
}

.fa-link:hover {
  color: var(--pico-primary-hover);
}

/* Scoped styles for the profile table */
.profile-table {
  font-size: .8rem;
}

.profile-table tr.profile-table {
  border-bottom: none;
}

.profile-table td.copyable {
  cursor: pointer;
  position: relative;
}

.profile-table td.copyable:hover {

  background-color: rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

/* Highlight copied text */
.profile-table td.highlight {
  background-color: #d4edda;
  transition: background-color 0.3s ease;
}

/* Checkmark styling */
.profile-table .checkmark {
  color: #28a745;
  font-size: 1rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Fixed width for labels */
.profile-table td.champ {
  width: 40%;
  /* 1/3 of the table width */
  font-weight: bold;
}

.profile-table td.copyable .fa-copy {
  opacity: 0;
  position: absolute;
  right: 1em;
  padding-top: 0.2em;
}

.profile-table td.copyable:hover .fa-copy {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

fieldset[data-file-uploaded] .editable-disabled[disabled],
#candidate_profile_email_address[disabled] {
  opacity: 1;
}

.light {
  font-weight: 300;
}

.fa-link-large {
  font-size: 2em;
}
