/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Courier New", Courier, monospace;
  background-color: rgb(39, 39, 39);
  color: white;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

/* Screen Management */
.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Loading Screen */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 20px;
}

.loading-container h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #333;
  border-top: 4px solid #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-container p {
  font-size: 1.2rem;
  color: #ccc;
}

/* Login Screen */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 20px;
}

.login-container h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.login-container p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ccc;
}

#loginForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

#usernameInput {
  padding: 12px 16px;
  font-size: 1.1rem;
  border: 2px solid #555;
  border-radius: 8px;
  background-color: #333;
  color: white;
  font-family: inherit;
}

#usernameInput:focus {
  outline: none;
  border-color: #fff;
}

#loginForm button {
  padding: 12px 24px;
  font-size: 1.1rem;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.3s;
}

#loginForm button:hover {
  background-color: #45a049;
}

/* Lounge Screen */
.lounge-header {
  background-color: rgb(56, 56, 56);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #444;
}

.lounge-header h1 {
  font-size: 2rem;
  color: #fff;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #444;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-btn {
  padding: 0.5rem 1rem;
  background-color: #2196F3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.nav-btn:hover {
  background-color: #1976D2;
}

#accountBtn {
  background-color: #4CAF50;
}

#accountBtn:hover {
  background-color: #45a049;
}

#leaderboardBtn {
  background-color: #FF9800;
}

#leaderboardBtn:hover {
  background-color: #F57C00;
}

#loadAccountBtn {
  background-color: #9C27B0;
}

#loadAccountBtn:hover {
  background-color: #7B1FA2;
}

.admin-btn {
  background-color: #9C27B0;
}

.admin-btn:hover {
  background-color: #7B1FA2;
}

.sound-btn {
  background-color: #607D8B;
  font-size: 1.2rem;
  padding: 0.5rem 0.75rem;
}

.sound-btn:hover {
  background-color: #455A64;
}

#currentPlayer {
  font-weight: bold;
  color: #4CAF50;
}

#currentPoints {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  color: #000;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
  border: 2px solid #FFA500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.5);
  }
  100% {
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
  }
}

#logoutBtn {
  padding: 0.5rem 1rem;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}

#logoutBtn:hover {
  background-color: #d32f2f;
}

.lounge-content {
  display: flex;
  flex: 1;
  gap: 1rem;
  padding: 1rem;
  height: calc(100vh - 80px);
}

/* Panel Styles */
.left-panel,
.center-panel,
.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-section {
  background-color: rgb(56, 56, 56);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #444;
}

.panel-section h3 {
  margin-bottom: 1rem;
  color: #fff;
  border-bottom: 1px solid #555;
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.2);
  color: #4CAF50;
  font-weight: bold;
  font-size: 0.9rem;
  min-width: 2.5rem;
  height: 1.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  border: 1px solid #444;
}

.player-count-badge.error {
  background-color: rgba(0, 0, 0, 0.2);
  color: #f44336;
  border-color: #f44336;
}

.list-container {
  max-height: 300px;
  overflow-y: auto;
}

/* Match Creation Form */
#createMatchForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wager-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wager-input label {
  font-weight: bold;
  color: #ccc;
}

#wagerInput {
  padding: 0.5rem;
  background-color: #333;
  color: white;
  border: 1px solid #555;
  border-radius: 4px;
  font-family: inherit;
}

.custom-wager-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  border: 1px solid #555;
}

.custom-wager-input label {
  font-weight: bold;
  color: #ccc;
}

#customWagerInput {
  padding: 0.5rem;
  background-color: #333;
  color: white;
  border: 1px solid #555;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

#customWagerInput:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

#customWagerInput::placeholder {
  color: #888;
}

#createMatchForm button {
  padding: 0.75rem;
  background-color: #2196F3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
}

#createMatchForm button:hover {
  background-color: #1976D2;
}

