/* ===== Base layout ===== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;  /* match login page */
    color: #002b5c;             /* dark navy text */
}

header {
    background-color: #002b5c;  /* deep navy banner */
    color: white;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

main {
    width: clamp(300px, 85%, 1400px);
    margin: 2rem auto;
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


/* ===== Section styling ===== */
section {
    border-bottom: 1px solid #ddd;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

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

th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/* Subtables (lines, extensions, etc.) */
.lines-table,
.extension-table {
    background-color: #fafafa;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ===== Buttons & Links ===== */
button, .btn {
    display: inline-block;
    margin: 0.25rem;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

button:hover,
.btn:hover {
    background-color: #0056b3;
}

a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Footer (optional) ===== */
footer {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #555;
}

/* ===== Responsive layout ===== */
@media (max-width: 768px) {
    main {
        padding: 1rem;
        margin: 1rem;
    }
    table {
        font-size: 14px;
    }
}

/* ===== Additional Spacing for Lines Tables (the extensions list) ===== */

.lines-table {
    margin-bottom: 3rem; /* adds space below each lines table */
}
.phones-table {
    margin-bottom: 3rem; /* adds space below each  phones table */
}


.add-entry-form {
  margin-top: 20px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;

  width: 100%;          /* fills the full width of your content area */
  max-width: none;      /* remove constraint */
  box-sizing: border-box;
}

/* Grid layout for Add Entry form */

.add-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-top: 20px;
  align-items: center;
}

/* Make dropdown span full width */
.add-entry-grid select {
  grid-column: 1 / -1;
}

/* Make button span full width and left-align */
.add-entry-grid button {
  grid-column: 1 / -1;
  width: 200px;         /* or 100% if you prefer */
  justify-self: start;
}

/* Optional: right-align labels if you have labels */
.add-entry-grid label {
  text-align: right;
  padding-right: 5px;
}


/* === Global Arrow Button Styles === */
.arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem; /* Adjust arrow size globally */
  width: 2rem;
  height: 2rem;
  border: 1px solid #6c757d;
  border-radius: 6px;
  background-color: transparent;
  color: #000000;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.arrow-btn:hover {
  background-color: #007bff;
  color: #ffffff;
}

.arrow-btn:active {
  transform: scale(0.95);
}

/* Optional: Make small / large variants */
.arrow-btn.sm {
  font-size: 1rem;
  width: 1.5rem;
  height: 1.5rem;
}

.arrow-btn.long {
  font-size: 1rem;
  width: 4.0rem;
  height: 1.5rem;
}

.arrow-btn.lg {
  font-size: 1.75rem;
  width: 2.5rem;
  height: 2.5rem;
}



.hidden {
  display: none;
}

.line-tabs {
  margin-bottom: 8px;
}

.line-tab {
  padding: 6px 14px;
  cursor: pointer;
  border: none;
  background: #443275;
}

.line-tab.active {
  background: #a7a7aa;
  font-weight: bold;
}

.lines-table th,
.lines-table td {
  padding: 6px 8px;
  white-space: nowrap;
}
