/*
 * Minimal styles for Salon HQ
 */

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

/* Base */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
  padding: 20px;
}

/* Layout */
h1 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
  color: #2c3e50;
}

h2 {
  font-size: 1.4em;
  margin-bottom: 0.5em;
  color: #34495e;
}

p {
  margin-bottom: 1em;
}

/* Links */
a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin: 1em 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

tr:hover {
  background: #f8f9fa;
}

/* Forms */
div {
  margin-bottom: 1em;
}

label {
  display: block;
  margin-bottom: 0.3em;
  font-weight: 500;
  color: #495057;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
  width: 100%;
  max-width: 400px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Buttons */
input[type="submit"],
button {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

input[type="submit"]:hover,
button:hover {
  background: #2980b9;
}

button[type="submit"][value="Destroy"],
button:has(a[href*="destroy"]) {
  background: #e74c3c;
}

button[type="submit"][value="Destroy"]:hover,
button:has(a[href*="destroy"]):hover {
  background: #c0392b;
}

/* Flash messages */
p[style*="color: green"] {
  background: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #c3e6cb;
  margin-bottom: 1em;
}

/* Error messages */
div[style*="color: red"] {
  background: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #f5c6cb;
  margin-bottom: 1em;
}

/* Navigation */
.main-nav {
  background: #2c3e50;
  padding: 0 20px;
  margin: -20px -20px 20px -20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.nav-brand {
  font-weight: 600;
  font-size: 1.1em;
}

.nav-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.nav-tab {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 14px 20px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-tab:hover {
  color: white;
  text-decoration: none;
  border-bottom-color: rgba(255,255,255,0.3);
}

.nav-tab.active {
  color: white;
  border-bottom-color: #3498db;
}

.nav-logout-btn {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
}

.nav-logout-btn:hover {
  background: rgba(255,255,255,0.1) !important;
}

div > a,
p > a {
  display: inline-block;
  margin-right: 10px;
}
