.body,
body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: #151515;
  background: radial-gradient(circle at top left, #ffe7cc, #f5f1ea 45%),
    radial-gradient(circle at 10% 90%, #d9f4ef, transparent 55%);
  min-height: 100vh;
  padding-top: 160px;
}

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  padding: 20px 20px 32px;
  margin-top: 40px;
}

.login-page {
  text-align: center;
  background: #ffffff;
  padding: 28px 32px;
  border-radius: 18px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
  width: min(520px, 100%);
  margin-top: 8px;
}

#login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#login-form input,
#login-form button {
  width: 260px;
}

#login-form input {
  border: 1px solid #e1d8c9;
  background: #f8f4ed;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 1rem;
}

#login-form input:focus {
  outline: 2px solid #151515;
  outline-offset: 1px;
}

#login-form button {
  background: #151515;
  color: #f5f1ea;
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}

#login-form button:hover {
  opacity: 0.85;
}

.ticket{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 32px 20px 48px;
  gap: 24px;
  width: 100%;
  margin-top: 40px;
}

.ticket-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  padding: 24px 26px;
  border-radius: 18px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
}
.ticket-form input,
.ticket-form textarea,
.ticket-form select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.ticket-form button {
    padding: 10px;
  background-color: #151515;
    color: white;
    border: none;
  border-radius: 999px;
    cursor: pointer;
}

.ticket-form button:hover {
  opacity: 0.85;
}

.ticket-form input,
.ticket-form textarea,
.ticket-form select,
.ticket-form button {
  width: 100%;
}


.ticket-container{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1%;
    gap: 12px;
    height: 10vh;
  border: 1px solid #e3ddd1;
  background: #ffffff;
  border-radius: 14px;
    box-sizing: border-box;
}

.page-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 0;
  flex-wrap: wrap;
  position: fixed;
  top: 24px;
  right: 32px;
  z-index: 10;
}

.page-nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.admin-link {
  display: none;
}

.page-nav a:hover {
  text-decoration: underline;
}

.admin-page {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  padding: 28px 32px;
  border-radius: 18px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
  width: min(960px, 100%);
}

.admin-ticket-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.admin-ticket-card {
  border: 1px solid #e3ddd1;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  display: grid;
  gap: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.admin-ticket-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.admin-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 600;
}

.admin-ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-ticket-actions select,
.admin-ticket-actions textarea {
  border: 1px solid #e1d8c9;
  background: #f8f4ed;
  padding: 8px 10px;
  border-radius: 12px;
  font-family: inherit;
}

.admin-ticket-actions textarea {
  min-width: 240px;
  min-height: 48px;
  resize: vertical;
}

.admin-update-button {
  border: none;
  background: #151515;
  color: #f5f1ea;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.admin-update-button:hover {
  opacity: 0.85;
}

.logout-button {
  border: none;
  background: #151515;
  color: #f5f1ea;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.logout-button:hover {
  opacity: 0.85;
}

.dashboard-page {
  min-height: 100vh;
  padding: 48px clamp(20px, 5vw, 72px) 64px;
}

.dashboard-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  margin-top: 60px;
}

.hero-text h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin: 8px 0 12px;
}

.muted {
  color: #5f5f5f;
}

.hero-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  min-width: min(360px, 100%);
  display: grid;
  gap: 18px;
}

.profile-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}

.dashboard-content {
  display: grid;
  gap: 28px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.stat-card {
  background: #ffffff;
  padding: 20px 22px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.stat-card h3 {
  font-size: 1.9rem;
  margin: 8px 0 4px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.dashboard-grid-single {
  grid-template-columns: 1fr;
}

.panel {
  background: #ffffff;
  padding: 20px 22px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 16px;
}

.panel-header h2 {
  margin: 0 0 6px;
}

.data-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f6f4ef;
  border-radius: 12px;
  font-weight: 500;
}

@media (max-width: 720px) {
  .dashboard-page {
    padding: 32px 20px 40px;
  }

  .profile-details {
    grid-template-columns: 1fr;
  }
}