@tailwind base;
@tailwind components;
@tailwind utilities;

input,
textarea,
select {
  font-size: 16px;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #001f3f;
  color: #ffffff;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

@media (max-width: 767px) {
  .cellStyles {
    padding: 4px;
  }
  body {
    padding: 0;
  }
}

.snackbar {
  position: fixed;
  z-index: 5500;
  display: flex;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  min-width: 280px;
  background-color: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  border: none;
  box-shadow: 0 4px 16px rgba(45, 45, 60, 0.2);
  padding: 1rem;
  color: var(--snackbar-text-color, #ffffff);
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  align-items: center;
  justify-content: space-between; /* Ensure space between message and close icon */
}

.snackbar-message {
  flex: 1;
  margin-right: 1rem;
  padding-right: 1.5rem; /* Add padding to prevent overlap with close icon */
}

.snackbar-close-icon {
  cursor: pointer;
  font-size: 6px;
  width: 0.75rem;
  height: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--snackbar-close-icon-color, #ffffff);
  transition: color 0.2s ease-in-out;
  border: 1px solid var(--snackbar-close-icon-color, #ffffff);
  border-radius: 4px;
  margin-left: 0;
  margin-right: 0.5rem;
}

.snackbar-close-icon:hover {
  color: var(--snackbar-close-icon-hover-color, #666666);
}

.custom-button-1 {
  border: 1px solid #ffffff;
  color: #ffffff;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  transition:
    background-color 0.2s ease-in-out,
    color 0.2s ease-in-out;
  background-color: rgba(0, 31, 63, 0.2);
  backdrop-filter: blur(10px);
}

.custom-button-1:hover {
  background-color: #003366;
  color: #ffffff;
}

.custom-button-delete {
  border: 1px solid #ffffff;
  color: #000000;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  transition:
    background-color 0.2s ease-in-out,
    color 0.2s ease-in-out;
  background-color: rgba(255, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.custom-button-delete:hover {
  background-color: #d11f00;
  color: #000000;
}

.player-header {
  text-align: center;
  margin-bottom: 24px;
}

.player-details {
  margin-bottom: 24px;
  text-align: center;
}

.table-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 24px;
  color: #ffffff;
  max-width: 600px;
  margin: 40px auto 0;
  min-width: 300px;
  display: inline-block;
}

.table-header {
  text-align: center;
  margin-bottom: 24px;
}

.table-details {
  margin-bottom: 24px;
  text-align: center;
}

.qr-code-container {
  text-align: center;
  margin-bottom: 24px;
}

.stats-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  padding: 32px;
  color: #ffffff;
  max-width: 700px;
  margin: 40px auto;
}

.profile-image-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  width: 100%;
}

.profile-image-container .profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Reset default styles */
.react-datepicker__input-container input {
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style the calendar container */
.react-datepicker__calendar-container {
  background-color: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

/* Style the calendar header */
.react-datepicker__header {
  background-color: transparent;
  padding: 8px 0;
  border-bottom: none;
  font-weight: 500;
  color: #333;
  grid-column: 1 / -1;
}

/* Style the day cells */
.react-datepicker__day {
  padding: 8px;
  text-align: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease-in-out;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.react-datepicker__day:hover {
  background-color: #e0e0e0;
}

.react-datepicker__day--selected {
  background-color: #00a6ff;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Styles from emailTemplate.html */
.membership-tier {
  padding: 12px 20px;
  border-radius: 12px;
  display: inline-block;
  font-weight: bold;
  font-size: 18px;
}

.bronze {
  background-color: #cd7f32;
  color: #ffffff;
}

.silver {
  background-color: #c0c0c0;
  color: #333333;
}

.gold {
  background-color: #ffd700;
  color: #333333;
}

.platinum {
  background-color: #e5e4e2;
  color: #333333;
}

.notes-textarea {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  color: #ffffff;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  box-sizing: border-box; /* Add this to include padding in width calculation */
}

.notes-textarea:disabled {
  background-color: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.7);
}

/* Add this CSS to your global styles or a separate CSS file */
.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #00a6ff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 2s linear infinite;
}

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

.snackbar-lower {
  bottom: 32px; /* Adjust this value to move the snackbar lower */
}

.report-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #002b56;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.report-title {
  text-align: center;
  color: #00a6ff;
  margin-bottom: 30px;
  font-size: 2.5em;
}

.report-summary {
  display: flex;
  justify-content: space-around;
  margin-bottom: 30px;
}

.summary-item {
  text-align: center;
  background-color: #001f3f;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex: 1;
  margin: 0 10px;
}

.summary-item h3 {
  margin: 0;
  color: #00a6ff;
  font-size: 1.2em;
}

.summary-value {
  font-size: 2em;
  font-weight: bold;
  color: #ffffff;
  margin: 10px 0 0;
}

.report-section {
  margin-bottom: 40px;
}

.report-section h2 {
  color: #00a6ff;
  border-bottom: 2px solid #00a6ff;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.table-container {
  overflow-x: auto;
  background-color: #001f3f;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #34495e;
}

th {
  background-color: #002b56;
  font-weight: bold;
  color: #00a6ff;
  text-transform: uppercase;
}

tr:hover {
  background-color: #002b56;
}

.highlight-row {
  background-color: rgba(0, 166, 255, 0.1);
  font-weight: bold;
}

.highlight-row:hover {
  background-color: rgba(0, 166, 255, 0.2);
}

.loading, .error {
  text-align: center;
  font-size: 18px;
  color: #00a6ff;
  margin-top: 50px;
}

@media (max-width: 768px) {
  .report-summary {
    flex-direction: column;
  }

  .summary-item {
    margin: 10px 0;
  }
}

/* Add styles for the main content wrapper */
#app-wrapper {
  height: 100vh;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Update navbar specific styles */
.MuiAppBar-root {
  background: rgba(0, 31, 63, 0.9) !important;
  backdrop-filter: blur(10px) !important;
}

.MuiToolbar-root {
  min-height: 56px !important;
}

/* Ensure body and html allow scrolling */
html, body {
  height: 100%;
  overflow-y: auto;
}

/* Add new button style */
.custom-button-warning {
  border: 1px solid #ff9800;
  color: #ff9800;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  background-color: rgba(255, 152, 0, 0.1);
  backdrop-filter: blur(10px);
}

.custom-button-warning:hover {
  background-color: #ff9800;
  color: #ffffff;
}

.loading-container,
.error-container,
.not-found-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 2rem;
  text-align: center;
  color: white;
}

.loading-spinner {
  border: 4px solid rgba(0, 166, 255, 0.1);
  border-left-color: #00a6ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
