/* =========================================================
   Technology Dashboard — Shared Styles
   ========================================================= */

/* --- Reset & Base ---------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Header ---------------------------------------------- */
.site-header {
  background-color: #003865;
  color: #ffffff;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  font-size: 1.4rem;
}

.site-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.header-actions {
  margin-left: auto;
}

/* --- Hero / Landing ------------------------------------- */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.hero-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 3rem 2.5rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
}

.hero-card--error {
  border-top: 4px solid #d32f2f;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-card h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #003865;
  margin-bottom: 1rem;
}

.hero-sub {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* --- Buttons -------------------------------------------- */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background-color: #0066cc;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #0052a3;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.35);
  text-decoration: none;
}

.btn-secondary {
  background-color: #e8edf2;
  color: #003865;
}

.btn-secondary:hover {
  background-color: #d0d9e3;
  text-decoration: none;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* --- Secured Page Layout -------------------------------- */
.page-wrapper {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #003865;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #555;
}

/* --- Cards / Panels ------------------------------------- */
.card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #003865;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e8edf2;
}

.card p {
  color: #555;
  line-height: 1.6;
}

/* --- Sign-out button ------------------------------------ */
#sign-out {
  display: none;
}

#sign-out.visible {
  display: inline-block;
}

/* --- Footer --------------------------------------------- */
.site-footer {
  background-color: #003865;
  color: #a0b4c8;
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.85rem;
}

/* --- Responsive ----------------------------------------- */
@media (max-width: 600px) {
  .hero-card {
    padding: 2rem 1.25rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
