/* Login Screen Styles */
.login-section {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: row !important; /* Explicitly set to row, not column */
  align-items: flex-start !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%) !important;
  box-sizing: border-box !important;
  z-index: 1000 !important;
}

/* Allow JavaScript to hide the login section */
.login-section[style*="display: none"] {
  display: none !important;
}

.login-section .login-card {
  margin: 20px;
}

/* Override body styles for login */
body:has(.login-section) {
  padding-top: 0 !important;
  overflow: hidden;
}

.conatiner:has(.login-section) {
  padding: 0 !important;
  margin: 0 !important;
}

.login-card {
  background: #2a2f36;
  border-radius: 16px;
  padding: 32px 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid #3a3f44;
  position: relative;
  margin: 0 auto;
}

.logo-placeholder {
  text-align: center;
  margin-bottom: 48px;
}

.app-logo {
  max-width: 170px; /* Reduced by 15% from 200px */
  max-height: 85px; /* Reduced by 15% from 100px */
  width: auto;
  height: auto;
  margin: 0 auto;
  display: block;
}

.login-form {
  text-align: center;
}

.login-title {
  font-size: 24px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 32px 0;
}

.login-subtitle {
  font-size: 16px;
  color: #a3abb2;
  margin: 0 0 32px 0;
  line-height: 1.4;
}

.input-group {
  margin-bottom: 24px;
}

.login-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  background: #ffffff;
  border: 2px solid #3a3f44;
  border-radius: 12px;
  color: #000000;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.login-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.login-input::placeholder {
  color: #666666;
}

.login-button {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.login-button:active {
  transform: translateY(0);
}

.signup-button {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  background: transparent;
  color: #007bff;
  border: 2px solid #007bff;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 12px;
}

.signup-button:hover {
  background: #007bff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.signup-button:active {
  transform: translateY(0);
}

.otp-instruction {
  font-size: 16px;
  color: #a3abb2;
  margin: 0 0 24px 0;
  line-height: 1.4;
}

.otp-container {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.otp-digit {
  width: 48px;
  height: 56px;
  padding: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  background: #2c3135;
  border: 2px solid #3a3f44;
  border-radius: 12px;
  color: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.otp-digit:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}


.back-button {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  background: transparent;
  color: #007bff;
  border: 2px solid #007bff;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
}

.back-button:hover {
  background: #007bff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.back-button:active {
  transform: translateY(0);
}

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

/* Game Ended Section Styles */
.game-ended-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
  background: #2a2f36;
  border-radius: 16px;
  margin-top: 20px;
  margin-bottom: 100px; /* Space for navbar */
}

.game-ended-header {
  text-align: center;
  margin-bottom: 32px;
}

.game-ended-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.game-ended-subtitle {
  font-size: 16px;
  color: #a3abb2;
  margin: 0;
}

.scores-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  padding: 24px 24px 16px 24px;
  background: #1e2328;
  border-radius: 12px;
  border: 1px solid #3a3f44;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.score-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 140px;
}

.score-label {
  font-size: 14px;
  font-weight: 600;
  color: #a3abb2;
  margin-bottom: 12px;
  text-align: center;
  white-space: nowrap;
}

.score-input {
  width: 100%;
  padding: 16px 12px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  background: #ffffff;
  border: 2px solid #3a3f44;
  border-radius: 8px;
  color: #000000;
  transition: all 0.3s ease;
  height: 56px;
  box-sizing: border-box;
}

.score-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.score-vs {
  font-size: 18px;
  font-weight: 600;
  color: #a3abb2;
  margin: 0;
  flex-shrink: 0;
  align-self: center;
  margin-bottom: 28px; /* Align with center of input fields */
}

.game-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
  width: 100%;
}

.save-score-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.save-score-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.save-score-btn:active {
  transform: translateY(0);
}

.save-score-btn:disabled {
  background: #374151;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.share-score-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  background: transparent;
  color: #007bff;
  border: 2px solid #007bff;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.share-score-btn:hover {
  background: #007bff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.share-score-btn:active {
  transform: translateY(0);
}

.confirmation-message {
  min-height: 32px;
  padding: 8px 16px;
  margin: 0 24px 16px 24px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  top: -16px; /* Move up to fit in the score container */
}

.confirmation-message.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.confirmation-message.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.recent-games-section {
  margin-top: 32px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 16px 0;
  text-align: center;
}

