:root {
  --rouge: #7f1d1d;
  --rouge-dark: #450a0a;
  --navy: #0f172a;
  --navy-light: #1e293b;
  --text-main: #0f172a;
  --text-muted: #475569;
  --success: #15803d;
  --danger: #b91c1c;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --radius: 10px;
  --available: #15803d;
  --quiet: #b45309;
  --busy: #b91c1c;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 45%, #f1f5f9 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hidden {
  display: none !important;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--rouge);
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* Typography */
h2, h3 {
  color: var(--navy);
}

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

/* Forms */
input, textarea, select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--rouge);
  box-shadow: 0 0 0 3px rgba(127, 29, 29, 0.12);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  background: var(--rouge);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--rouge-dark);
}

.btn-secondary {
  background: #e2e8f0;
  color: var(--navy);
}

.btn-secondary:hover {
  background: #cbd5e1;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
}

.tab {
  flex: 1;
  padding: 0.6rem;
  text-align: center;
  background: #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.tab.active {
  background: var(--rouge);
  color: white;
}

/* Hero */
.hero-block {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: rgba(241, 245, 249, 0.92);
  border: 1px solid rgba(127, 29, 29, 0.15);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.hero-block-inner {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(90deg, rgba(255,255,255,0.93) 0%, rgba(255,255,255,0.8) 100%);
}

.hero-text h2 {
  margin: 0 0 0.3rem 0;
  font-size: 1.2rem;
  color: var(--rouge);
  font-weight: 700;
}

.hero-text p {
  margin: 0;
  color: #334155;
  font-size: 0.95rem;
}

/* Help button + panel */
.help-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rouge);
  color: white;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-toggle:hover {
  background: var(--rouge-dark);
}

.help-panel {
  display: none;
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: min(360px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  z-index: 99;
}

.help-panel.open {
  display: block;
}

.help-panel h3 {
  margin: 0 0 0.75rem 0;
  color: var(--rouge);
}

.help-panel ol {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.55;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Status dots (Commun’ani) */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-available { background: var(--available); }
.status-quiet { background: var(--quiet); }
.status-busy { background: var(--busy); }

/* Utility */
.form-group {
  margin-bottom: 0.9rem;
}

.label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}