
/* =====================================
   Technical Stage Services - style.css
   ===================================== */

:root {
  --color-teal: #17aeb5;
  --color-dark-blue: #004a6d;
  --color-grey: #4a4a49;
  --color-purple: #651d59;
  --color-light-grey: #ededed;
  --color-white: #ffffff;
  --font-primary: 'Open Sans', sans-serif;
  --font-heading: 'Oswald', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-primary);
  color: var(--color-grey);
  background-color: var(--color-light-grey);
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  width: 100%;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-dark-blue);
  margin-bottom: 20px;
}

/* ---------- Header ---------- */
.site-header {
  background-color: var(--color-grey);
  padding: 20px 30px;
  width: 100%;
}

.branding-fixed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.branding-fixed img.logo {
  max-height: 60px;
}

.nav-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.user-info {
  font-size: 0.9rem;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* ---------- Nav ---------- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.main-nav a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.main-nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-trigger {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #5c5c5c;
  min-width: 180px;
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  flex-direction: column;
}

.dropdown-content a {
  padding: 10px 15px;
  color: var(--color-white);
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: var(--color-teal);
}

.nav-dropdown:hover .dropdown-content,
.nav-dropdown:focus-within .dropdown-content {
  display: flex;
}

/* ---------- Buttons ---------- */
.btn, .card-button, .btn-purple {
  background-color: var(--color-teal);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  transition: background-color 0.3s ease;
}

.btn:hover,
.card-button:hover,
.btn-purple:hover {
  background-color: var(--color-dark-blue);
}

/* ---------- Tables ---------- */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.styled-table th, .styled-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

.styled-table th {
  background-color: var(--color-dark-blue);
  color: white;
}

.styled-table tr:nth-child(even) {
  background-color: var(--color-light-grey);
}

/* ---------- Forms ---------- */
.form-wrapper {
  background: var(--color-white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.styled-form label {
  display: block;
  margin-top: 20px;
  font-weight: bold;
}

.styled-form input,
.styled-form select,
.styled-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* ---------- Checkboxes ---------- */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: normal;
  line-height: 1.2;
  white-space: nowrap;
}

.checkbox-item input[type="checkbox"] {
  margin: 0;
  transform: scale(1.2);
}

/* ---------- Dashboard Cards ---------- */
.dashboard-container .dashboard-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 30px 0;
}

.dashboard-container .dashboard-card h2 {
  margin-top: 0;
  color: var(--color-dark-blue);
}

.dashboard-container .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.dashboard-container .card-link {
  text-decoration: none;
  flex: 1;
  min-width: 220px;
}

.dashboard-container .card {
  padding: 20px;
  background: #fff;
  border: 2px solid var(--color-teal);
  border-radius: 10px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.dashboard-container .card:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.dashboard-container .card h3 {
  margin-top: 0;
  color: var(--color-dark-blue);
  text-decoration: none;
}

.dashboard-container .card .value {
  font-size: 2em;
  color: var(--color-purple);
  margin-top: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .branding-fixed {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-wrapper {
    padding: 20px;
  }

  .styled-table th, .styled-table td {
    font-size: 0.85rem;
    padding: 8px;
  }

  .dashboard-container .card-grid {
    flex-direction: column;
  }
}