/* Create New Game Section Styles */
.new-game-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
  background: #2a2f36;
  border-radius: 16px;
  margin-top: 20px;
  margin-bottom: 100px; /* Space for navbar */
}

.new-game-header {
  text-align: center;
  margin-bottom: 32px;
}

.new-game-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.new-game-subtitle {
  font-size: 16px;
  color: #a3abb2;
  margin: 0;
}

.opponent-selection {
  margin-bottom: 32px;
}

.selection-group {
  margin-bottom: 20px;
}

.add-opponent-section {
  margin-bottom: 24px;
}

.selection-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #a3abb2;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.opponent-dropdown {
  width: 100% !important;
  height: 48px !important;
  padding: 12px 40px 12px 16px !important;
  margin: 0 !important;
  font-size: 16px !important;
  font-family: inherit !important;
  background-color: #2a2f36 !important;
  border: 2px solid #3a3f44 !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3abb2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 16px !important;
  box-sizing: border-box !important;
}

.opponent-dropdown:focus {
  outline: none !important;
  border-color: #007bff !important;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1) !important;
}

.opponent-dropdown:hover {
  border-color: #4a5058 !important;
}

.opponent-dropdown option {
  background-color: #2a2f36 !important;
  color: #ffffff !important;
  padding: 12px !important;
}

.new-opponent-input {
  width: 100%;
  height: 56px;
  padding: 16px;
  font-size: 16px;
  background: #2c3135;
  border: 2px solid #3a3f44;
  border-radius: 12px;
  color: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.new-opponent-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.new-opponent-input::placeholder {
  color: #a3abb2;
}

.game-start-actions {
  text-align: center;
}

.start-tracking-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.start-tracking-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.start-tracking-btn:active {
  transform: translateY(0);
}

.start-tracking-btn:disabled {
  background: #374151;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Add New Opponent Button Styles */
.add-opponent-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: #007bff;
  border: 2px dashed #007bff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.add-opponent-btn:hover {
  background: rgba(0, 123, 255, 0.05);
  border-style: solid;
  transform: translateY(-1px);
}

.add-opponent-btn:active {
  transform: translateY(0);
}

.add-opponent-btn i {
  font-size: 12px;
}

/* New Opponent Input Group */
.new-opponent-group {
  margin-top: 16px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.new-opponent-group.show {
  opacity: 1;
  max-height: 100px;
}

.new-opponent-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px;
  background: transparent;
  border-radius: 8px;
  border: none;
}

.new-opponent-input {
  flex: 1;
  height: 40px;
  padding: 16px 20px;
  font-size: 16px;
  background: #2c3135;
  border: 2px solid #3a3f44;
  border-radius: 12px;
  color: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.new-opponent-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.new-opponent-input::placeholder {
  color: #a3abb2;
}

.new-opponent-actions {
  display: flex;
  gap: 4px;
}

.cancel-opponent-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s ease;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.cancel-opponent-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.05);
}

.cancel-opponent-btn:active {
  transform: scale(0.95);
}

.login-confirmation {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  color: #22c55e;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .login-section {
    padding: 16px !important; /* Reduce padding for mobile */
  }
  
  .login-card {
    padding: 24px 20px;
    margin: 0;
    max-width: 100%;
  }
  
  .logo-placeholder {
    margin-bottom: 32px; /* Reduce spacing on mobile */
  }
  
  .app-logo {
    max-width: 140px; /* Smaller logo on mobile */
    max-height: 70px;
  }
  
  .login-title {
    font-size: 20px;
  }
  
  /* Adjust module container widths for mobile to show rounded corners */
  .game-ended-container,
  .new-game-container {
    margin: 20px 16px 100px 16px; /* Add horizontal margins to show rounded corners */
    max-width: calc(100% - 32px); /* Ensure container fits within margins */
  }
  
  .stats-container {
    margin: 0 16px; /* Add horizontal margins for stats container */
    max-width: calc(100% - 32px);
  }
}

/* Navigation Bar Styles */
.navbar-container {
  display: flex;
  gap: 8px;
  border-top: 1px solid #3a3f44;
  background-color: #2a2f36;
  padding: 8px 16px 12px 16px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.navbar-spacer {
  height: 20px;
  background-color: #2a2f36;
  position: fixed;
  bottom: -5px;
  left: 0;
  right: 0;
}

/* Ensure content doesn't get hidden behind fixed navigation */
#playerSelectionContainer {
  min-height: 100vh;
  overflow-y: auto; /* Allow vertical scrolling when needed */
  box-sizing: border-box;
  padding-top: 10px; /* Match body padding */
  margin-top: -10px; /* Offset body padding */
}

