/* Root variables based on the Great Clips palette */
:root {
  --bg:        #f2f2f2;       /* Photo Gray for page background */
  --card-bg:   #ffffff;       /* White cards and logo panel */
  --text:      #073b3a;       /* Dark Blue for text */
  --muted:     #6c757d;       /* Muted text */
  --primary:   #048667;       /* Jade */
  --primary-dark: #089f45;    /* Emerald (darker) */
  --accent:    #9acb3a;       /* Lime */
  --danger:    #cb4e13;       /* Orange for errors and cancellations */
}

/* Reset and base styles */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Sidebar navigation */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: var(--primary-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1rem 0.5rem;
}
.sidebar .logo {
  text-align: center;
  background: var(--card-bg);  /* light panel behind the logo */
  padding: 0.6rem 0;
  margin: 0 0 1rem 0;
  border-radius: 8px;
}
.sidebar .logo img {
  max-width: 160px;
  width: 80%;
  height: auto;
}
.sidebar .links {
  flex-grow: 1;
}
.sidebar .links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  margin: 0.1rem 0;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
  opacity: 0.85;
}
.sidebar .links a:hover,
.sidebar .links a.active {
  background: var(--primary);
  opacity: 1;
}
.sidebar .links a i {
  width: 1rem;
  text-align: center;
}
.sidebar #user-pill {
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  opacity: 0.8;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* Main content shifts right when sidebar is present */
main.container.with-sidebar {
  margin-left: 240px;
  padding: 1.5rem;
  max-width: calc(100% - 240px);
}
main.container {
  margin: 1.5rem auto;
  padding: 0 1rem;
  max-width: 1100px;
}

/* Page header with gradient */
.page-header {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 1.25rem 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.page-header h1 {
  margin: 0;
  font-weight: 600;
}
.page-header p {
  color: rgba(255, 255, 255, 0.85); /* improved contrast for tagline */
  margin-top: 0.25rem;
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid #e3e8ec;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Forms */
label { display:block; margin-top:0.8rem; font-weight:500; }
input, select, textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.25rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 0.12rem rgba(4,134,103,0.25);
}
.req { color: var(--danger); }

/* Buttons */
button {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 1rem;
}
button.primary {
  background: var(--accent);
  color: var(--text);
}
button.secondary {
  background: var(--muted);
  color: #fff;
}
button:hover.primary {
  background: var(--primary);
  color: #fff;
}
button:hover.secondary {
  background: #5a6268;
}

/* Grid utilities */
.grid {
  display: grid;
  gap: 1rem;
}
.grid.two {
  grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
}

/* Toolbar and tables */
.toolbar {
  display:flex;
  flex-wrap:wrap;
  gap:0.75rem;
  align-items:center;
}
.toolbar .spacer { flex-grow:1; }
.table { width:100%; border-collapse:collapse; }
.table th, .table td { padding:0.75rem; border-bottom:1px solid #e3e8ec; }
.table th { background:#f8f9fa; text-align:left; }
.table tr:hover td { background:#f1f3f5; }
.nowrap { white-space:nowrap; }
.muted { color: var(--muted); font-size:0.9rem; }

