:root {
  --max-width: 1100px;
  --border-radius: 12px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-serif: "Roboto Slab", "Times New Roman", Times, serif;
  --font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono",
    "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro",
    "Fira Mono", "Droid Sans Mono", "Courier New", monospace;

  --link-color: #1651b3;
  --link-color-hover: #d00;

  --bg-color: #fff;
  --text-color: #333;
  --text-size: 20;
  --base-line-height: 1.6;
  --leading: calc(var(--base-line-height) * 1rem);
  --site-width: 780px;

  --header-bg: #f2f2f2;

  --code-text-color: #464646;
  --code-bg-color: #f2f2f2;

  --skeleton-item-color-from: #dbdbdb;
  --skeleton-item-color-to: hsla(0, 0%, 86%, 0.5);

  --container-gap: 1.5rem;

  --highlight-bg: #ffff0029;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: var(--base-line-height);
  font-size: calc(var(--text-size) / 18 * 100%);
  font-family: var(--font-sans);
}

a {
  color: var(--link-color);
}
a:hover {
  color: var(--link-color-hover);
}

.link {
  text-decoration: none;
}
.link-text {
  text-decoration: underline;
}
figure {
  text-align: center;
}
figcaption {
  margin-bottom: 2rem;
  opacity: 0.75;
  font-size: 0.85rem;
}

p {
  line-height: calc(var(--leading) * 1.2);
  margin-top: var(--leading);
  margin-bottom: var(--leading);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
}

h2 {
  margin-block-start: 1.5rem;
  margin-block-end: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
}
h3,
h4,
h5 {
  margin-block-start: 1rem;
  margin-block-end: 1rem;
}

ul {
  margin-block-end: 1.25rem;
  margin-inline-start: 3rem;
  list-style-type: "—";
}

li {
  padding-left: 0.5rem;
}

.note {
  margin-bottom: 4rem;
}

blockquote {
  margin-block-start: 1.5rem;
  margin-block-end: 1.5rem;
  padding: 1rem 4rem;
  position: relative;
  color: var(--code-text-color);
  background-color: var(--code-bg-color);
  border-radius: 1rem;
}

blockquote::before,
blockquote::after {
  font-size: 5rem;
  line-height: 0;
  position: absolute;
}

blockquote::before {
  content: "“";
  left: 1rem;
  top: 4rem;
}

blockquote::after {
  content: "”";
  right: 1rem;
  bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-start: 1.5rem;
  margin-block-end: 1.5rem;
}

td,
th {
  padding: 0.5rem;
  text-align: left;
}

.svg-icon {
  width: 1.2em;
  height: auto;
  vertical-align: middle;
  top: -0.2em;
  position: relative;
}

.svg-icon + span {
  margin-left: 0.25rem;
}

/* notes */
.the-header {
  margin-block-end: 3rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  background-color: var(--header-bg);
}
.container {
  max-width: var(--site-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--container-gap);
}

.tag-label {
  background-color: var(--highlight-bg);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  margin-block-end: 2.5rem;
  margin-block-start: 2.5rem;
}
.flash {
  padding: 0.5rem 1rem;
  background-color: var(--highlight-bg);
}
:root {
  --bg-color: #f2f2f2;
  --card-bg-color: #fff;
  --text-color: #333;
  --header-bg: #222;
  --dashboard-container-gap: 1.5rem;
  --container-gap: 1.5rem;
}

.link {
  text-decoration: none;
}
.link-text {
  text-decoration: underline;
}

.dashboard-container {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: var(--dashboard-container-gap);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: auto;
}

@media (min-width: 768px) {
  .dashboard-container {
    --dashboard-container-gap: 2.5rem;
  }
}

.dashboard-header {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ccc;
  background: var(--header-bg);
  font-size: calc(var(--text-size) / 24 * 100%);
}

.dashboard-nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 1rem;
  padding: 0.24rem;
  overflow: auto;
}
.nav-link {
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
  color: #fff;
}
.nav-link:hover,
.nav-link.active,
.nav-link:focus {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.3);
}
.nav-link.nav-right {
  margin-left: auto;
}
.nav-link.create-note-button {
  background-color: var(--link-color);
}

@media (min-width: 768px) {
  .dashboard-form {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
  }
}

.main-column {
  grid-column: 1;
}

