/* General */

* {
  margin: 0;
  box-sizing: border-box;
  font-family: Poppins;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html {
    scroll-behavior:smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

.active-link {
  color: #e6b800;
}

.main-content-flex {
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
}

/*Sidebar*/

.side-bar {
  display: block;
  width: 250px;
  background-color: #193366;
  color: white;
  height: 100%;
  overflow: hidden;
  overflow-y: scroll;
}

.side-bar-small {
  display: none !important;
}

.side-bar::-webkit-scrollbar {
  display: none;
}

.side-bar-header {
  display: flex;
  background-color: #e6b800;
  padding: 15px 10px;
  position: sticky;
  top: 0;
}

#menuToggle {
  cursor: pointer;
}

.side-bar-header .logo {
  width: 100%;
  font-weight: 900;
}

.side-bar ul {
  padding: 0;
}

.side-bar ul .icon-coloured {
  color: #e6b800;
}

.side-bar-link {
  padding: 15px 10px;
  display: flex;
  cursor: pointer;
}

.side-bar-link:hover {
  transition: 0.3s ease background;
  background-color: #193366;
}

.side-bar-link span {
  padding-right: 5px;
}

.link-text {
  width: 100%;
  padding-left: 5px;
  white-space: nowrap;
}

.link-content {
  background: #142952;
  padding: 0;
  border-bottom: 1px dashed #142952;
}

.link-content a:hover {
  transition: 0.3s ease color;
  color: #e6b800;
}

.link-content li {
  display: flex;
  padding: 5px 15px;
  font-size: 14px;
}

.collapsible {
  transition: background-color 0.3s ease;
}

.content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.content.show {
  max-height: 300px;
  padding: 18px 10px;
}

#main-menu {
  max-width: 250px;
  transition: max-width 0.3s ease;
}

#logo {
  transition: max-width 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
}

/*Page Content*/

.page-content {
  width: 100%;
  background: #ebf0fa;
  overflow: hidden;
  overflow-y: scroll;
}

/*Top Bar*/

.top-bar {
  display: flex;
  background: white;
  padding: 15px;
  position: sticky;
  top: 0;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  z-index: 10 !important;
}

.top-bar-text {
  padding: 0 10px;
  font-weight: bold;
  width: 100%;
  position: relative;
}

.top-bar-text p {
  position: absolute;
  font-size: 18px;
  color: #193366;
  padding: 5px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.top-bar-icons {
  display: flex;
  border-right: 1px solid #f2f2f2;
  border-left: 1px solid #f2f2f2;
  padding: 0 10px;
}

.icon-div {
  position: relative;
  width: 30px;
  height: 30px;
  background: #f2f2f2;
  border-radius: 50%;
  margin: 0 10px;
  cursor: pointer;
}

.icon-div .material-icons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  color: grey;
}

.item-count {
  position: absolute;
  background-color: red;
  top: -7px;
  right: -5px;
  border-radius: 50%;
  height: 15px;
  width: 15px;
}

.item-count span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  font-weight: bold;
  color: whitesmoke;
}

.account-div {
  display: flex;
  width: 150px;
  position: relative;
  cursor: pointer;
}

