/* default styling */

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #f6f8fa;
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif!important;
}

::-moz-selection {
  background: #b2d3ff;
}

::selection {
  background: #b2d3ff;
}

a {
  color:#000;
  transition: 0.3s ease;
  text-decoration: none;
  font-size: 16px;

}

a:hover {
  text-decoration: none;
  transition: 0.3s ease;
  color: #2a6496
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  margin-bottom: 2.0rem;
  margin-top: 0
}

h1 {
  font-size: 4.6rem;
  line-height: 1.2
}

h2 {
  font-size: 2.5rem;
  line-height: 1.25
}

h3 {
  font-size: 2.8rem;
  line-height: 1.3
}

h4 {
  font-size: 2.2rem;
  letter-spacing: -.08rem;
  line-height: 1.35
}

h5 {
  font-size: 1.8rem;
  letter-spacing: -.05rem;
  line-height: 1.5
}

h6 {
  font-size: 1.6rem;
  letter-spacing: 0;
  line-height: 1.4
}

/* Start hidden and slightly transparent */
.page-fade {
  opacity: 0;
  transition: opacity 0.4s ease-in; /* fade duration ~0.4s */
}

/* Class to make it visible */
.page-fade.show {
  opacity: 1;
}

/* Sidebar */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow : hidden;
  background-color: #fff;
  padding-top: 20px;
  box-sizing: border-box;
  border-right: 1px solid #ddd;
  transition: width 0.35s ease-in-out;
}


/* Sidebar collapsed */
.sidebar.collapsed {
  width: fit-content; /* just enough for the icon */
  text-align:center;
}

.sidebar.collapsed .sidebar-toggle {
  margin:0 auto;
}

/* Hide text when collapsed */
.sidebar.collapsed .sidebar-header,
.sidebar.collapsed .sidebar-links {
  display: none;
}
.sidebar-header-row {
  display: flex;
  align-items: center;
  padding: 0.1rem;
}

/* Sidebar links consistent height and spacing */
.sidebar .nav-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  margin: 0; /* remove excessive spacing */
  border-radius: 5px;
  min-height: 45px; /* consistent height */
  line-height: 1.2;
  box-sizing: border-box;
}

/* Hover & active states */
.sidebar .nav-link:hover {
  background-color: rgba(123, 145, 210, 0.25);
  color: #283B77;
}
/* Nested text alignment */
.sidebar .nav-link .link-text {
  flex-grow: 1;
}

.sidebar ul {
  list-style: none;
  padding: 12px;
  margin: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Main content next to sidebar */
.sidebar-header {
  text-align: left; /* centers the text horizontally */
  font-weight: bold; /* makes the text bold */
  color: #000; /* optional: sets text color */
  text-decoration: none; /* removes underline */
  /*text-decoration-color: #2f85a3; !important;*/
}

a.sidebar-header {
  margin:0 0 0 25px;
}

/* Toggle button styling */
.sidebar-toggle {
  margin-left:auto;
  margin-right:20px;
  margin-bottom:10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  padding: 1px; !important;
  padding-right: 6px; !important;
  padding-left: 6px; !important;
  background: transparent; !important;
  border-bottom-color: transparent; !important;
  transition: width 0.3s ease;
}

/* Main content */
.main-content {
  flex: 1;             /* take remaining space */
  padding: 3rem 3rem;
  box-sizing: border-box;
  min-width: 0;
  overflow-x: hidden;    /* prevent wide content from breaking layout */

}



.flex {
  display: flex;
  min-height: 100vh;   /* ensures footer sits at bottom if content is short */
  flex-direction: row; /* sidebar left, content right */
}

/* Footer */
.footer {
  background-color: #fff;
  padding: 20px;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 100px;
}

.footer-column {
  flex: 1;
  margin: 20px;
}

.footer-column.second-column {
  margin-top: 60px;
}

.footer-title h2 {
  margin-top: 30px;
  color: #2d314c;
  font-weight: bold;
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(182, 182, 182, 0.38);
  padding-bottom: 5px;
}

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

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #333333;
  text-decoration: none;
}

.footer-column ul li a:hover {
  color: #838383;
}