/* List Items */
.list-item {
  background-color: #333;
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  border-radius: 4px;
  border-left: 3px solid #555;
  transition: all 0.3s;
}

.list-item:hover {
  background-color: #444;
  border-left-color: #4CAF50;
}

.list-item.match-item {
  border-left-color: #2196F3;
}

.list-item.match-item:hover {
  border-left-color: #1976D2;
}

.list-item.active-match {
  border-left-color: #FF9800;
}

.list-item.active-match:hover {
  border-left-color: #F57C00;
}

.player-name {
  font-weight: bold;
  color: #4CAF50;
}

.player-points {
  color: #FFD700;
  font-weight: bold;
}

.player-stats {
  color: #4CAF50;
  font-weight: bold;
  font-size: 0.9rem;
}

.match-creator {
  font-weight: bold;
  color: #2196F3;
}

.match-wager {
  color: #FFD700;
  font-weight: bold;
}

.match-status {
  font-style: italic;
  color: #ccc;
}

.match-status.waiting {
  color: #4CAF50;
}

.match-status.in_progress {
  color: #FF9800;
}

.match-status.completed {
  color: #9E9E9E;
}

.leaderboard-rank {
  color: #FFD700;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Buttons */
.action-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  transition: background-color 0.3s;
}

.join-btn {
  background-color: #4CAF50;
  color: white;
}

.join-btn:hover {
  background-color: #45a049;
}

.spectate-btn {
  background-color: #FF9800;
  color: white;
}

.spectate-btn:hover {
  background-color: #E65100;
}

.delete-btn {
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.delete-btn:hover {
  background-color: #d32f2f;
}

.rejoin-btn {
  background-color: #2196F3;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.rejoin-btn:hover {
  background-color: #1976D2;
}

/* Game Screen */
.game-header {
  background-color: rgb(56, 56, 56);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #444;
}

.match-info {
  display: flex;
  gap: 2rem;
  font-weight: bold;
}

#matchWager {
  color: #FFD700;
}

#matchPlayers {
  color: #4CAF50;
}

#returnToLoungeBtn {
  padding: 0.5rem 1rem;
  background-color: #2196F3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}

#returnToLoungeBtn:hover {
  background-color: #1976D2;
}

#gameContainer {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(39, 39, 39);
}

/* Error Messages */
.error-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #f44336;
  color: white;
  padding: 1rem;
  border-radius: 4px;
  max-width: 300px;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .lounge-content {
    flex-direction: column;
    height: auto;
  }
  
  .left-panel,
  .center-panel,
  .right-panel {
    flex: none;
  }
}

@media screen and (max-width: 768px) {
  .lounge-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .player-info {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .game-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .match-info {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Scrollbar Styling */
.list-container::-webkit-scrollbar {
  width: 8px;
}

.list-container::-webkit-scrollbar-track {
  background: #333;
  border-radius: 4px;
}

.list-container::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.list-container::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* Game Result Banner */
.game-result-banner {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  position: relative;
  animation: slideDown 0.5s ease-out;
  border-bottom: 2px solid #45a049;
}

.game-result-banner.lost {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  border-bottom-color: #d32f2f;
}

.game-result-banner.draw {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  border-bottom-color: #F57C00;
}

.result-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

#resultText {
  font-size: 1.2rem;
  font-weight: bold;
}

#resultScore {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
}

#resultPoints {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
}

#closeResultBtn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

#closeResultBtn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.points-display {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 15px;
}

.points-label {
  font-weight: bold;
  color: #4CAF50;
}

/* Sound Prompt */
.sound-prompt {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  border: 2px solid #4CAF50;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: slideInRight 0.5s ease-out;
  max-width: 300px;
}

.sound-prompt-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sound-prompt-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  animation: pulse 2s infinite;
}

.sound-prompt-text h3 {
  color: #4CAF50;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.sound-prompt-text p {
  color: #ccc;
  margin-bottom: 15px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.sound-prompt-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
}

