root {
  --maincolor: #ffffff;
  --subcolor: #eff1ff;
  --fontcolor: #979797;
  --labelcolor: #f07d0e;
}

* {
  padding: 0px;
  margin: 0px;
  font-family: "Nunito", sans-serif;
}

/* login */
.loginBackground {
  display: flex;
  background-image: linear-gradient(#ffff, #060451);
  height: 100vh;

  justify-content: center;
  align-items: center;
}

.login {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 300px; /* Ensures it doesn't get too wide */
}

.changePassword {
  /*  width: 400px;
    height: 80%;
    background-color: #ffff;
    margin: auto;
    border-radius: 01rem;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;*/

  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 300px; /* Ensures it doesn't get too wide */
}

.changePassword .userName,
.Password {
  margin: 1rem 0rem;
}

.logoImage {
  display: block;
  margin: 0 auto 20px;
  max-width: 40%;
  height: auto;
}

.credential {
  display: flex;
  flex-direction: column;
}

.credential div {
  margin-bottom: 15px;
}

.credential label {
  display: block;
  margin-bottom: 5px;
}

.cname,
.cpassword {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.userName,
.Password {
  margin: 1.5rem 0px;
}

.userName input,
.Password input {
  padding: 0.2rem 0rem;
  width: 100%;
  border-radius: 5px;
  border: none;
  background-color: #b8bdc961;
  height: 40px;
}

.userName input,
.Password input[placeholder] {
  box-sizing: border-box;
  padding: 0.5rem;
}

.userName input:focus,
.Password input:focus {
  border: none;
  outline: #d9dee9 1px solid;
}

.loginButton {
  padding: 10px;
  background: #103b73;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.loginButton:hover {
  background-color: #b8bdc961;
  color: #ffff;
}

.main {
  display: flex;
  height: calc(100vh - 40px);
}

.side-bar {
  width: 18%;
  height: 100vh;
  background-color: #103b73;
  height: calc(100vh - 40px);
  box-sizing: border-box;
  padding: 0px 20px;
  display: block;
}
/* profile style */
.profile {
  margin-top: 50px;
  width: 100%;
  border-radius: 2px;
  color: #ffff;
}

.profile-picture {
  background-image: url(/IMG/DSC_5309.jpg);
  background-position: center;
  background-size: cover;
  border-radius: 100%;
  width: 100px;
  height: 100px;
  padding: 10px;
  box-shadow: 0px 0px 5px 5px #1760bf;
}

.account h3 {
  margin-bottom: 20px;
}

.account p {
  margin-bottom: 15px;
  font-size: 0.8rem;
}

#account-des {
  font-style: italic;
  font-family: "Segoe UI";
  font-size: 0.6rem;
}

.profile-name {
  margin-top: 50px;
}

/* Nav style */

.nav-menu {
  list-style: none;
  padding: 1rem;
  box-sizing: border-box;
  margin-top: 40px;
  background-color: rgba(28, 142, 242, 0.1);
  border-radius: 10px;
  margin-bottom: 20px;
  width: max-content;
}

.menu-link {
  text-decoration: none;
  color: #ffff;
  padding: 0.5rem;
}

.nav-list {
  cursor: pointer;
  cursor: pointer;
  padding: 0.8rem 0.5rem;
}

.flex {
  display: flex;
  font-size: 15px;
}

.nav-list:hover {
  background-color: #5470b5;
}

.nav-list:has(li) {
  padding-top: 25px;
  padding: 10px;
}

#icon {
  font-size: 15px;
  color: #ffff;
  display: grid;
  align-self: center;
}

.icon a {
  text-decoration: none;
  color: #ffff;
}

/* Settings style */
.sttings {
  height: 20%;
  margin-top: 20px;
}

#setting-icon {
  font-size: 20px;
  margin-top: 20px;
  color: #ffff;
}

[data-nav="settings"] {
  font-size: 20px;
  padding: 5px;
  background-color: rgba(28, 142, 242, 0.1);
  border-radius: 20px;
  color: #ffff;
  margin-top: 20px;
  border: none;
}

/* main page stle */
/* content stle */
#loader {
  background-image: url(/IMG/loader.gif);
  width: 100%;
  height: 5px;
  background-position-y: 100px;
  display: none;
}

