/* 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;
  font-size: 18px; /* Set base font size to 18px */
}

#bodyContainer {
	width: 80%;
	margin: auto;
}


select.pageSelector {
  margin: 10px;
  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; 
}

.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: 100%; /* 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;
}

.inpt-long {
	width: 700px;
}

/* 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;
  }
}


/* Nav bar */ 

        .navbar {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 0 2rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-container {
            max-width: 1400px;
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 70px;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: transform 0.3s ease;
        }

        .logo:hover {
            transform: scale(1.05);
        }

        .logo-icon {
            width: 35px;
            height: 35px;
            background: rgba(255,255,255,0.2);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
            align-items: center;
        }

        .nav-links a.link {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            position: relative;
        }

        .nav-links a:hover {
            background: rgba(255,255,255,0.15);
            transform: translateY(-2px);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: white;
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .nav-links a:hover::after {
            width: 80%;
        }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }



        .user-menu {
            position: relative;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            border: 2px solid rgba(255,255,255,0.3);
        }

        .user-avatar:hover {
            background: rgba(255,255,255,0.3);
            transform: scale(1.1);
        }

        .mobile-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            padding: 5px;
        }

        .mobile-toggle span {
            width: 25px;
            height: 3px;
            background: white;
            border-radius: 3px;
            transition: all 0.3s ease;
        }

        @media (max-width: 768px) {
            .nav-links {
                position: absolute;
                top: 70px;
                left: 0;
                right: 0;
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                flex-direction: column;
                padding: 2rem;
                gap: 1rem;
                display: none;
                box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            }

            .nav-links.active {
                display: flex;

            }

            .mobile-toggle {
                display: flex;
            }

            .search-box input {
                width: 150px;
            }

            .search-box input:focus {
                width: 180px;
            }
        }

form.addEvent {
	width:80%;
	height: 100px;
	padding: 20px;
	margin: auto;
	border: 1px solid black;
}

/* Mailer */

div.nav-buttons {
	margin: 20px auto;
    background: #3182ce;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

     

         div.nav-buttons button {
            flex: 1;
            padding: 0.75rem 1.5rem;
            font-size: 1rem;
            font-weight: 500;
            color: white;
            background: #34495e;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        div.nav-buttons button:hover {
            background:#A3BBC7;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
        }

        div.nav-buttons button:active {
            transform: translateY(0);
        }


.alert-container {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background-color: #d1ecf1;
  width:70%;
	display: none;
}