.button-container {
    margin: 0.5em 0;
}

/* ─── Global Theme Variables ───────────────────────── */
:root {
  --primary-color: #007acc;
  --accent-color: #005fa3;
  --bg-light: #f4f6f8;
  --card-bg: #ffffff;
  --text-dark: #333333;
  --text-light: #666666;
  --border-light: #e2e5e8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ─── Header / Navigation ─────────────────────────── */
header {
  background: var(--card-bg);
  padding: 1rem 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1000;
}
header .logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}
header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
header nav ul li a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
}
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
}

/* ─── Mobile Nav ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  header nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
  }
  header nav ul { flex-direction: column; gap: 0; }
  header nav ul li { border-bottom: 1px solid var(--border-light); }
  header nav ul li:last-child { border-bottom: none; }
  header nav ul li a { display: block; padding: 0.75rem 1rem; }
  header nav.active { display: flex; }
}

/* ─── Containers / Cards / Buttons ─────────────────── */
.main-container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.section {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

button, .button {
  display: inline;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: var(--primary-color);
  text-decoration: none;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .3s;
  font-family: inherit;
}
/*
a.button {
  display: inline;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .3s;
  font-family: inherit;
}
*/

button:hover, .button:hover { background: var(--accent-color); }

/* ─── Forms ───────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}
label {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #555;
  font-weight: 600;
}
input, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfd6de;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0,122,204,0.18);
}

/* ─── Company Cards ───────────────────────────────── */
.company-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.company-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: transform .3s, box-shadow .3s;
}
.company-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}
.company-card h3 { margin-bottom: .5rem; font-size: 1.3rem; color: var(--primary-color); }
.company-card h3 a { text-decoration: none; color: var(--primary-color); }
.company-card p { font-size: .95rem; margin: .25rem 0; color: var(--text-light); }

/* ─── Tabs (Company View) ─────────────────────────── */
.tabs { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tab-button {
  background: #f0f4f8;
  border: 1px solid #cfd6de;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 600;
}
.tab-button.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── Footer ──────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-light);
  font-size: 0.85rem;
}

.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;       /* space between checkbox and text */
  white-space: nowrap; /* prevent line break between them */
}

.remember-label input[type="checkbox"] {
  margin: 0;          /* optional: kill any bottom margin */
  display: inline-block; /* just in case a global rule set it to block */
}

.alert-error {
}


.table {
    width: 100%;
}

.table-striped {
    cellspacing: 0px;
}

.table th {
    text-align: left;
}

.table-striped tr {
    background-color: #dddddd;
}

td.actions {
  display: flex;
  align-items: center;
  gap: 0.25rem; /* space between items */
  white-space: nowrap; /* optional, but keeps long text on one line */
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45); /* dark translucent */
  z-index: 900;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 910;
}

.modal[hidden],
.modal-backdrop[hidden] {
  display: none !important;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  width: 100%;
  max-width: 420px;
  padding: 24px 24px 20px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  font-size: 14px;
  color: #444;
}

.modal-description {
  margin-top: 0;
  margin-bottom: 16px;
  color: #555;
}

.modal-form .form-group {
  margin-bottom: 16px;
}

.modal-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-form input[type="text"],
.modal-form input[type="tel"],
.modal-form input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d0d7e2;
  font-size: 14px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

.modal-footer-note {
  margin-top: 12px;
  font-size: 12px;
  color: #666;
}