#gameCreationSection,
#endOfGameState,
#playerStatsPage {
  padding-bottom: 70px; /* Space for navigation bar */
  padding-top: 20px; /* Add top padding to move content to top */
  box-sizing: border-box;
  background-color: #111827 !important; /* Match consistent app background */
  min-height: 100vh !important;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center horizontally */
  justify-content: flex-start; /* Align to top instead of center */
}

/* Specific override for player stats page */
#playerStatsPage {
  background-color: #111827 !important; /* Match consistent app background */
  min-height: 100vh !important;
  width: 100% !important;
  position: relative !important;
}

/* Fix specific container within player selection */
#playerSelectionContainer .container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 2rem 80px 2rem; /* Reduced bottom padding since player grid handles spacing */
  text-align: center;
  min-height: calc(100vh - 20px); /* Use min-height instead of fixed height */
  box-sizing: border-box;
  overflow-y: auto; /* Allow scrolling only within container if needed */
}

/* Ensure body doesn't cause scrolling issues */
body {
  overflow-x: hidden !important; /* Prevent horizontal scrolling */
  overflow-y: auto !important; /* Allow vertical scrolling when needed */
}

.navbar-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px 8px;
}

.navbar-link.active {
  color: #ffffff;
}

.navbar-link:not(.active) {
  color: #a3abb2;
}

.navbar-icon {
  display: flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.navbar-text {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.015em;
  transition: all 0.3s ease;
  margin: 0;
}

/* Navigation Bar Hover States */
.navbar-link:hover .navbar-icon {
  color: #ffffff !important;
  transform: scale(1.1);
}

.navbar-link:hover .navbar-text {
  color: #ffffff !important;
}

/* Season Stats Page Styling */
.stats-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  background: transparent !important; /* Let parent background show through */
  min-height: calc(100vh - 70px);
  box-sizing: border-box;
}

.stats-title {
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2rem;
  text-align: center;
}

.dropdown-controls {
  display: flex !important;
  gap: 2rem !important;
  justify-content: center !important;
  align-items: flex-start !important;
  margin-bottom: 2rem !important;
  flex-wrap: wrap !important;
}

.dropdown-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 250px !important; /* Fixed width for consistency */
  text-align: left !important;
}

.dropdown-label {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #a3abb2 !important;
  margin-bottom: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  align-self: flex-start !important;
  width: 100% !important;
}

.stats-dropdown {
  width: 100% !important;
  height: 48px !important; /* Fixed height for consistency */
  padding: 12px 40px 12px 16px !important; /* Consistent padding */
  margin: 0 !important; /* Override any default margins */
  font-size: 16px !important;
  font-family: inherit !important;
  background-color: #2a2f36 !important; /* Match navbar background */
  border: 2px solid #3a3f44 !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
  background-position: right 12px center !important;
  background-repeat: no-repeat !important;
  background-size: 16px !important;
  box-sizing: border-box !important;
  vertical-align: top !important;
  display: block !important;
}

.stats-dropdown:focus {
  outline: none !important;
  border-color: #007bff !important;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1) !important;
}

.stats-dropdown:hover {
  border-color: #4a5058 !important;
}

.section-header {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 2rem 0 1rem 0;
  text-align: center;
}