.content {
  width: 90%;
  box-sizing: border-box;
  padding: 0px 40px;
  background-color: var(--maincolor);
  height: 100vh;
}

.content-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;

  height: 50px;
  box-sizing: border-box;
  padding: 10px;
}
.profile-icons {
  width: 100%;

  height: max-content;
  display: flex;
  flex-direction: row-reverse;
  gap: 0px 20px;
  box-sizing: border-box;
  padding: 10px;
}
.profile-icons i {
  cursor: pointer;
}
#profile-menu {
  position: absolute;
  right: 100px;
  background-color: #d7d7d7;
  height: 50px;
  width: 100px;
  padding: 10px;
  user-select: none;
}
#passwrd-change {
  position: absolute;
  width: 100vw;
  height: 100vh;
  left: 0px;
  top: 0px;
  background-color: #eff1ff;
}
#unread-icon{
  color: var(--subcolor);
  position: relative;
  right: -73px;
  background-color: var(--labelcolor);
  font-size: 15px;
}
#passwordmian {
  margin-top: 100px;
}
#passwordmian div {
  margin: 20px 0px 20px 20px;
}
#passwordmian input {
  width: 80%;
  outline: none;
  border: none;
  height: 30px;
  box-sizing: border-box;
  padding: 10px;
}
#passwordmian label {
  color: var(--fontcolor);
  display: block;
  font-size: 0.8rem;
  font-style: italic;
}
#password-button {
  display: flex;
  margin: 20px;
}
.content-header h2 {
  font-weight: bolder;
}
#pchange {
  list-style-type: none;
  color: var(--buttonhover);
}
#pchange li {
  cursor: pointer;
  border-bottom: 0.1px #ffffff solid;
  font-size: 0.7rem;
  margin: 5px 0px;
}
#notification {
  position: absolute;
  right: 10px;
}
#notification ul {
  list-style-type: none;
  height: 200px;
  width: 300px;
  overflow-y: scroll;
  background-color: var(--buttonhover);
  color: var(--subcolor);
  box-sizing: border-box;
  padding: 10px;

}

.notification-list {
  font-size: 0.7rem;
  margin: 10px 0px;
  cursor: pointer;
 
}

.read-notification{
  font-weight: 100;
}
.unread-notification{
  font-weight: bolder;
 
}
.greetings {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

#inner-section {
  /* background-color: var(--subcolor); */
  height: calc(90vh - 60px);
  border-radius: 10px;
  padding: 15px;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.love {
  display: flex;
  justify-content: center;
}
/* dash board */
.dash {
  margin-top: 50px;
  width: 80%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  justify-content: center;
}

.dash_items {
  display: flex;
  justify-content: center;
  flex-direction: column;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
  border-radius: 8px; /* Optional for rounded corners */
  background-color: #ffffff; /* Ensure the card stands out */
}
.dash_items:hover {
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px); /* Gives a lifted feel */
  transition: all 0.2s ease-in-out; /* Smooth animation */
}

.dash_items p {
  margin-left: 50px;
}

.dash_items div,
.dash_items p {
  display: flex;
  box-sizing: border-box;
  justify-content: space-between;
  font-size: 1rem;
  padding: 1rem;
  align-items: center;
  color: #eeeeee96;
}
.dash_items p {
  color: #27292c;
}
#newTask,
#completedTask,
#cancelTask,
#pendingtask,
#expiredtask,
#monthlytask {
  padding: 0.5rem;
  border-radius: 100%;
}
#newTask {
  background-color: #3ebf95;
}
#completedTask {
  background-color: #8d77fd;
}
#cancelTask {
  background-color: #de1c22;
}
#pendingtask {
  background-color: #ff7f3e;
}
#expiredtask {
  background-color: #bf3624;
}
#monthlytask {
  background-color: #346aff;
}
.Titems {
  padding: 0px 20px 10px 20px;
}

.submenu {
  display: none;
  background-color: #b2c6d8;
  padding: 0px 5px;
  list-style: none;
}

.submenu li {
  line-height: 30px;
}

.submenu a {
  text-decoration: none;
  color: #ffff;
  padding: 0px 2px;
  font-size: 12px;
}

.submenu a:hover {
  background-color: #f07d0e;
}

.footer {
  height: 40px;
  background-color: var(--subcolor);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  padding: 0px 10px;
}