.enable-sound-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s ease;
  flex: 1;
}

.enable-sound-btn:hover {
  background: #45a049;
  transform: translateY(-1px);
}

.dismiss-sound-btn {
  background: transparent;
  color: #ccc;
  border: 1px solid #555;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  flex: 1;
}

.dismiss-sound-btn:hover {
  background: #555;
  color: white;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Sound Indicator Styles */


.refresh-btn {
  background: none;
  border: none;
  color: #4CAF50;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.refresh-btn:hover {
  background-color: rgba(76, 175, 80, 0.2);
  transform: rotate(180deg);
}

.refresh-btn:active {
  transform: rotate(360deg);
}

/* Auth Container */
.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
  text-align: center;
  padding: 2rem;
}

.auth-container h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 400px;
  margin-bottom: 1rem;
}

.auth-form h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.auth-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form input {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.auth-form input:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.auth-form button {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.auth-form button:hover {
  background: linear-gradient(135deg, #45a049, #4CAF50);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.auth-switch {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.auth-switch a {
  color: #4CAF50;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.auth-switch a:hover {
  color: #4CAF50;
  text-decoration: underline;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background-color: #2a2a2a;
  border: 2px solid #4CAF50;
  border-radius: 12px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  animation: slideIn 0.3s ease-out;
}

.modal-header {
  background-color: #4CAF50;
  color: white;
  padding: 20px;
  border-radius: 10px 10px 0 0;
  text-align: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.modal-body {
  padding: 30px 20px;
  text-align: center;
}

.modal-body p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.match-info-display {
  background-color: #333;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-info-display span {
  font-size: 1rem;
  color: #ccc;
}

.modal-footer {
  padding: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
  border-top: 1px solid #444;
}

.btn-primary {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #45a049;
}

.btn-secondary {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: #d32f2f;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Chat Styles */
.chat-container {
  background-color: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  height: 400px;
  overflow: hidden;
}

.chat-header {
  background-color: #333;
  padding: 10px 15px;
  border-bottom: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}

.chat-toggle-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-toggle-btn:hover {
  color: #fff;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #333;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #888;
}

.chat-message {
  background-color: #3a3a3a;
  border-radius: 8px;
  padding: 8px 12px;
  max-width: 100%;
  word-wrap: break-word;
}

.chat-message.system {
  background-color: #2d4a2d;
  border-left: 3px solid #4CAF50;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.message-username {
  font-weight: bold;
  color: #4CAF50;
}

.message-username.own-message {
  color: #2196F3;
}

.message-time {
  color: #888;
  font-size: 0.7rem;
}

.message-content {
  color: #fff;
  line-height: 1.4;
}

.chat-input-container {
  padding: 10px;
  border-top: 1px solid #444;
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #555;
  border-radius: 4px;
  background-color: #333;
  color: #fff;
  font-size: 0.9rem;
}

.chat-input:focus {
  outline: none;
  border-color: #4CAF50;
}

.chat-input::placeholder {
  color: #888;
}

.chat-send-btn {
  padding: 8px 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
}

.chat-send-btn:hover {
  background-color: #45a049;
}

.chat-send-btn:active {
  background-color: #3d8b40;
}

.chat-error {
  background-color: #4a2d2d;
  border-left: 3px solid #f44336;
  color: #ffcdd2;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 4px 0;
  font-size: 0.8rem;
}

.chat-container.collapsed .chat-messages,
.chat-container.collapsed .chat-input-container {
  display: none;
}

.chat-container.collapsed {
  height: auto;
}

/* Mobile responsiveness for chat */
@media screen and (max-width: 768px) {
  .chat-container {
    height: 300px;
    margin-top: 10px;
  }
  
  .chat-header {
    padding: 8px 12px;
  }
  
  .chat-messages {
    padding: 8px;
  }
  
  .chat-input-container {
    padding: 8px;
  }
} 