.copyright {
  font-weight: bold;
  font-size: 13px;
  text-align: center;
}

.footer-heading {
  flex-shrink: 0;
  width: 100%;
  padding: 2rem;
  background: #fff;
  margin-top: auto;
  position: relative;
}

/* feather icons */
.feather.footer {
  width: 20px;
  height: 20px;
}



@media (max-width: 768px) {

  .footer {
    padding: 25px 15px;
    text-align: center;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 30px; /* spacing between columns */
    padding: 0 10px;
  }

  .footer-column {
    margin: 0;
    width: 100%;
    max-width: 350px;
    text-align: center;
  }

  .footer-column.second-column {
    margin-top: 0;
  }

  .footer-title h2 {
    font-size: 1.3rem;
  }

  .footer-column ul li {
    margin-bottom: 8px;
  }

  .copyright {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
  }
}

@media (max-width: 480px) {

  .footer {
    padding: 20px 10px;
  }

  .footer-container {
    gap: 20px;
  }

  .footer-column {
    max-width: 300px;
  }

  .footer-title h2 {
    font-size: 1.2rem;
  }
}


/** field/etc styling **/

blockquote, dl, figure, form, ol, p, pre, table, ul {
  margin-bottom: 2.5rem
}


input[type='color'], input[type='date'], input[type='datetime'], input[type='datetime-local'], input[type='email'], input[type='month'], input[type='number'], input[type='password'], input[type='search'], input[type='tel'], input[type='text'], input[type='url'], input[type='week'], input:not([type]), textarea, select {
  -webkit-appearance: none;
  display:block;
  background-color: transparent;
  border: 0.1rem solid #d1d1d1;
  border-radius: .4rem;
  box-shadow: none;
  box-sizing: inherit;
  height: 2rem;
  padding: .6rem 1.0rem .7rem;
  width: 50%;
  margin-bottom:20px;
}

fieldset {
  border-width: 0;
  padding: 0
}

label {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-weight:600;
}

.flash-center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  padding: 40px 50px;
  border-radius: 8px;
  background-color: #d4edda;
  color: #155724;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 80%;
  opacity: 1;
  transition: opacity 1s ease-out;
}

.flash-fade-out {
  opacity: 0;
}

.flash-error {
  background-color: #f8d7da;
  color: #721c24;
}


@media (max-width: 768px) {

  .sidebar {
    width: 100%;
    height: auto;
    position: fixed;
    top: 0;
    transition: left 0.3s ease;
    z-index: 1000;
    padding-top: 10px;
  }
}


/*  .main-content {*/
/*    padding: 1.5rem;*/
/*  }*/

/*  .flex {*/
/*    flex-direction: column;*/
/*  }*/

/*  .footer-container {*/
/*    flex-direction: column;*/
/*    gap: 20px;*/
/*    text-align: center;*/
/*  }*/

/*  h1 { font-size: 2.5rem; }*/
/*  h2 { font-size: 2rem; }*/
/*  h3 { font-size: 1.8rem; }*/
/*  h4 { font-size: 1.6rem; }*/
/*  h5 { font-size: 1.4rem; }*/
/*  h6 { font-size: 1.2rem; }*/

/*  input[type='text'],*/
/*  input[type='email'],*/
/*  input[type='password'],*/
/*  input[type='number'],*/
/*  textarea,*/
/*  select {*/
/*    width: 100%;*/
/*  }*/

/*  .sidebar .nav-link {*/
/*    font-size: 14px;*/
/*    padding: 10px 12px;*/
/*  }*/

/*  table {*/
/*    width: 100%;*/
/*    display: block;*/
/*    overflow-x: auto;*/
/*  }*/

/*  .flash-center {*/
/*    padding: 20px 25px;*/
/*    max-width: 90%;*/
/*    font-size: 0.9rem;*/
/*  }*/
/*}*/


/*@media (max-width: 480px) {*/

/*  h1 { font-size: 2rem; }*/
/*  h2 { font-size: 1.6rem; }*/

/*  .main-content {*/
/*    padding: 1rem;*/
/*  }*/

/*  .footer-column {*/
/*    margin: 10px 0;*/
/*  }*/
/*}*/
