/* main.css – base styles for xxxAccountant internal portal */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f4f6f9;
  color: #2c3e50;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navbar ── */
.navbar {
  background: #1a252f;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  box-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.nav-brand {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: .9rem;
  transition: color .15s;
}
.nav-links a:hover { color: #fff; }

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  flex: 1;
}

/* ── Flash messages ── */
.flash-messages { margin-bottom: 1.5rem; }
.alert {
  padding: .75rem 1rem;
  border-radius: 4px;
  margin-bottom: .5rem;
  font-size: .9rem;
}
.alert-danger  { background: #fde8e8; color: #c0392b; border-left: 4px solid #c0392b; }
.alert-warning { background: #fef9e7; color: #e67e22; border-left: 4px solid #e67e22; }
.alert-info    { background: #eaf4fb; color: #2980b9; border-left: 4px solid #2980b9; }
.alert-success { background: #e9f7ef; color: #27ae60; border-left: 4px solid #27ae60; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .55rem 1.25rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  text-decoration: none;
  font-weight: 600;
  transition: background .15s, opacity .15s;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary   { background: #2980b9; color: #fff; }
.btn-primary:hover { background: #1f6391; }
.btn-secondary { background: #7f8c8d; color: #fff; }
.btn-secondary:hover { background: #626d6d; }
.btn-sm { padding: .3rem .75rem; font-size: .8rem; }
.btn-block { width: 100%; text-align: center; }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 5rem 1rem;
}
.hero h1 { font-size: 2rem; margin-bottom: 1rem; }
.hero .subtitle { color: #666; margin-bottom: 2rem; }

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.card {
  background: #fff;
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.card h3 { margin-bottom: .5rem; }
.card p  { color: #555; margin-bottom: 1rem; font-size: .9rem; }

/* ── Auth card ── */
.auth-card {
  background: #fff;
  border-radius: 6px;
  padding: 2rem;
  max-width: 400px;
  margin: 3rem auto;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.auth-card h2 { margin-bottom: 1.5rem; text-align: center; }

/* ── Forms ── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  margin-bottom: .35rem;
  font-weight: 600;
  font-size: .9rem;
}
.form-control {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid #ccd1d9;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color .15s;
}
.form-control:focus { outline: none; border-color: #2980b9; }
.field-error { color: #c0392b; font-size: .8rem; display: block; margin-top: .2rem; }

/* ── Tables ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  margin-top: 1rem;
}
.data-table th, .data-table td {
  padding: .75rem 1rem;
  text-align: left;
  font-size: .9rem;
  border-bottom: 1px solid #ecf0f1;
}
.data-table th { background: #2c3e50; color: #fff; font-weight: 600; }
.data-table tr:last-child td { border-bottom: none; }
.row-disabled td { color: #aaa; }

/* ── Misc ── */
.placeholder-notice {
  background: #fef9e7;
  border-left: 4px solid #f1c40f;
  padding: .75rem 1rem;
  border-radius: 0 4px 4px 0;
  color: #7d6608;
  margin-bottom: 1rem;
}
.muted { color: #aaa; font-size: .85rem; }

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 1.5rem;
  color: #95a5a6;
  font-size: .8rem;
  background: #ecf0f1;
  margin-top: auto;
}
