@import url("/default.css");

/* Aplikační styly nad Camaret UI */

.header:has(.header-end) {
  align-items: stretch;
  padding-bottom: 0;
}

.header:has(.header-end) .brand {
  align-self: center;
  padding-bottom: 14px;
}

.header-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  text-align: right;
}

.header-end .user-name {
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  line-height: 1.2;
  padding-top: 2px;
}

.header-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 4px;
  background: transparent;
  border: 0;
}

.header-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px 7px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

a.header-tab:hover,
a.header-tab:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.header-tab.is-active {
  padding-top: 10px;
  padding-bottom: 9px;
  color: var(--ink);
  background: var(--canvas);
  font-weight: 500;
  cursor: default;
  border-top: 3px solid var(--accent);
  margin-bottom: -1px;
  border-bottom: 1px solid var(--canvas);
}

@media (max-width: 720px) {
  .header:has(.header-end) {
    align-items: flex-start;
  }

  .header:has(.header-end) .brand {
    align-self: flex-start;
  }

  .header-end {
    width: min(100%, 320px);
    align-self: stretch;
  }

  .header-tabs {
    width: 100%;
  }

  .header-end .user-name {
    white-space: normal;
  }

  .header-tab {
    flex: 1 1 auto;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

.lead {
  color: var(--ink-soft);
  line-height: 1.55;
}

.muted {
  color: var(--ink-muted);
}

.small {
  font-size: 11px;
}

.recaptcha-notice {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.share-form,
.narrow-form,
.inline-form {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.share-form {
  max-width: 28rem;
}

.narrow-form {
  max-width: 360px;
}

.inline-form {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.field {
  display: grid;
  gap: 4px;
}

.field label:has(input[type="checkbox"]) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.field input[type="checkbox"] {
  width: auto;
}


.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field textarea,
.copy-row input {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 8px 10px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 40px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

.password-toggle-icon--hide {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle-icon--show {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle-icon--hide {
  display: block;
}

.share-form .file-drop {
  flex: none;
  max-width: none;
  width: 100%;
  min-height: 72px;
}

.btn-danger {
  border-color: rgba(207, 45, 86, 0.25);
  background: var(--danger-soft);
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(207, 45, 86, 0.16);
}

.btn-small {
  padding: 4px 10px;
  font-size: 11px;
}

.success-msg {
  margin: 0 0 12px;
  padding: 8px 10px;
  background: rgba(52, 120, 92, 0.1);
  color: var(--success);
  border: 1px solid rgba(52, 120, 92, 0.2);
  font-size: 12px;
}

.meta-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.meta-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
}

.meta-list dt {
  font-weight: 600;
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 4px;
}

.table-wrap {
  overflow-x: auto;
  margin: 8px 0 16px;
}

tr.expired {
  opacity: 0.65;
}

tr.share-note-row td {
  padding-top: 0;
  padding-bottom: 8px;
  border-top: none;
}

.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.actions form {
  margin: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface-2);
  padding: 1px 4px;
  border-radius: 3px;
}

@media (max-width: 720px) {
  .meta-list div {
    grid-template-columns: 1fr;
  }

  .copy-row {
    grid-template-columns: 1fr;
  }
}