/* Responsive design for dropdowns */
@media (max-width: 600px) {
  .dropdown-controls {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .dropdown-group {
    width: 100%;
    max-width: 320px; /* Slightly wider on mobile */
  }
  
  .stats-dropdown {
    height: 48px; /* Maintain consistent height on mobile */
  }
  
  .stats-container {
    padding: 1rem;
    margin: 0 16px; /* Add horizontal margins for stats container */
    max-width: calc(100% - 32px);
  }
  
  .stats-title {
    font-size: 24px;
  }
  
  /* Adjust module container widths for mobile to show rounded corners */
  .game-ended-container,
  .new-game-container {
    margin: 20px 16px 100px 16px; /* Add horizontal margins to show rounded corners */
    max-width: calc(100% - 32px); /* Ensure container fits within margins */
  }
}

/* Base styles for mobile-first approach */
body, html {
    margin: 0;
    padding-top: 10px;
    width: 100%;
    font-family: 'Arial', sans-serif;
    font-size: 16px; /* Default font size for mobile */
    line-height: 1.5; /* Improve readability */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    background-color: #111827; /* Match playerSelectionContainer background */
    color: #e0e0e0; /* Lighter text color for dark mode */
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

h3 {
    margin-top: 10px;
}

input[type="text"], textarea, button {
    width: 90%; /* Allow for padding within the container */
    margin: 10px auto; /* Center elements and provide spacing */
    display: block; /* Stack elements vertically */
    padding: 12px 10px; /* Adequate padding for touch targets */
    box-sizing: border-box; /* Include padding and border in width/height */
    background-color: #333; /* Darker elements for dark mode */
    border: 1px solid #444; /* Subtle border for inputs in dark mode */
    color: #fff; /* Text color for inputs */
    border-radius: 4px; /* Rounded corners */
}

button {
    background-color: #007bff; /* Button color, can adjust for dark mode if needed */
    cursor: pointer;
}

#shareGameButton i {
    font-size: 20px;
}

#PlayerStatsPageContent {
    padding-top: 40px;
    background-color: #111827; /* Match consistent app background */
}

.secondary {
    background-color: transparent;
    border: 2px solid #007bff;
}

.buttonContainer {
    display: flex;
    justify-content: center; /* Center buttons in the container */
    align-items: center; /* Align buttons vertically */
    height: 90px;
    /*margin: 0 50px;*/
    width: auto;
}

.bottomButtonContainer {
    display: flex;
    justify-content: center; /* Center buttons in the container */
    align-items: center; /* Align buttons vertically */
    height: 90px;
    /*margin: 0 50px;*/
    width: auto;
}

.buttonGroup {
    display: flex;
    flex-direction: column; /* Stacks buttons vertically */
    align-items: center; /* Centers buttons horizontally */
    /*margin: 10px;  Adds space around each button group */
}

#headerContainer {
    position: fixed;  /* Fixed positioning relative to the viewport */
    top: 0;           /* Align the top of the container with the top of the viewport */
    left: 0;          /* Align the left side of the container with the left side of the viewport */
    width: 100%;      /* Ensure the container spans the full width */
    height: 60px;
    background-color: #101010; /* Set a background color; change as necessary */
    z-index: 1000;    /* Ensure the container is above other content */
    padding: 10px 0;  /* Add some padding inside the container at the top and bottom */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional: adds shadow for better separation */
    display: flex;    /* Using flexbox to center the button horizontally */
    justify-content: center; /* Center the button within the container */
}

#startNewGameButtonPS {
    position: fixed;  /* Fixed positioning relative to the viewport */
    top: 0;           /* Align the top of the button with the top of the viewport */
    left: 50%;        /* Center the button horizontally */
    transform: translateX(-50%); /* Adjust the position to truly center it because 'left' aligns the left edge to the center */
    z-index: 1000;    /* Ensure the button is above other content */
    width: 90%;       /* Adjust the width as needed, or use max-width for larger screens */
    margin-top: 20px; /* Optional: adds some space at the top */
}

.win {
    color: green;
}

.loss {
    color: red;
}

.decrement {
    cursor: pointer;
    user-select: none;
    color: #007bff; /* Icon color */
}

/* Button general styles for circular appearance */
.madeButton, .missedButton, .statButton {
    width: 85px; /* Fixed size for circular shape */
    height: 85px; /* Equal width and height make it circular */
    border-radius: 50%; /* Circular border */
    margin: 10px; /* Space between buttons */
    display: inline-block; /* Place buttons side by side */
    font-size: 14px; /* Adjust font size as needed */
    text-align: center;
    line-height: 1.25; /* Center text vertically */
    color: #fff; /* Text color */
    border-width: 2px; /* Remove border */
    cursor: pointer;
    background: none;
}

/* Button general styles for circular appearance */
.madeButton, .missedButton {
    margin: 30px; /* Space between buttons */
}

/* Specific styles for 'made' and 'missed' to differentiate them */
.madeButton {
    /*background-color: #4CAF50; /* Green for 'made' */
    border-color: #4CAF50;
}

.missedButton {
    /* background-color: #f44336; /* Red for 'missed' */
    border-color: #f44336
}

.flex-container {
    display: flex;
    justify-content: center; /* Horizontally center the table */
    align-items: center; /* Vertically center the table, if needed */
}