.account-info {
  width: 100px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.account-info p {
  display: flex;
  font-size: 12px;
  font-weight: bold;
}

.account-info .role {
  color: grey;
  font-size: 10px;
  display: block;
}

.account-info .material-icons {
  font-size: 15px;
  padding: 2px;
}

.account-info-overlay {
  position: absolute;
  background: white;
  bottom: -108px;
  padding: 5px 0;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  font-size: 12px;
  width: 100%;
  margin: 0 5px;
  overflow: hidden;
  display: none;
}

.account-info-overlay ul {
  padding: 0;
}

.account-info-overlay li {
  display: flex;
  padding: 7px 10px;
  cursor: pointer;
}

.account-info-overlay li:hover {
  background-color: #f2f2f2;
}

.account-info-overlay .material-icons {
  font-size: 16px;
  padding: 0 5px 0 0;
}

.show {
  display: block;
}

/*Page Main Content*/

.page-main-content {
  padding: 15px;
  padding-left: 40px;
}

.address-bar {
  color: #142952;
  font-size: 14px;
}

.address-bar a {
  color: grey;
}

.data-flex-container,
.general-flex-container {
  display: flex;
  width: 100%;
  margin: 20px 0;
}

.data-flex,
.general-flex {
  background-color: white;
  width: 25%;
  margin: 0 20px 0 0;
  padding: 15px;
  display: flex;
  text-align: center;
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  border-radius: 10px;
  overflow: hidden;
  overflow-x: scroll;
}

.data-flex:hover,
.general-flex:hover {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  transition: box-shadow 0.3s ease;
}

.data-icon-div {
  border-right: 1px solid #ddd;
  padding: 0 15px 0 0;
  font-size: 12px;
  width: 50%;
  font-weight: 500;
}

.data-icon-div .material-icons {
  display: block;
  font-size: 40px;
  margin: 0 0 5px 0;
}

.data {
  padding: 10px 0 0 15px;
  width: 50%;
  text-align: center;
  font-weight: bold;
  font-size: 24px;
}

.general-flex {
  width: 50%;
  padding: 0;
  display: block;
}

.flex-header {
  padding: 15px;
  width: 100%;
  text-align: left;
  font-weight: 600;
  display: flex;
  border-bottom: 1px solid #f2f2f2;
}

.header-text {
  width: 100%;
}

.table-header td {
  font-weight: 600 !important;
  border-top: 1.5px solid #f2f2f2;
  border-bottom: 2px solid #f2f2f2;
  padding: 10px !important;
  white-space: nowrap;
  font-size: 12px !important;
  background: white !important;
  color: rgba(2, 6, 12, 0.75);
}

.table-header .material-icons {
  display: none;
}

.general-flex table .material-icons {
  font-size: 14px;
}

.general-flex td {
  padding: 10px;
  font-size: 11px;
  white-space: nowrap;
  max-width: 150px;
  text-overflow: ellipsis;
  overflow: hidden;
  color: rgba(2, 6, 12, 0.75);
  font-weight: 500;
}

.general-flex tr:hover {
  background-color: #ddd !important;
  transition: background 0.3s ease;
}

.general-flex table {
  font-size: 12px;
  text-align: left;
  border-collapse: collapse;
  padding: 10px !important;
  margin: 0 0 15px;
}

.general-flex img {
  width: 30px;
  height: 30px;
}

.general-flex tr:nth-child(odd) {
  background-color: #f2f2f2;
}

.edit-icon {
  color: green;
}

.delete-icon {
  color: red;
}

table a .material-icons {
  margin: 0 2px;
}

.search-table {
  display: flex;
}

.search-table input {
  font-size: 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  padding: 5px 10px;
  margin-right: 10px;
}

.search-table button {
  font-size: 12px;
  border-radius: 5px;
  border: 1px solid white;
  padding: 5px 10px;
  margin-right: 10px;
  background-color: #193366;
  color: white;
  cursor: pointer;
}

:focus {
  outline: 0;
}

.flex-chart {
  width: 100%;
  overflow: hidden;
  position: relative !important;
  padding: 0;
  z-index: 1;
}

.chart-div {
  width: 100%;
  overflow: hidden;
  position: relative !important;
  padding: 0;
  z-index: 1;
}

.profile-div {
  padding: 20px 20px 50px;
  text-align: left;
}

.input-group {
  width: 25%;
  padding-right: 15px;
  padding: 5px 15px 20px 0;
}

.input-group input,
.input-group select {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
}

.input-group input:focus, .input-group select:focus {
  outline: 0;
  box-shadow: 0 0 8px 3px rgba(0, 123, 255, 0.4);
}

.input-group label {
  font-size: 10px;
  font-weight: 500;
  color: black;
  display: block;
  margin: 5px 3px;
}

.light-text {
  color: grey;
}

.dark-text {
  padding-left: 40px !important;
  font-weight: 500;
}

.profile-details td {
  padding: 10px 5px;
}

h4 {
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 10px;
  text-decoration: underline;
}

.inputs-div {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #f2f2f2;
}

*::-webkit-scrollbar {
  display: none;
}

.add-btn {
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  background-color: #24478f;
  color: white;
}

.add-btn:hover {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.result {
  font-size: 12px;
  margin: 0 0 20px;
  width: 100%;
  font-weight: 500;
  font-style: italic;
  color: red;
}

.success-msg {
  font-size: 12px;
  font-weight: 500;
  color: #009933;
  background-color: #b3ffcc;
  border-radius: 3px;
  padding: 10px;
  max-width: 300px;
  margin: 0 0 20px;
  position: relative;
}

.success-msg span {
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px 5px;
  font-size: 14px;
  display: block;
}

.verify-link {
    background: #0d9488;
    color: white;
    font-weight: 600;
    border-radius: 5px;
    padding: 5px 10px;
}

.view-link {
    background: #6366f1;
    color: white;
    font-weight: 600;
    border-radius: 5px;
    padding: 5px 10px;
}

.edit-link {
    background: #f59e0b;
    color: white;
    font-weight: 600;
    border-radius: 5px;
    padding: 5px 10px;
}

/*Different Screens*/

@media only screen and (max-width: 600px) {
  .page-content {
    width: 100%;
    background: #ebf0fa;
    overflow: unset;
    padding-bottom: 50px;
  }

  .page-content::after {
    content: 'Developed by Mohd Ishaq & Team (MIT) Web Works - 2025';
    display: block;
    text-align: center;
    font-weight: 600;
    color: grey;
    font-size: 12px;
    padding: 20px 30px;
  }

  .main-content-flex {
    display: block;
    height: unset;
  }

  .side-bar {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  }

  .top-bar {
    display: none;
  }

  .side-bar-header {
    display: none;
  }

  .side-bar-small {
    display: flex !important;
    position: sticky;
    top: 0;
    width: 100%;
    background-color: inherit;
  }

  #main-menu-ul {
    max-height: 0;
    transition: max-height 0.3s ease;
  }

  .page-main-content {
    padding: 15px;
  }

  .flex-header {
    display: block;
    padding: 0;
  }

  .header-text {
    border-bottom: 1px solid #f2f2f2;
    padding: 15px;
  }

  .search-table {
    width: 100%;
    padding: 15px;
  }

  .search-table input {
    width: 100%;
  }

  .data-flex-container,
  .general-flex-container {
    display: flex;
    flex-wrap: wrap;
  }

  .data-flex {
    width: 48%;
    margin: 5px auto;
  }

  .general-flex {
    width: 100%;
    margin: 10px auto;
  }

  ::webkit-scrollbar {
    display: none;
  }

  .logo {
    font-size: 24px;
  }

  .data-flex {
    padding: 20px 15px;
    flex-wrap: wrap-reverse;
  }

  .data-icon-div {
    padding: 0;
    width: 100%;
    border-radius: 0;
    font-size: 10px;
    margin: 0;
    text-align: center;
    border: none;
  }

  .data-icon-div .material-icons {
    font-size: 30px;
  }

  .data {
    padding: 10px;
    margin: 0;
    text-align: left;
    border:none;
    text-align: center;
    width: 100%;
  }

  .data-flex-container {
    margin: 10px 0 0;
  }

  .general-flex-container {
    margin: 0;
  }

  .general-flex td {
    font-size: 13px !important;
    font-weight: normal !important;
    padding: 10px;
    background: white !important;
    border-bottom: 1px solid #f2f2f2;
  }

  td.dark-text {
    font-weight: 500 !important;
  }

  .profile-div {
    display: block;
  }

  .img-container {
    width: 20%;
    padding: 10px 0;
  }

  .inputs-div {
    display: block;
  }

  .input-group {
    width: 100%;
  }
}
