* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #d9d9d9;
  color: #222;
}

.page {
  min-height: 100vh;
}

.topbar {
  background: #1f7a5c;
  color: white;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid #14523d;
}

.brand-title {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 1px;
}

.brand-subtitle {
  font-size: 14px;
  margin-top: 4px;
}

.user-box {
  font-size: 14px;
  background: rgba(255,255,255,0.15);
  padding: 8px 12px;
  border-radius: 4px;
}

.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.welcome-panel,
.start-panel,
.recent-panel {
  background: #f4f4f4;
  border: 1px solid #8c8c8c;
  padding: 20px;
  margin-bottom: 20px;
}

.welcome-panel h1,
.start-panel h2,
.recent-panel h2 {
  margin-top: 0;
  color: #14523d;
}

.survey-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.survey-table th,
.survey-table td {
  border: 1px solid #999;
  padding: 10px 12px;
  text-align: left;
}

.survey-table th {
  background: #d7efe5;
}

.form-row{
margin-bottom:12px;
display:flex;
flex-direction:column;
}

.form-row label{
font-weight:bold;
margin-bottom:4px;
}

input, select{
padding:8px;
font-size:14px;
border:1px solid #777;
}

button{
padding:10px 16px;
font-size:14px;
background:#1f7a5c;
color:white;
border:none;
cursor:pointer;
margin-right:8px;
}

button:hover{
background:#14523d;
}


/* =========================================================
   Start New Survey
========================================================= */

.start-panel {
  text-align: center;
}

.start-description {
  max-width: 680px;
  margin: 0 auto 24px;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

.start-survey-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  min-height: 58px;
  padding: 15px 30px;
  border: 2px solid #14523d;
  border-radius: 5px;
  background: #1f7a5c;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.start-survey-button:hover {
  background: #14523d;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(20, 82, 61, 0.2);
}

.start-survey-button:focus-visible {
  outline: 3px solid rgba(31, 122, 92, 0.35);
  outline-offset: 3px;
}

@media screen and (max-width: 640px) {
  .main-content {
    padding: 14px;
  }

  .start-survey-button {
    width: 100%;
    min-width: 0;
  }
}


/* =========================================================
   Clickable Recent Surveys
========================================================= */

.clickable-survey-row {
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.clickable-survey-row:hover {
  background: #eaf5f0;
}

.clickable-survey-row:focus {
  background: #eaf5f0;
  outline: none;
}

.clickable-survey-row:focus-visible {
  outline: 2px solid #1f7a5c;
  outline-offset: -2px;
}

.clickable-survey-row td:first-child {
  font-weight: 600;
}

.clickable-survey-row:hover td,
.clickable-survey-row:focus-visible td {
  color: #14523d;
}