/* Adjust layout for larger screens if needed */
@media (min-width: 600px) {
    .madeButton, .missedButton {
        width: 120px; /* Slightly larger buttons on bigger screens */
        height: 120px;
        line-height: 1.25;
        font-size: 16px;
    }
}


button:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

p {
    margin: 0 5%;
    padding: 0 5%;
}

/* Close button or other styles as needed */


#totalStatsContainer {
    display: flex;
    justify-content: space-around; /* Evenly space the individual stat containers */
    align-items: center; /* Vertically center the content in the container */
    background-color: #222222; /* Dark background color for contrast */
    color: #fff; /* Light text color for readability */
    border-bottom: 1px solid #000000; /* Subtle border for inputs in dark mode */
    font-size: 13px;
    height: 175px; /* Set the height as specified */
    box-sizing: border-box; /* Ensure padding is included in the height calculation */
    position: fixed;
    top: 0; /* Adjust if necessary, e.g., if you have a header */
    left: 0; /* Aligns the container to the left edge of the viewport */
    width: 100%; /* Ensures the container spans the full width of the viewport */
    z-index: 1000; /* Ensures it stays on top of other content */
}

.stat {
    display: inline-block; /* Continue using flexbox */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center-align items horizontally within the container */
    text-align: center; /* Ensure text within each child is also centered */
    margin: 10px 0; /* Optional: Add some vertical spacing between each stat */
    font-weight:bold;
}

/* Keeping the label styling to ensure it occupies its own line */
.stat label {
    flex-basis: 100%; /* Ensures the label takes the full width, maintaining it on its own line */
    /* Text-align: center; is inherited from .stat, so it's already centered */
    color:#ababab
}

.scores-container {
    display: flex;
    justify-content: center; /* Or use space-between for more separation */
    width: 100%; /* Adjust as necessary */
    margin: 20px 0; /* Add some vertical space around the container */
}

.score-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-entry label {
    margin-bottom: 5px;
}

input[type="number"] {
    text-align: center;
}

#user-section {
    text-align: center;
}

#seasonAveragesTableContainer {
    width: 95%; /* Set the width of the container to 90% */
    margin: 0 auto; /* This centers the container in its parent */
    overflow-x: auto; /* Adds a scrollbar if the table is wider than the container */
    color: white;
    height: 130px; /* Fixed height to prevent shifting - increased to accommodate full content */
    overflow-y: hidden; /* Prevent vertical scrollbar */
}

#seasonAveragesTableContainer table {
    width: 100%;
    /*border-collapse: collapse;*/
    border-spacing: 0;
    margin: 20px 0; /* Adds some vertical spacing above and below the table */
}

#seasonAveragesTableContainer table tr th,
#seasonAveragesTableContainer table tr td {
    text-align: center;
    border-right: 1px solid #4B5563;
    border-bottom: 1px solid #4B5563;
    padding: 5px;
}

#seasonAveragesTableContainer table tr th:first-child,
#seasonAveragesTableContainer table tr td:first-child {
    border-left: 1px solid #4B5563;
}

#seasonAveragesTableContainer tr th {
    border-top: 1px solid #4B5563;
}

#seasonAveragesTableContainer tr:first-child th:first-child { border-top-left-radius: 10px; }
#seasonAveragesTableContainer tr:first-child th:last-child { border-top-right-radius: 10px; }

#seasonAveragesTableContainer tr:last-child td:first-child { border-bottom-left-radius: 10px; }
#seasonAveragesTableContainer tr:last-child td:last-child { border-bottom-right-radius: 10px; }

/*#seasonAveragesTableContainer th td {
    text-align: center;
    padding: 8px;
    border: 1px solid #333;
}*/

#seasonAveragesTableContainer th {
    font-size: 14px;
    background-color: #111827; /* Darker bluish-gray for better contrast */
    font-weight:100;
}
#seasonAveragesTableContainer td {
    font-size: 34px;
    background-color: #1F2937; /* Match player card background - bluish-gray */
}

#seasonStatsTableContainer, #gameStatsTableContainer {
    width: 95%; /* Set the width of the container to 90% */
    margin: 0 auto; /* This centers the container in its parent */
    overflow-x: auto; /* Adds a scrollbar if the table is wider than the container */
}


#seasonStatsTableContainer table, #gameStatsTableContainer table {
    width: 100%;
    border-collapse: collapse;
}

#seasonStatsTableContainer th, #gameStatsTableContainer th, #seasonStatsTableContainer td, #gameStatsTableContainer td {
    text-align: center;
    padding: 4px;
    border: 1px solid #4B5563; /* Bluish-gray borders */
}

