/* Navigation Bar Styles */
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* make box-sizing predictable */
*, *::before, *::after { box-sizing: border-box; }

.nav-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1a73e8;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 1rem;
}

.nav-link {
  color: #5f6368;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: #f1f3f4;
  color: #1a73e8;
}

body {
  font-family: 'Google Sans', Arial, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Form Styles */
.auth-container {
  max-width: 400px;
  margin: 100px auto 0;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* make auth forms fluid on smaller screens */
@media (max-width: 480px) {
  .auth-container {
    width: 92%;
    margin: 70px auto 0;
    padding: 1rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #202124;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #dadce0;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: #1a73e8;
  outline: none;
}

.helper-text {
  font-size: 0.875rem;
  color: #5f6368;
  margin-top: 0.25rem;
}

.error-text {
  color: #d93025;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-button {
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.form-button:hover {
  background-color: #1557b0;
}

.id-field-group {
  display: flex;
  gap: 0.5rem;
}

.id-field-group .form-input {
  flex: 1;
}

.container {
  text-align: center;
  background-color: #fff;
  padding: 40px 60px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 420px;
  margin: 60px auto 0;
}

h1, h2 {
  color: #202124;
  font-weight: 400;
  margin-bottom: 25px;
}

h3 {
  color: #5f6368;
  margin-top: 30px;
}

.form-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

input[type="text"] {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #dadce0;
  border-radius: 6px;
  margin-right: 10px;
  outline: none;
  
}

input[type="text"]:focus {
  border: 2px solid #1a73e8;
}

button {
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

button:hover {
  background-color: #1669c1;
}

hr {
  margin: 30px 0;
  border: 0;
  height: 1px;
  background-color: #dadce0;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  padding: 6px 0;
  font-size: 16px;
  color: #202124;
}


/* Responsive rules for small screens */
@media (max-width: 800px) {
  .nav-container {
    flex-direction: row;
    gap: 8px;
  }

  .nav-menu {
    gap: 0.5rem;
  }

  .auth-container {
    margin: 80px 16px 0;
    padding: 1.25rem;
  }

  .card {
    width: 100% !important;
    padding: 18px;
  }

  .layout {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .ad-section {
    width: 100% !important;
    height: auto !important;
    padding: 12px;
  }

  .id-field-group { flex-direction: column; }
  .id-field-group .form-input { margin-right: 0; }
}

@media (max-width: 420px) {
  .nav-brand { font-size: 1.25rem; }
  .form-input { padding: 0.6rem; }
}


/* Vertical stacking only on mobile */
body.mobile-stack .wrap {
  flex-direction: column !important;
  align-items: stretch !important;
}

body.mobile-stack .room-content {
  flex-direction: column !important;
  width: 100% !important;
}

body.mobile-stack .left,
body.mobile-stack .right,
body.mobile-stack .story-points-sidebar {
  width: 100% !important;
  margin-bottom: 20px; /* space between cards */
}

body.mobile-stack .chat-container {
  height: min(40vh, 320px) !important; /* adjust chat height for mobile */
}

