/* Admin Interface Styles */

.admin-container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.admin-header h1 {
  font-size: 2.8rem;
  font-weight: 600;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background-color: #1e40af;
  color: white;
}

.btn-primary:hover {
  background-color: #1e3a8a;
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #374151;
  border: 0.1rem solid #d1d5db;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
}

.btn-danger {
  background-color: #dc2626;
  color: white;
}

.btn-danger:hover {
  background-color: #b91c1c;
}

.btn-outline {
  background-color: transparent;
  color: #374151;
  border: 0.1rem solid #d1d5db;
}

.btn-outline:hover {
  background-color: #f3f4f6;
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
}

/* Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
}

.admin-table thead {
  background-color: #f3f4f6;
}

.admin-table th {
  padding: 1.2rem 1.6rem;
  text-align: left;
  font-weight: 600;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.admin-table th a {
  color: inherit;
  text-decoration: none;
}

.admin-table th a:hover {
  color: #111827;
}

.admin-table td {
  padding: 1.2rem 1.6rem;
  border-top: 0.1rem solid #e5e7eb;
  font-size: 1.4rem;
}

.admin-table tbody tr:hover {
  background-color: #f9fafb;
}

.admin-table .actions,
.admin-table-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-published {
  background-color: #d1fae5;
  color: #065f46;
}

.status-draft {
  background-color: #fef3c7;
  color: #92400e;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 6rem 2rem;
  background: #f9fafb;
  border-radius: 0.8rem;
}

.empty-state p {
  font-size: 1.6rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

/* Forms */
.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
  color: #374151;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1.4rem;
  border: 0.1rem solid #d1d5db;
  border-radius: 0.4rem;
  font-family: inherit;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 0.3rem rgba(30, 64, 175, 0.1);
}

.form-text {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.2rem;
  color: #6b7280;
}

.form-actions {
  display: flex;
  gap: 1.2rem;
  margin-top: 3rem;
}

/* Error messages */
.error-explanation {
  background-color: #fee2e2;
  border: 0.1rem solid #f87171;
  border-radius: 0.4rem;
  padding: 1.6rem;
  margin-bottom: 2rem;
}

.error-explanation h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #991b1b;
  margin-bottom: 1rem;
}

.error-explanation ul {
  list-style: disc;
  padding-left: 2rem;
  color: #991b1b;
}

.error-explanation li {
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
}

/* Click Stats */
.click-stats-period-filter {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.click-stats-chart {
  background: white;
  border-radius: 0.8rem;
  padding: 2rem;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.click-stats-filters {
  background: white;
  border-radius: 0.8rem;
  padding: 2rem;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.click-stats-filters h3 {
  margin: 0 0 1.2rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.click-stats-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  gap: 0.8rem;
}

.click-stats-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  cursor: pointer;
}

.click-stats-checkbox input[type="checkbox"] {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
}

.click-stats-checkbox-all {
  grid-column: 1 / -1;
  font-weight: 600;
  padding-bottom: 0.6rem;
  border-bottom: 0.1rem solid #e5e7eb;
  margin-bottom: 0.4rem;
}

.click-stats-summary {
  margin-bottom: 2rem;
}

.click-stats-summary h3 {
  margin: 0 0 1.2rem;
  font-size: 1.6rem;
  font-weight: 600;
}