#seasonStatsTableContainer th, #gameStatsTableContainer th {
    font-size: 13px;
    background-color: #111827; /* Darker bluish-gray for better contrast */
}
#seasonStatsTableContainer td, #gameStatsTableContainer td {
    font-size: 13px;
    background-color: #1F2937; /* Match player card background - bluish-gray */
}

#seasonStatsTableContainer tr:nth-child(even) td, #gameStatsTableContainer tr:nth-child(even) td {
    background-color: #1F2937; /* Player card bluish-gray */
}

#seasonStatsTableContainer tr:nth-child(odd) td, #gameStatsTableContainer tr:nth-child(odd) td {
    background-color: #111827; /* Darker background for better contrast with white text */
}

/* Skeleton loading styles for season stats table */
.skeleton-placeholder {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    height: 16px;
    border-radius: 3px;
    min-width: 30px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-row .skeleton-placeholder {
    margin: 2px 0;
}

/* Different widths for different column types */
.skeleton-date { min-width: 40px; }
.skeleton-opponent { min-width: 35px; }
.skeleton-result { min-width: 60px; }
.skeleton-fg { min-width: 45px; }
.skeleton-percentage { min-width: 35px; }
.skeleton-stat { min-width: 25px; }

/* Larger skeleton placeholders for season averages to match 34px font size */
.skeleton-season-average {
    min-width: 40px;
    height: 34px; /* Matches the exact height of 34px font content */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    #totalStatsContainer {
        flex-wrap: wrap; /* Allow stats to wrap onto multiple lines on small screens */
        height: auto; /* Let the container grow as needed */
        padding: 10px;
    }

    .stat {
        /*flex: 1 0 50%; /* Allow two stats per row on small screens */
        margin-bottom: 10px; /* Add some space between rows of stats */
    }
}


#teamScore {
    margin-right:10px;
    width: 150px;
}
#opponentScore {
    margin-left:10px;
    width: 150px;
}

#login-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}

.login-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 90%;
  max-width: 400px;
  margin: 0 auto;
}

#login-input {
  padding: 14px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#login-btn {
  padding: 14px;
  font-size: 1rem;
  background-color: #0d84ff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
}

#login-btn:hover {
  background-color: #066bce;
}

#shareContent {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 740px;
    height: 570px;
    overflow: visible;
    clip: auto;
    background-image: url("../img/dahl_bkground.jpg");
    background-position-x: right;
    background-repeat: no-repeat;
    background-size: auto 570px;
    background-color: black;
    color:white
}

.smallLogo {
    width: 200px;
}

#shareLayout {
    padding: 20px;
}

.shareStat {
    font-family: Impact, "Anton", Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 58px;
    line-height: 50px;
}

.shareStatCat {
    font-family: Impact, "Anton", Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 25px;
}

.sharePlayerName {
    font-family: Impact, "Anton", Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 30px;
}

.shareStatLabel {
    font-family: Impact, "Anton", Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 50px;
}

/* Base styles for all devices */
#newOpponentInput, #seasonSelector {
    width: 80%; /* Full width minus margins */
    padding: 12px 10px; /* Adequate padding for touch targets */
    margin: 10px auto; /* Auto margins for horizontal centering */
    box-sizing: border-box; /* Include padding in width calculation */
    border: 1px solid #ccc; /* Subtle border */
    border-radius: 4px; /* Rounded corners */
    background-color: #fff; /* White background for readability */
    font-size: 16px; /* Readable text size */
    display: block; /* Ensure block level for proper margin handling */
    text-align: center;
    color: black;
}

#teamScore, #opponentScore {
    /*height: 30px; /* Increase the height as needed */
    background-color: #fff; /* White background for readability */
    border: 1px solid #ccc; /* Subtle border */
    font-size: 16px; /* Readable text size */
    padding: 12px 10px; /* Adequate padding for touch targets */
    margin: 5px;
    border-radius: 4px; /* Rounded corners */
}

/* Styles specific to mobile devices */
@media (max-width: 600px) {
    #opponentTeamSelect, #newOpponentInput {
        font-size: 18px; /* Larger text for easier reading */
        padding: 15px 10px; /* Larger padding for easier interaction */
    }
}