.support {
  background-color: #f07d0e;
  padding: 10px;
}

.support li {
  list-style: none;
}

.support li a {
  text-decoration: none;
  color: #ffffff;
}
/* Extra extra large */
@media (max-width: 1400px) {
}
/* Media Query for Laptops and Desktops */
@media (max-width: 1200px) {
  .side-bar {
    width: 18%;
  }

  .profile-picture {
    width: 50px;
    height: 50px;
  }

  .profile-name {
    font-size: 0.8rem;
  }

  .account p {
    font-size: 0.5rem;
  }

  .account-email {
    font-size: 0.5rem;
  }

  #icon {
    font-size: 10px;
  }

  #nav-items {
    /* display: none; */
    font-size: 10px;
    padding: 0px;
  }
  /*
    #inner-section {
        height: calc(85vh - 100px);
    }*/

  .submenu {
    overflow: hidden;
  }

  .submenu a {
    font-size: 10px;
  }
}

/* Media Query for Tablets Ipads portrait mode */
@media (max-width: 992px) {
  .dash {
    gap: 20px;
    grid-template-columns: 1fr 1fr;
  }
  .dash_items p {
    margin-left: 10px;
  }

  #newTask,
  #completedTask,
  #cancelTask {
    padding: 0.5rem;
  }

  .Titems {
    font-size: 0.8rem !important;
  }

  .dash_items div,
  .dash_items p {
    padding: 0.5rem;
  }

  .side-bar {
    width: 15%;
  }
  .menu-link {
    display: none;
  }

  .profile-picture {
    width: 50px;
    height: 50px;
  }

  .profile-name {
    font-size: 0.8rem;
  }

  .account p {
    font-size: 0.5rem;
  }

  .account-email {
    font-size: 0.5rem;
  }

  #icon {
    font-size: 10px;
  }
  .nav-menu {
    width: 100%;
  }
  #nav-items {
    display: none;
    font-size: 10px;
    padding: 0px;
  }

  .nav-list {
    margin-bottom: 0px;
  }
  .submenu {
    position: relative;
    left: 2px;
    top: -2px;
  }

  #inner-section {
    height: calc(90vh - 100px);
  }

  .logoImage {
    width: 5rem;
  }
  .has-n {
    display: flex;
    height: 0px;
  }
  .submenu:hover {
    position: relative;
    top: 9px;
    left: 10px;
    height: fit-content;
  }

  .sub-m {
    display: flex;
  }
}

/* Media Queries for Responsive Adjustments */
@media (max-width: 768px) {
  .login {
    padding: 10px;
  }

  .logoImage {
    margin-bottom: 10px;
  }

  .credential div {
    margin-bottom: 10px;
  }
}

/* Media Query for low resolution  Tablets, Ipads */
@media (max-width: 576px) {
  .account h3 {
    font-size: 0.3rem;
  }
  .dash {
    gap: 10px;
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
  .dash_items p {
    align-self: self-end;
  }
  .content {
    padding: 0 15px;
  }
  .submenu {
    position: relative;
    left: 50px;
  }
  #newTask,
  #completedTask,
  #cancelTask {
    padding: 0.5rem;
  }

  .Titems {
    font-size: 0.8rem !important;
  }

  .dash_items div,
  .dash_items p {
    padding: 0.5rem;
  }

  .side-bar {
    width: 20%;
    padding: 0px 5px;
  }

  .profile-picture {
    width: 20px;
    height: 20px;
    /* display: none; */
  }

  .profile-name {
    font-size: 0.5rem;
  }

  .account p {
    font-size: 0.3rem;
  }

  #account-des {
    font-size: 0.3rem;
  }

  #icon {
    font-size: 10px;
  }

  .nav-menu {
    padding: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45px;
  }

  .menu-link {
    display: none;
  }

  .rep.flex {
    cursor: pointer;
  }

  #nav-items {
    display: none;
    font-size: 10px;
    padding: 0px;
  }

  .nav-list {
    margin-bottom: 0px;
  }

  #inner-section {
    height: calc(90vh - 100px);
  }

  .logoImage {
    width: 5rem;
  }

  .userName input,
  .Password input {
    height: 40px;
  }

  .content-header {
    margin-top: 20px;
  }

  .content-header h1 {
    font-size: 1.5em;
  }
}
