/*Font import*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/*Global variables and global styling*/
:root {
  --primary-color: #f9edfa;
  --secondary-color-1: #2f004f;
  --secondary-color-2: #58078f;
  --secondary-color-3: #790faf;
  --secondary-color-4: #9b00e9;
  --black: #181818;
  --muted: #9f9f9f;
  --font-primary: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-primary);
  animation: 0.5s page-enter cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.page-exit {
  animation: 0.5s page-exit ease-in forwards;
}

/*Global font styling*/
.bold {
  font-family: var(--font-primary);
  font-weight: 700;
}

.italic {
  font-family: var(--font-primary);
  font-style: italic;
  font-weight: 400;
}

.bold-italic {
  font-family: var(--font-primary);
  font-style: italic;
  font-weight: 700;
}

.semibold {
  font-family: var(--font-primary);
  font-weight: 600;
}

.medium {
  font-family: var(--font-primary);
  font-weight: 500;
}

.light {
  font-family: var(--font-primary);
  font-weight: 300;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 20px;
}

h5 {
  font-size: 16px;
}

h6 {
  font-size: 14px;
}

p {
  font-size: 16px;
}

/*Animation - Landing*/
@keyframes zoom {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.zoom-animation {
  animation: 0.8s zoom cubic-bezier(0.37, 0, 0.63, 1);
}

/*Animation - Between pages*/
@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-exit {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.dissolve-animation {
  animation: dissolve 0.6s ease-out forwards;
}

/*Button styling*/
button {
  width: 100%;
  margin: 2px;
  padding: 3px 0px;
  border: 5px;
  border-radius: 3px;
  background-color: var(--secondary-color-1);
  border-color: var(--secondary-color-3);
  color: var(--primary-color);
  transition: background-color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

button.light {
  width: 100%;
  margin: 2px;
  padding: 2px 0.5rem;
  border: 5px;
  background-color: var(--primary-color);
  border-radius: 3px;
  border-width: 1px;
  border-style: solid;
  border-color: var(--secondary-color-2);
  color: var(--secondary-color-1);
  transition: background-color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

button.light:hover {
  background-color: var(--secondary-color-1);
  color: var(--primary-color);
  transform: scale(1.02);
}

button:hover {
  background-color: var(--secondary-color-4);
  transform: scale(1.02);
}

/*Link styling*/
a:hover {
  color: var(--secondary-color-3);
  transform: scale(1.02);
}

body.contrast-bg {
  background: #2f004f;
  min-height: 100vh;
}

/*Toggle switch styling*/
/*Default (off)*/
.form-check-input[type="checkbox"] {
  width: 3rem;
  height: 1.5rem;
  background-color: #ccc;
  border-color: #ccc;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/*Hover*/
.form-check-input[type="checkbox"]:hover {
  background-color: #b0b0b0;
  border-color: #b0b0b0;
}

/*On*/
.form-check-input[type="checkbox"]:checked {
  background-color: #3aa801;
  border-color: #3aa801;
}

/*Toggled+hover*/
.form-check-input[type="checkbox"]:checked:hover {
  background-color: #4dd980;
  border-color: #4dd980;
}

/*Gauge styling*/
.gauge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;

  canvas {
    width: 340px;
    height: 180px;
  }
}

.gauge-value {
  position: absolute;
  bottom: 24px;
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color-1);
}

.gauge-unit {
  font-size: 1.8rem;
  font-weight: 400;
}

.gauge-label {
  font-size: 13px;
  color: var(--secondary-color-1);
  margin-top: 4px;
}

/*Avatar css*/
.avatar-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background-color: #8e8b8b;
  color: #3f3f3f;
}

/*Sidebar*/
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  padding: 20px;
  flex-shrink: 0;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 9%, rgba(47, 0, 79, 0.76) 40%, rgba(47, 0, 79, 0.95) 70%, rgba(47, 0, 79, 1) 100%);

  button {
    background-color: var(--primary-color);
    color: var(--secondary-color-1);
    border-radius: 10px;
    padding: 10px 10px;
    height: 50px;
    width: 50px;

    i {
      font-size: 24px;
    }
  }

  h1 {
    margin-bottom: 0px;
  }

  color: var(--primary-color);
}

.offcanvas {
  width: 100px !important;
  background-color: var(--primary-color);

  .logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
  }

  .team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
  }

  .offcanvas-body button {
    width: 50px;
    height: 50px;
    border-radius: 10px;

    i {
      font-size: 24px;
    }

    fa {
      font-size: 24px;
    }
  }

  .offcanvas-footer {
    display: flex;
    justify-content: center;
    align-items: center;

    img {
      width: 5rem;
    }
  }
}

.offcanvas.offcanvas-end {
  width: 30vh !important;

  .avatar-icon {
    width: 20vh;
    height: 20vh;
  }

  .email-limit {
    width: 50vh;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  button {
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 10px;
  }
}

/*Profile Settings Page*/
.page-title {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--primary-color);
  margin-bottom: 0;
}

.page-title h1 {
  margin-bottom: 0;
}

.logout-btn {
  padding: 10px 24px !important;
  width: auto !important;
  border-radius: 8px !important;
  background-color: var(--primary-color) !important;
  color: var(--secondary-color-1) !important;
  border: 2px solid var(--secondary-color-1) !important;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-left: auto;
}

.logout-btn:hover {
  background-color: var(--secondary-color-1) !important;
  color: var(--primary-color) !important;
}

.profile-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
}

.profile-main-card {
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 8px 24px rgba(47, 0, 79, 0.15);
  max-width: 1100px;
  width: 100%;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 2px solid #e8e8e8;
}

.profile-avatar {
  width: 140px !important;
  height: 140px !important;
  font-size: 56px !important;
  font-weight: 700;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #d9d6d6 !important;
  color: var(--secondary-color-1) !important;
  flex-shrink: 0;
}

.profile-user h2 {
  color: var(--secondary-color-1);
  margin-bottom: 8px;
  font-size: 32px;
}

.profile-user p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 0;
}

.profile-content {
  width: 100%;
}

.info-card {
  background: #f8f9fa;
  border-radius: 14px;
  padding: 30px;
  border: 1px solid #e8e8e8;
}

.info-card-header {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-card-header h3 {
  color: var(--secondary-color-1);
  margin-bottom: 0;
  font-size: 22px;
  font-weight: 700;
}

.info-action-btn {
  padding: 10px 20px !important;
  width: auto !important;
  border-radius: 8px !important;
  background-color: white !important;
  color: var(--secondary-color-1) !important;
  border: 2px solid #d0d0d0 !important;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap;
  height: 42px;
}

.info-action-btn:hover {
  background-color: #f0f0f0 !important;
  border-color: var(--secondary-color-1) !important;
}

.info-field {
  margin-bottom: 22px;
}

.info-field:last-child {
  margin-bottom: 0;
}

.info-field .label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.info-field .field-value {
  background: white;
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--secondary-color-1);
  font-weight: 500;
  border: 1px solid #e8e8e8;
  font-size: 15px;
}

.schedule-card {
  background: #f8f9fa;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.schedule-item {
  background: white;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
}

.schedule-item p {
  margin-bottom: 4px;
  font-size: 15px;
}

.schedule-item .subject {
  color: var(--secondary-color-1);
  font-weight: 600;
}

.schedule-item .light {
  color: var(--muted);
  font-weight: 300;
}