/* Media Queries */
@media (min-width: 600px) {
    input[type="text"], textarea, button {
        width: 80%; /* Slightly larger elements */
        margin: 15px auto; /* Increase spacing */
    }

    p {
        margin: 0 10%;
        padding: 0 10%;
    }

    body {
        font-size: 18px; /* Slightly larger text */
    }
}

@media (min-width: 768px) {
    input[type="text"], textarea, button {
        width: 70%;
    }

    p {
        margin: 0 15%;
        padding: 0 15%;
    }

    body {
        font-size: 20px; /* Larger text for readability */
    }
}

@media (min-width: 992px) {
    input[type="text"], textarea, button {
        width: 60%; /* Optimal width for readability and interaction */
    }

    p {
        margin: 0 20%;
        padding: 0 20%;
    }
}
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.fade-out {
    animation: fadeOut 1s forwards; /* Use 'forwards' to keep the final state after animation ends */
}
/* Modern Player Selection - Sitch Style */
#playerSelectionContainer {
  font-family: 'Roboto', sans-serif;
  background-color: #111827; /* bg-gray-900 */
  color: white;
  min-height: 100vh;
}

#playerSelectionContainer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* User Header */
.user-header {
  text-align: center;
  margin-bottom: 2rem;
}

.user-email {
  font-size: 0.875rem; /* text-sm */
  color: #9CA3AF; /* text-gray-400 */
  margin-bottom: 0.5rem;
  margin: 0;
}

.logout-button {
  background-color: #3B82F6; /* bg-blue-500 */
  color: white;
  font-weight: 700;
  padding: 0.5rem 2rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
  margin-top: 0.5rem;
}

.logout-button:hover {
  background-color: #2563EB; /* bg-blue-600 */
}

/* Page Title */
.page-title {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 500;
  margin: 0;
  color: white;
  text-align: center;
}

/* Title Header */
.title-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
  gap: 0.75rem;
}

.edit-players-btn {
  background-color: #374151;
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem;
  width: 100px;
  height: 2.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-players-btn:hover {
  background-color: #4B5563;
}

.edit-players-btn.active {
  background-color: #EF4444;
}

/* Player Grid */
.player-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0 auto; /* Center the grid */
  max-width: 400px; /* Constrain overall grid width */
  margin-bottom: 100px; /* Increased margin to prevent clipping by navbar */
}

.player-card {
  background-color: #1F2937; /* bg-gray-800 */
  border-radius: 1rem; /* rounded-2xl */
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  color: white;
  max-width: 180px; /* Constrain individual card size */
  max-height: 180px;
  position: relative;
}

.player-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.player-card.selected {
  background-color: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.player-card .avatar {
  width: 4rem; /* w-16 h-16 */
  height: 4rem;
  background-color: #4B5563; /* bg-gray-600 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700;
  color: white;
}

.player-card .player-name {
  color: white;
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  margin: 0;
}

/* Delete Button for Edit Mode */
.player-card .delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background-color: #EF4444;
  color: white;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  z-index: 10;
  transition: all 0.2s ease;
}

.player-card .delete-btn:hover {
  background-color: #DC2626;
  transform: scale(1.1);
}

.player-grid.edit-mode .player-card .delete-btn {
  display: flex;
  animation: deleteButtonAppear 0.4s ease-out;
}

.player-grid.edit-mode .player-card.add-card .delete-btn {
  display: none;
}

@keyframes deleteButtonAppear {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Add Player Card */
.player-card.add-card {
  background-color: #1F2937;
  border: 2px dashed #4B5563; /* border-gray-600 */
}

.player-card.add-card .avatar {
  background-color: #374151; /* bg-gray-700 */
  font-size: 2.5rem; /* text-4xl */
  font-weight: normal;
}

.player-card.add-card .player-name {
  color: #9CA3AF; /* text-gray-400 */
}

.player-card.add-card:hover {
  border-color: #6B7280;
  background-color: #374151;
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1F2937;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 90vw;
  animation: slideDown 0.3s ease;
}

.toast.success {
  background-color: #065F46;
  border-left: 4px solid #10B981;
}

.toast.error {
  background-color: #7F1D1D;
  border-left: 4px solid #EF4444;
}

.toast .toast-message {
  flex: 1;
  font-size: 0.875rem;
}

.toast .toast-action {
  background-color: #3B82F6;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}

.toast .toast-action:hover {
  background-color: #2563EB;
}

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

/* Continue Button */
.continue-button {
  background-color: #3B82F6;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: fixed;
  bottom: 90px; /* Position above navbar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 500; /* Above content but below navbar */
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  min-width: 200px;
}

.continue-button:hover {
  background-color: #2563EB;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.continue-button.hidden {
  display: none;
}

/* Responsive Design */
@media (min-width: 768px) {
  .player-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 0 auto 2rem auto; /* Maintain centering */
    max-width: 450px; /* Slightly larger on tablet */
  }
  
  .page-title {
    font-size: 1.5rem;
    font-weight: 500; /* Maintain consistent weight */
  }
  
  .player-card {
    max-width: 200px;
    max-height: 200px;
  }
}

@media (min-width: 1024px) {
  .player-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 0 auto 2rem auto; /* Maintain centering */
    max-width: 500px; /* Maintain 2-column layout */
  }
  
  .player-card {
    max-width: 220px;
    max-height: 220px;
  }
}

