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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #2c1810;
  background-color: #faf6f1;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 540px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #1a0e08;
}

.subtitle {
  font-size: 0.95rem;
  color: #6b4c3b;
  margin-bottom: 2rem;
}

/* Forms */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

input[type='email'],
input[type='text'] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #c9b9a8;
  border-radius: 4px;
  font-size: 1rem;
  background: #fff;
  color: #2c1810;
}

input[type='email']:focus,
input[type='text']:focus {
  outline: none;
  border-color: #8b5e3c;
  box-shadow: 0 0 0 2px rgba(139, 94, 60, 0.2);
}

.field {
  margin-bottom: 1.5rem;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

.radio-group input[type='radio'] {
  accent-color: #8b5e3c;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-label input[type='checkbox'] {
  accent-color: #8b5e3c;
}

/* Buttons */
button,
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn-primary {
  background-color: #8b5e3c;
  color: #fff;
}

.btn-primary:hover {
  background-color: #73482d;
}

.btn-primary:disabled {
  background-color: #c9b9a8;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: transparent;
  color: #8b5e3c;
  border: 1px solid #8b5e3c;
}

.btn-secondary:hover {
  background-color: rgba(139, 94, 60, 0.08);
}

.btn-danger {
  background-color: transparent;
  color: #a04030;
  border: 1px solid #a04030;
}

.btn-danger:hover {
  background-color: rgba(160, 64, 48, 0.08);
}

/* Messages */
.message {
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.message-success {
  background-color: #e8f5e4;
  color: #2d5a1e;
  border: 1px solid #b8dba8;
}

.message-error {
  background-color: #fde8e8;
  color: #8b2020;
  border: 1px solid #f0b8b8;
}

.message-info {
  background-color: #f0ebe4;
  color: #5a3e2b;
  border: 1px solid #d4c4b0;
}

/* Status */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-active {
  background-color: #e8f5e4;
  color: #2d5a1e;
}

.status-paused {
  background-color: #fff3cd;
  color: #664d03;
}

/* Utilities */
.hidden {
  display: none !important;
}

.loading {
  color: #6b4c3b;
  font-style: italic;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }

a {
  color: #8b5e3c;
}

a:hover {
  color: #73482d;
}

.divider {
  border: none;
  border-top: 1px solid #e0d5c8;
  margin: 2rem 0;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.actions button {
  width: 100%;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0d5c8;
  font-size: 0.95rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: #6b4c3b;
}
