/* Admin panel styles - extracted for copy-admin-to-lovol.sh */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4.17vw;
  background-color: #222222;
  color: #ffffff;
  border-bottom: 1px solid #333;
}

.admin-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.admin-header__nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.admin-header__nav a:hover {
  color: #02963f;
}

.admin-header__logo {
  display: flex;
  align-items: center;
}

.admin-header__logo img {
  display: block;
}

.admin-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-header .uk-select {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #555;
  color: #fff;
  padding: 8px 32px 8px 12px;
}

.admin-header .uk-select option {
  background: #222;
  color: #fff;
}

.admin-content {
  padding: 40px 4.17vw 60px;
}

.admin-content-full {
  max-width: none;
  padding: 40px 4.17vw 60px;
}

.admin-form-full-width {
  width: 100%;
  max-width: none;
}

.admin-form-full {
  width: 100%;
  max-width: none;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.admin-lang-section {
  margin-bottom: 32px;
  padding: 24px 0;
  border-top: 1px solid #eee;
}

.admin-lang-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.admin-lang-section__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.admin-lang-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .admin-lang-cols {
    grid-template-columns: 1fr;
  }
}

.admin-lang-col {
  position: relative;
  padding: 20px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 4px;
}

.admin-lang-col__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #02963f;
  background: rgba(2, 150, 63, 0.1);
  border-radius: 4px;
  text-transform: uppercase;
}

.admin-content .uk-container {
  max-width: 1140px;
  margin: 0 auto;
}

.admin-section-title {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #02963f;
}

.admin-section-title .uk-h2 {
  margin: 0;
  font-size: 28px;
  color: #222222;
}

.admin-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.admin-nav-list a {
  display: block;
  padding: 16px 20px;
  background: #f6f6f6;
  color: #222222;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid #ddd;
  transition: all 0.3s;
}

.admin-nav-list a:hover {
  background: #02963f;
  color: #fff;
  border-color: #02963f;
}

.admin-form-group {
  margin-bottom: 20px;
}

.admin-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #222;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.admin-table th,
.admin-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.admin-table th {
  background: #f0f4f2;
  font-weight: 600;
  color: #222;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover td {
  background: #f8faf9;
}

.admin-table__img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eee;
  background: #f5f5f5;
}

.admin-table__img-cell {
  width: 52px;
  padding-right: 12px;
}

.admin-table__empty-img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #bbb;
}

.admin-table .uk-button-small {
  white-space: nowrap;
}

.admin-loading {
  padding: 40px;
  text-align: center;
  color: #666;
}

.admin-detail-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
}

.admin-detail-value {
  margin: 0;
  font-size: 16px;
  color: #222;
}

.admin-detail-value a {
  color: #02963f;
  text-decoration: none;
}

.admin-detail-value a:hover {
  text-decoration: underline;
}

.uk-button-small {
  padding: 6px 14px;
  font-size: 14px;
}

.admin-editor {
  border: 1px solid #ddd;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}

.admin-editor:focus-within {
  border-color: #02963f;
  box-shadow: 0 0 0 1px #02963f;
}

.admin-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  background: #f6f6f6;
}

.admin-editor-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #666;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-editor-btn:hover {
  background: #e0e0e0;
  color: #222;
}

.admin-editor-btn.active {
  background: rgba(2, 150, 63, 0.15);
  color: #02963f;
}

.admin-editor-sep {
  width: 1px;
  height: 20px;
  background: #ddd;
  margin: 0 4px;
}

.admin-editor-content {
  min-height: 200px;
  padding: 16px 20px;
  outline: none;
}

.admin-editor-content p {
  margin-bottom: 1em;
}

.admin-editor-content ul {
  list-style: disc;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.admin-editor-content ol {
  list-style: decimal;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.admin-editor-content h2 {
  font-size: 1.5em;
  margin: 1em 0 0.5em;
  font-weight: 700;
}

.admin-editor-content h3 {
  font-size: 1.25em;
  margin: 1em 0 0.5em;
  font-weight: 600;
}

.admin-editor-content blockquote {
  border-left: 4px solid #02963f;
  padding-left: 1em;
  margin: 1em 0;
  color: #555;
}

.admin-editor-content a {
  color: #02963f;
  text-decoration: underline;
}

.admin-editor-content img {
  max-width: 100%;
  height: auto;
}

.admin-editor-loading {
  background: #f6f6f6;
  border: 1px solid #ddd;
  border-radius: 2px;
}

.admin-editor-content p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  color: #999;
  float: left;
  pointer-events: none;
  height: 0;
}
