/* public/css/theme.css */
/* ===============================================
   THEME VARIABLES & BRANDING
   =============================================== */

/* CSS Variables */
:root {
  --primary-color: #3498db;
  --primary-color-dark: #073850;
  --primary-color-soft: #d9edf7;
  --secondary-color: #2ecc71;
  --accent-color: #e74c3c;
  --danger-color: #a94442;
  --warning-color: #8a6d3b;
  --success-color: #3c763d;
  --background-color: #f5f5f5;
  --surface-color: #ffffff;
  --surface-muted: #fafafa;
  --border-color: #ddd;
  --border-color-strong: #b8c2cc;
  --text-color: #333;
  --muted-text-color: #666;
  --focus-ring-color: rgba(52, 152, 219, 0.35);
  --radius-sm: 4px;
  --radius-md: 6px;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
}

/* Typography */
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Arial, sans-serif;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1rem; }

/* Enhanced Links */
a {
  color: var(--primary-color);
  text-decoration: none;
}
a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.site-nav-link.is-current {
  background: rgba(217, 237, 247, 0.14);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 0.35rem 0.55rem;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.site-nav-brand:hover,
.site-nav-link:hover,
.nav-link-button:hover {
  color: var(--primary-color-soft);
  opacity: 1;
}

.nav-logout-form {
  display: inline;
}

/* Button Overrides - final shared button layer */
button,
.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  background-color: var(--surface-color);
  border-color: var(--border-color-strong);
  color: var(--text-color);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
}

.btn:hover {
  background-color: #f2f2f2;
  opacity: 1;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--primary-color-dark);
  border-color: var(--primary-color-dark);
}
.btn-secondary {
  background-color: var(--surface-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.btn-secondary:hover {
  background-color: #f2f8fc;
}

.btn:disabled,
button:disabled,
.btn-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Form Inputs */
input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background-color: var(--surface-color);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-height: auto;
  margin-bottom: 0;
}

label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

input:focus,
select:focus,
textarea:focus,
button:focus,
.btn:focus,
a:focus {
  outline: none;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
.btn:focus-visible,
a:focus-visible,
.nav-link-button:focus-visible {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--focus-ring-color);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--surface-color);
}
th, td {
  border: 1px solid var(--border-color);
  padding: 0.65rem;
  text-align: left;
  vertical-align: top;
}
th {
  background-color: #f2f2f2;
  color: var(--text-color);
  font-weight: 700;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.message,
.alert,
.success-message,
.error-message {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}

.message,
.alert {
  background: #f7f7f7;
  color: var(--text-color);
}

.message.success,
.alert-success,
.success-message {
  background: #dff0d8;
  border-color: #c8e5bc;
  color: var(--success-color);
}

.message.error,
.alert-error,
.error-message {
  background: #f2dede;
  border-color: #ebcccc;
  color: var(--danger-color);
}

.message.info,
.alert-info {
  background: var(--primary-color-soft);
  border-color: #bce8f1;
  color: #31708f;
}

.empty-state {
  background: var(--surface-muted);
  border: 1px dashed #ccc;
  border-radius: var(--radius-md);
  color: var(--text-color);
  padding: 1rem;
}

.error-state {
  background: #f2dede;
  border-color: var(--danger-color);
  color: var(--danger-color);
}

.status-badge {
  background: #eee;
  color: var(--text-color);
}

.status-active {
  color: var(--success-color);
  font-weight: 700;
}

.status-inactive {
  color: var(--danger-color);
  font-weight: 700;
}

.muted-text,
.field-help {
  color: var(--muted-text-color);
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px 0;
}

/* Additional theme-specific styles */
/* (Include any additional branding or theme-specific rules here) */

/* ===============================================
   END THEME VARIABLES & BRANDING
   =============================================== */