.side-column {
  grid-column: 2;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group-hint {
  background-color: #f2f2f2;
  font-size: 0.8em;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  line-height: 1;
}

p {
  line-height: calc(var(--leading) * 1.2);
  margin-top: var(--leading);
  margin-bottom: var(--leading);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
}

h2 {
  margin-block-start: 1.5rem;
  margin-block-end: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
}
h3,
h4,
h5 {
  margin-block-start: 1rem;
  margin-block-end: 1rem;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-family: var(--font-serif);
}

input[type="text"],
input[type="datetime-local"],
.form-control,
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
  color: #222;
}

textarea {
  min-height: 400px;
  font-size: calc(var(--text-size) / 20 * 100%);
  font-family: var(--font-sans);
  line-height: var(--leading);
  resize: vertical;
}

.form-content {
  line-height: calc(var(--leading) * 1.2);
  outline: note;
  border: none;
  padding: 0;
}
.form-title:focus,
.form-content:focus {
  outline: none;
}

input.form-title[type="text"] {
  padding: 0;
  border: none;
  font-family: var(--font-serif);
  font-size: calc(var(--text-size) / 12 * 100%);
}

.submit-button {
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  transition: background-color 0.3s;
  color: #fff;
  border: none;
  background-color: var(--link-color);
  font-size: 1rem;
  max-width: 320px;
  display: inline-block;
  text-align: center;
}

.submit-button:hover {
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.current-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.current-images div {
  text-align: center;
}

.current-images img {
  max-width: 100px;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.image-actions {
  text-align: center;
}

.remove-image-link {
  font-size: 12px;
}

.image-tag-instruction {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.85rem;
}

.dashboard-table th,
.dashboard-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e1e1e1;
}

.dashboard-table th {
  background-color: #f9f9f9;
  font-weight: 600;
  color: #32373c;
}

.dashboard-table tr:hover {
  background-color: #f5f5f5;
}

/* Действия */
.dashboard-table .actions {
  display: flex;
  gap: 10px;
  font-size: 0.9em;
}

.dashboard-note-actions .delete-button,
.dashboard-table .delete-button {
  background-color: #f8cfcf;
  padding: 0.25rem 1rem;
  border: none;
  border-radius: 0.4rem;
  color: #831c1c;
  font-size: 1em;
}
.dashboard-note-actions {
  display: flex;
  gap: 2rem;
  font-size: 0.9em;
  margin-top: 2rem;
  border-top: 1px solid #e1e1e1;
  padding-top: 2rem;
}

.status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8em;
}

.status-published {
  background-color: #46b450;
  color: #fff;
}

.status-draft {
  background-color: #f1f1f1;
  color: #444;
}

.tags {
  font-size: 0.9em;
  color: #666;
}

@media (min-width: 768px) {
  .grid-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: auto 200px;
  }

  .form-lang-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
  }
}
.login-card {
  display: grid;
  margin: 5vw auto 0;
  max-width: 450px;
  gap: 1rem;
  background: white;
  padding: 2rem;
}

.login-card .notice {
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  background-color: var(--highlight-bg);
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-control {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.login-control label {
  flex: 0 0 100px;
  line-height: 32px;
}

.login-control input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
  color: #222;
}

.login-form-submit {
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  transition: background-color 0.3s;
  color: #fff;
  border: none;
  background-color: var(--link-color);
  font-size: 1rem;
  width: 100%;
  display: block;
}
.pagination {
  margin: 1rem 0;
}

.pagy.nav {
  display: flex;
  justify-content: center;
  padding: 0;
}

.pagination a,
.pagination .page {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  text-decoration: none;
  color: var(--link-color);
}

.pagination .current {
  background-color: var(--link-color);
  color: white;
  border-radius: 4px;
}
.dashboard-content-tabs {
}
.dashboard-content-tabs-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.dashboard-content-tab {
  margin: 0;
  padding: 0;
}

.dashboard-content-tab-link {
  border-radius: 0.4rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

.dashboard-content-tab-link.is-active,
.dashboard-content-tab-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.dashboard-content-tab-count {
  margin-left: auto;
  font-size: 0.85em;
}
.dashboard-content-tab-count:before {
  content: "(";
}
.dashboard-content-tab-count:after {
  content: ")";
}

.dashboard-stats-filters {
    margin: 1rem 0;
    display: flex;
    gap: 1rem;
}
/*
 * 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.
 *



*/
