.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--ae-radius);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--ae-primary);
  color: var(--ae-text-inverse);
}

.btn-primary:hover {
  background: var(--ae-primary-dark);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--ae-bg-elevated);
  color: var(--ae-text);
  border: 1.5px solid var(--ae-border);
}

.btn-secondary:hover {
  border-color: var(--ae-primary);
  color: var(--ae-primary);
}

.btn-outline {
  background: transparent;
  color: var(--ae-text-muted);
  border: 1.5px solid var(--ae-border);
}

.btn-outline:hover {
  border-color: var(--ae-primary);
  color: var(--ae-primary);
}

.btn-sm {
  width: auto;
  padding: 7px 14px;
  font-size: 13px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ae-text-muted);
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1.5px solid var(--ae-border);
  border-radius: var(--ae-radius);
  background: var(--ae-bg-elevated);
  color: var(--ae-text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input::placeholder {
  color: #64748b;
}

.form-group input:focus {
  border-color: var(--ae-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ae-text-muted);
  padding: 4px;
  display: flex;
}

.password-toggle:hover {
  color: var(--ae-primary);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ae-text-muted);
  font-size: 13px;
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--ae-primary);
}

.alert {
  padding: 12px 14px;
  border-radius: var(--ae-radius);
  font-size: 13px;
  line-height: 1.5;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert[hidden] {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand__logo-img {
  height: 88px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: #000000;
  padding: 8px 12px;
  border-radius: 10px;
}

.brand__logo-img--sm {
  height: 96px;
  max-width: 210px;
  padding: 4px 6px;
  border-radius: 8px;
}

.brand__name {
  font-size: 30px;
  font-weight: 700;
  color: var(--ae-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-card {
  background: var(--ae-card-bg);
  border-radius: var(--ae-radius);
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border-top: 3px solid var(--ae-primary);
}

.stat-card--success { border-top-color: var(--ae-success); }
.stat-card--danger { border-top-color: var(--ae-danger); }
.stat-card--warning { border-top-color: var(--ae-warning); }
.stat-card--purple { border-top-color: var(--ae-purple); }
.stat-card--muted { border-top-color: #94a3b8; }

.stat-card__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.stat-card__value {
  font-size: 26px;
  font-weight: 700;
  color: var(--ae-content-text);
}

.stat-card__icon {
  float: right;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.08);
  color: var(--ae-primary);
}

.progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-bar__fill {
  height: 100%;
  background: var(--ae-primary);
  border-radius: 3px;
  transition: width 0.3s;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.badge--online {
  background: #dcfce7;
  color: #16a34a;
}

.badge--offline {
  background: #fee2e2;
  color: #dc2626;
}

.card {
  background: var(--ae-card-bg);
  border-radius: var(--ae-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.card__header h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ae-content-text);
}

.card__body {
  padding: 16px 20px;
}

.empty-state {
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  padding: 32px 16px;
}
