:root {
  --primary: #002877;
  --primary-light: #0041C2;
  --primary-dark: #001A4D;
  --background: #F5F6FA;
  --text: #1A1B1E;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --white: #FFFFFF;
  --danger: #DC2626;
  --success: #059669;
}
.messages {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

.message {
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 4px;
  color: white;
  opacity: 1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.message.success {
  background-color: #4CAF50;
}

.message.error {
  background-color: #f44336;
}

.message.info {
  background-color: #2196F3;
}

.message.warning {
  background-color: #ff9800;
}



body {
  margin: 0;
  padding: 0px 10px;
  background: var(--background);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

nav {
  background: var(--white);
  padding: 7px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-brand {
  color: var(--primary);
  font-size: 1.3rem;
  text-decoration: none;
  font-weight: bold;
}
.nav-brand img{
  width: 200px;
}


.nav-elms {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-elms button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.2rem;
  margin-left: 1rem;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s;

  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.nav-elms select{
  margin-left: 1rem;
}

.nav-elms button:hover {
  background: var(--primary-light);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.9rem;
}
#user-image{
  width:35px;
}

.message {
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  color: var(--white);
  animation: slideIn 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.message::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(0,0,0,0.2);
  animation: decreaseWidth 3s linear forwards;
}

@keyframes decreaseWidth {
  from { width: 100%; }
  to { width: 0%; }
}

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

.message.error {
  background: var(--danger);
}

.message.success {
  background: var(--success);
}

.search-bar input {
  background: #111;
  border: solid 1px #444;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  color: #fff;
  width: 300px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
}


.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(0,124,124,0.1);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
  color: var(--text);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.close-modal:hover {
  opacity: 1;
}

#signupModal .modal-content {
  max-width: 800px;
}

#signupModal .modal-content form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

#signupModal .form-group {
  margin-bottom: 0.8rem;
}

#signupModal .btn-submit {
  grid-column: span 2;
}

.modal-content h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(0,0,0,0.8);
}

input {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.25rem;
  background: #fff;
  border: 2px solid rgba(0,124,124,0.3);
  color: #000;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,124,124,0.2);
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 5px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.password-toggle:hover {
  opacity: 1;
}

.password-toggle .show {
  display: none;
}

.password-toggle .hide {
  display: inline;
}

.password-toggle.showing .show {
  display: inline;
}

.password-toggle.showing .hide {
  display: none;
}

.messages {
  position: fixed;
  top: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 400px;
  pointer-events: none;
}


.btn-submit {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: 0.9rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  margin-top: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,124,124,0.4);
}

body {
  padding-top: 4rem;
}

.footer {
  background: var(--white);
  padding: 3rem 1rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}


/* Styles for screens up to 767px (typical mobile devices) */
@media only screen and (max-width: 767px) {
  body {
    margin: 0;
    padding: 0px 3px;
  }
nav {
   display: flex;
  justify-content: space-between;
   flex-flow: wrap;
   row-gap: 10px;
}
  
.nav-brand img{
    width: 40vw;
  }
#user-image{
    width:30px;
  }
.nav-elms {
    gap: 5px;
  }
.nav-elms button {
    /* background: transparent; */
    color: var(--border);
    border: none;
    padding: 6px 9px;
    margin-left: 0px;
    border-radius: 5px;
    font-size: 12px;
  }

  .nav-elms select{
    margin-left: 0px;
  }
  
  .user-profile {
    margin-right: 5px;
    max-width: 100px;
    overflow-x: hidden;
  }

  
#admin-portal-btn{
  display:none;
}


  
}
