/* Reset some basic elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
  padding: 20px;
  font-size: 18px; /* Set base font size to 18px */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #2c5282; /* Dark blue top border */
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #2c5282; /* Dark blue heading */
  font-size: 28px; /* Increased heading size relative to body */
}

/* Table styles */
table {
  width: 80%; /* Set table width to 80% */
  margin: 0 auto;
  border-collapse: collapse;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: 1px solid #90cdf4; /* Light blue border */
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  font-size: 18px; /* Ensure consistent font size in table */
}

th {
  background-color: #3182ce; /* Medium blue header background */
  color: white;
  font-weight: bold;
  text-transform: uppercase;
}

/* Alternate row colors for better readability */
tr:nth-child(even) {
  background-color: #f0f7fa; /* Slight blue tint for even rows */
}

tr:hover, tr:nth-child(even):hover {
  background-color:#CAD1E1; /* Very light blue hover effect */
}

/* Button Container */
.button-container {
  margin: 20px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Base Button Styles */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 2px solid #0227B3; /* Custom blue border color */
  padding: 0.375rem 0.75rem;
  font-size: 18px; /* Match button font size to body */
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-attend {
	min-width: 100px;
}

/* Button hover and focus states */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: #0227B3; /* Keep custom blue border on hover */
	background-color:#B9DBF7;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:focus {
  outline: none;
  border-color: #0227B3; /* Keep custom blue border on focus */
  box-shadow: 0 0 0 0.2rem rgba(2, 39, 179, 0.25); /* Custom blue shadow */
}

/* Button Sizes */
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 16px; /* Adjusted small button size */
  border-radius: 0.2rem;
}

.btn-lg {
  padding: 0.5rem 1rem;
  font-size: 20px; /* Adjusted large button size */
  border-radius: 0.3rem;
}

/* Primary Blue Button */
.btn-primary {
  background-color: #3182ce;
  color: white;
  border-color: #0227B3; /* Custom blue border */
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #2c5282;
  border-color: #0227B3; /* Keep custom blue border on hover/focus */
  box-shadow: 0 0 0 0.2rem rgba(2, 39, 179, 0.25); /* Custom blue shadow */
}

.btn-primary:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover:before {
  left: 100%;
}

/* Secondary Blue Button */
.btn-secondary {
  background-color: #90cdf4;
  color: #2a4365;
  border-color: #0227B3; /* Custom blue border */
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: #63b3ed;
  border-color: #0227B3; /* Keep custom blue border on hover/focus */
  box-shadow: 0 0 0 0.2rem rgba(2, 39, 179, 0.25); /* Custom blue shadow */
  color: #1a365d;
}

/* Outline Blue Button */
.btn-outline {
  background-color: transparent;
  color: #3182ce;
  border-color: #0227B3; /* Custom blue border */
  transition: all 0.3s;
}

.btn-outline:hover, .btn-outline:focus {
  background-color: #3182ce;
  color: white;
  border-color: #0227B3; /* Keep custom blue border on hover/focus */
  box-shadow: 0 0 0 0.2rem rgba(2, 39, 179, 0.25); /* Custom blue shadow */
}

/* Success Button */
.btn-success {
  background-color: #48bb78;
  color: white;
  border-color: #0227B3; /* Custom blue border */
}

.btn-success:hover, .btn-success:focus {
  background-color: #38a169;
  border-color: #0227B3; /* Keep custom blue border on hover/focus */
  box-shadow: 0 0 8px rgba(2, 39, 179, 0.5); /* Custom blue shadow */
}

.btn-success:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-success:hover:before {
  left: 100%;
}

/* Danger/Delete Button */
.btn-danger {
  background-color: #f56565;
  color: white;
  border-color: #0227B3; /* Custom blue border */
}

.btn-danger:hover, .btn-danger:focus {
  background-color: #e53e3e;
  border-color: #0227B3; /* Keep custom blue border on hover/focus */
  box-shadow: 0 0 8px rgba(2, 39, 179, 0.5); /* Custom blue shadow */
}

.btn-danger:hover {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%, 90% {
    transform: translateX(-1px);
  }
  20%, 80% {
    transform: translateX(2px);
  }
  30%, 50%, 70% {
    transform: translateX(-2px);
  }
  40%, 60% {
    transform: translateX(1px);
  }
}

/* Disabled Button */
.btn-disabled, .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
  border-color: #a0aec0; /* Lighter border for disabled state */
}

/* Icon Button */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon i, .btn-icon svg {
  margin-right: 0.5rem;
  transition: transform 0.2s;
}

.btn-icon:hover i, .btn-icon:hover svg {
  transform: translateX(2px);
}

.btn-icon-only {
  height: 2.5rem;
  width: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.btn-icon-only:hover {
  transform: rotate(15deg) scale(1.1);
}

/* Button Group */
.btn-group {
  display: inline-flex;
  border-radius: 0.25rem;
  overflow: hidden;
}

.btn-group .btn {
  border-radius: 0;
  margin: 0;
}

.btn-group .btn:not(:last-child) {
  border-right: 1px solid #0227B3; /* Custom blue border for internal dividers */
}

.btn-group .btn:first-child {
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.btn-group .btn:last-child {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

.btn-group:hover .btn {
  opacity: 0.8;
}

.btn-group .btn:hover {
  opacity: 1;
  z-index: 1;
}

/* Table Action Buttons (smaller buttons that fit nicely in table rows) */
.table-action-btn {
  padding: 0.25rem 0.5rem;
  font-size: 16px; /* Adjusted table action button size */
  margin: 0 2px;
  border-width: 1px; /* Thinner border for table action buttons */
}

.table-action-btn:hover {
  transform: translateY(-1px);
}

.inpt {
  display: inline-block;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
  vertical-align: center;
  user-select: none;
  border: 2px solid #0227B3; /* Custom blue border color */
  padding: 0.375rem 0.75rem;
  font-size: 18px; /* Match button font size to body */
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    width: 100%; /* Full width on small screens */
  }
  
  .container {
    padding: 10px;
  }
  
  th, td {
    padding: 8px 10px;
  }
  
  .button-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    margin-bottom: 5px;
  }
}