.hidden {
  display: none;
}

/* Drawer UI Styles - Modern Dark Theme */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
  pointer-events: none;
  font-family: 'Roboto', sans-serif;
}

.drawer-overlay.show {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.7);
  pointer-events: all;
}

.drawer-overlay.closing {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.7);
  pointer-events: all;
}

.drawer {
  background-color: #1F2937; /* bg-gray-800 to match cards */
  width: 100%;
  max-height: 80vh;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  color: white;
}

.drawer-overlay.show .drawer {
  transform: translateY(0);
}

.drawer-overlay.closing .drawer {
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #374151; /* gray-700 */
  background-color: #1F2937; /* bg-gray-800 */
  border-radius: 20px 20px 0 0;
}

.drawer-header h3 {
  margin: 0;
  color: white;
  font-size: 1.25rem; /* text-xl */
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  flex-grow: 1;
}

.close-btn {
  background: none;
  border: none;
  color: #9CA3AF; /* text-gray-400 */
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
}

.close-btn:hover {
  background-color: #374151; /* bg-gray-700 */
  color: white;
}

.drawer-content {
  padding: 24px;
  background-color: #1F2937; /* bg-gray-800 */
}

.form-group {
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem; /* text-sm */
}

.form-group input[type="text"],
.form-group input[type="file"] {
  width: 100%;
  padding: 12px 16px;
  background-color: #374151; /* bg-gray-700 */
  border: 1px solid #4B5563; /* border-gray-600 */
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="file"]:focus {
  outline: none;
  border-color: #3B82F6; /* border-blue-500 */
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input[type="text"]::placeholder {
  color: #9CA3AF; /* text-gray-400 */
}

.image-preview {
  margin-top: 12px;
  min-height: 80px;
  border: 2px dashed #4B5563; /* border-gray-600 */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #374151; /* bg-gray-700 */
  transition: border-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
}

.image-preview:hover {
  border-color: #3B82F6; /* border-blue-500 */
}

.image-preview img {
  max-width: calc(100% - 24px);
  max-height: 100px;
  border-radius: 6px;
  object-fit: contain;
}

.image-preview.empty {
  color: #9CA3AF; /* text-gray-400 */
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
}

.drawer-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  justify-content: flex-end;
  padding: 24px;
  background-color: #1F2937; /* bg-gray-800 */
  border-top: 1px solid #374151; /* border-gray-700 */
}

.secondary-btn {
  background: transparent;
  border: 2px solid #3B82F6; /* border-blue-500 */
  color: #3B82F6;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background-color: #3B82F6;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.primary-btn {
  background-color: #3B82F6; /* bg-blue-500 */
  border: 2px solid #3B82F6;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-btn:hover {
  background-color: #2563EB; /* bg-blue-600 */
  border-color: #2563EB;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.primary-btn:disabled {
  background-color: #6B7280; /* bg-gray-500 */
  border-color: #6B7280;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  color: #D1D5DB; /* text-gray-300 */
}

/* Profile Drawer Styles */
.profile-section {
  padding: 1rem 0;
}

.user-info {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #374151;
  gap: 0.75rem;
}

.user-avatar {
  font-size: 2.5rem;
  color: #9CA3AF;
  flex-shrink: 0;
}

.user-email {
  color: #E5E7EB;
  font-size: 0.875rem;
  margin: 0;
  padding: 0;
}

.profile-actions {
  padding: 1.5rem 0 0.5rem 0;
  display: flex;
  justify-content: center;
}

.profile-actions .logout-button {
  background-color: #EF4444;
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-actions .logout-button:hover {
  background-color: #DC2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
