:root {
  /* UTA Primary */
  --uta-blue:   #0064B1;
  --uta-orange: #F58025;

  /* A couple of accessible secondaries */
  --uta-gray-light: #BDD6E6;
  --uta-gray-dark:  #003865;
}

body {
  background: #f8f8f8;
  color: #212121;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main{
  flex:1;
}


.container {
  max-width: 1000px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
}

/* make sure when you unhide it, it's inline-block */
#adminPanelBtn {
  display: inline-block !important;
  margin-left: 5px;  /* add a little space from the previous button */
}

/* shared across pages */
.auth-controls input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.auth-controls button {
  padding: 10px 15px;
  background-color: var(--uta-blue);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.auth-controls button:hover {
  background-color: #004080; /* a darker blue */
}

/* Team paragragph start */
.justified {
  text-align: justify;
}
/* Team paragragph end */


#tree-container {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding: 10px;
  min-height: 600px;
}

/* style.css */

#tree-container svg {
  max-width: none;       /* allow it to exceed the container width */
  width: 1800px;         /* or whatever full width you want */
  height: 900px;         /* match a comfortable height */
}

/* Edit Child node css end*/

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  width: 400px;                /* a bit roomier */
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Header */
.modal-content h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--uta-blue);
  text-align: center;
}

/* Close icon */
.modal-content .close {
  font-size: 1.5rem;
  color: #555;
  cursor: pointer;
}
.modal-content .close:hover {
  color: #222;
}

/* Text inputs and textarea */
.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}

/* Button container: evenly space the edit buttons */
.modal-content > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

/* Edit-mode buttons */
.modal-content button.edit-btn {
  flex: 1 1 100px;            /* at least 100px wide */
  padding: 8px 12px;
  background-color: var(--uta-blue);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.modal-content button.edit-btn:hover {
  background-color: #004080;  /* darker UTA blue */
}
/* Edit Child node css end*/

footer {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: #555;
}

footer a {
  margin: 0 15px;
  text-decoration: none;
  color: inherit;
}

footer a:hover {
  text-decoration: underline;
}

#versionHistory {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.version-controls {
  text-align: center;
  margin-top: 10px;
}

.version-controls button {
  padding: 8px 12px;
  margin-left: 5px;
  background-color: #6c757d;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.version-controls button:hover {
  background-color: #5a6268;
}

#edit-access-request {
  text-align: center;
  margin-top: 15px;
  color: #e74c3c;
}

/* NAV */
.main-nav {
  background: var(--uta-blue);
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
}
.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* HERO */
.hero {
  background: var(--uta-gray-light);
  padding: 4rem 1rem;
  text-align: center;
}
.hero-content h1 {
  color: var(--uta-blue);
  margin-bottom: 1rem;
}
.hero-content p {
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}
.team-photo {
  max-width: 200px;
  border-radius: 8px;
}

/* for admin html*/
/* Admin auth styling — same as #auth-section */
#admin-auth {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#admin-auth input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

#admin-auth button {
  padding: 10px 15px;
  background-color: #004080;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#admin-auth button:hover {
  background-color: #004080;
}
/* end of admin html*/

/* Signup form: label on the left, input on the right */
#admin-auth .form-grid {
  display: grid;
  grid-template-columns: 180px minmax(240px, 1fr);
  gap: 12px 16px;           /* row gap | column gap */
  align-items: center;      /* vertically center label/input */
  width: 100%;
  max-width: 720px;         /* fits your card nicely */
}

#admin-auth .form-grid .full-row {
  grid-column: 1 / -1;      /* span both columns */
}

#admin-auth .form-grid input[type="email"],
#admin-auth .form-grid input[type="password"] {
  width: 100%;
  box-sizing: border-box;
}
