@tailwind base;
@tailwind components;
@tailwind utilities;

@import url("https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Baskervville:ital@0;1&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Qwitcher+Grypen:wght@400;700&family=Shadows+Into+Light&display=swap");

@layer base {
    :root {
        --off-white: #faf9f8;
        --creme: #d8c9b8;
        --sagegreen: #698951;
        --deep-pistachio-g: #0f4414;
        --dark-olive-g: #1a2911;
    }

    *,
    *::before,
    *::after {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html,
    body {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        /* font-family: "Ubuntu", system-ui; */
        font-family: "Josefin Sans", sans-serif;
        /* font-family: "Baskervville"; */
        background-color: var(--off-white);
        color: var(--dark-olive-g);
        line-height: 1.5;
        overflow-x: hidden;
        overflow-y: auto;
    }
}

@layer components {}

.custom-link {
    position: relative;
    text-decoration: none;
    transition: color 0.5s;
}

.custom-link::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--sagegreen);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s;
}

.custom-link-clr::after {
    background: var(--dark-olive-g);
}

.custom-link-clr:hover {
    color: var(--dark-olive-g) !important;
}

.custom-link:hover {
    color: var(--sagegreen);
}

.custom-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    text-decoration: none;
    background: var(--dark-olive-g);
    border: none;
    color: var(--off-white);
}

.btn::before {
    content: "";
    position: absolute;
    overflow: hidden;
    top: var(--y);
    left: var(--x);
    width: 0;
    height: 0;
    background: var(--sagegreen);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition:
        width 0.5s,
        height 0.5s;
}

.btn:hover::before {
    width: 500px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 1;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-clr);
}

.no-style {
    position: static;
    text-decoration: none;
    transition: none;
}

.no-style::after {
    content: none;
}

.no-style:hover {
    /* color: inherit; */
}

/* End Initial Setup */

/* navbar */
header img {
    width: 13%;
}

@media (max-width: 575.98px) {
    header img {
        width: 35%;
    }
}

/* personal details */
.personal-d {
    background: url(/static/hibiscus-assets/images/hero-bg.pngs) no-repeat center center;
    position: relative;
    background-size: cover;
    width: 100vw;
    min-height: 100vh;
    /* z-index: -3; */
    /* background-color: var(--sagegreen); */
}

.personal-d::before,
.sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.sidebar::before {
    height: 155%;
}

.bg-overlay-content,
.sidebar-content {
    position: relative;
    z-index: 2;
}

.glass {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.2);
}

.required::after {
    content: " *";
    color: red;
    font-weight: bold;
    font-size: 1.5em;
}

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

.signup:hover {
    background-color: var(--sagegreen);
    color: #ffffff;
}

/* dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--off-white);
    border: 1px solid var(--dark-olive-g);
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    padding: 0.5rem 0;
    top: calc(100% + 0.5rem);

    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content {
    display: none;
}

.dropdown-content.active {
    display: block;
}

.dropdown-content label {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    color: var(--dark-olive-g);
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.dropdown-content label:hover {
    background-color: var(--creme);
    color: var(--dark-olive-g);
}

.dropdown-content input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.dropdown-content input[type="checkbox"]:checked+span::before {
    content: "✔";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--sagegreen);
}

.dropdown-content input[type="checkbox"]:checked+span {
    color: var(--sagegreen);
    font-weight: 600;
}

.dropdown-content input[type="checkbox"]:checked~label {
    background-color: var(--sagegreen);
    color: var(--sagegreen);
}

.dropdown input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    background-color: var(--off-white);
}

.dropdown input[type="text"]:focus {
    outline: none;
    /* border-color: var(--dark-olive-g); */
    box-shadow: 0 0 0 2px rgba(26, 41, 17, 0.5);
}

.therapist-profile {
    border: 1px solid #fff;
    border-radius: 10%;
    -o-object-fit: cover;
    object-fit: cover;
}

.bounce-in-right {
    animation: bounce-in-right 2s ease;
}

@keyframes bounce-in-right {
    0% {
        opacity: 0;
        transform: translateX(2000px);
    }

    60% {
        opacity: 1;
        transform: translateX(-30px);
    }

    80% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0);
    }
}

/* aside */
/* aside scroll bar */
.asidebar::-webkit-scrollbar {
    width: 8px;
}

.asidebar::-webkit-scrollbar-track {
    background: var(--off-white);
}

.asidebar::-webkit-scrollbar-thumb {
    background-color: var(--dark-olive-g);
    border-radius: 10px;
    border: 3px solid var(--off-white);
}

.asidebar::-webkit-scrollbar-thumb:hover {
    background-color: var(--sagegreen)
}

.asidebar {
    background: url(/static/hibiscus-assets/images/hero-bg.png) no-repeat center center;
    position: relative;
    background-size: cover;
}

.asidebar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.aside-content {
    position: relative;
    z-index: 2;
}

/* aside text glow */
.beta-badge {
    position: relative;
    font-size: 1em;
    letter-spacing: 15px;
    color: #0e3742;
    text-transform: capitalize;
    width: 100%;
    text-align: left;
    line-height: 0.7em;
    outline: none;
    animation: animate 3s linear infinite;
    padding: 1em 1em;
}

@keyframes animate {
    100% {
        color: #0e3742;
        text-shadow: none;
    }

    100% {
        color: #fff;
        text-shadow:
            0 0 20px var(--sagegreen),
            0 0 20px var(--sagegreen),
            0 0 20px var(--sagegreen),
            0 0 20px var(--sagegreen),
            0 0 20px var(--sagegreen),
            0 0 20px var(--sagegreen),
            0 0 20px var(--sagegreen);
    }
}

/* professional */
.profession-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.profession-form .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.profession-form .dropdown-content label {
    display: block;
    padding: 8px;
    cursor: pointer;
}

.profession-form .dropdown-content label:hover {
    background-color: #f1f1f1;
}

@media (max-width: 768px) {
    .profession-form {
        grid-template-columns: 1fr;
    }

    .asidebar::before {
        height: 200%;
    }

    aside {
        width: 100%;
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 200;
        background: #f1f1f1;
    }

    aside.active {
        display: block;
    }

    main {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profession-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .therapist-profile {
        width: 50px;
        height: 50px;
    }

    .profession-form h1 {
        font-size: 1.5rem;
    }

    .profession-form label {
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    .asidebar::before {
        height: 200%;
    }
}

#hamburger {
    display: block;
    cursor: pointer;
    top: -3em;
    margin: 5em 0em;
    position: fixed;
}

@media (min-width: 768px) {
    #hamburger {
        display: none;
    }
}

#nav-menu.active {
    display: block;
    width: 100%;
}

aside .asidebar {
    max-height: 100vh;
    overflow-y: auto;
}

.main-content {
    width: 83%;
}

@media (max-width: 768px) {
    .main-content {
        width: 100%;
    }
}

/* end professional */
/* #nav-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1000;
}

#nav-menu.active {
  transform: translateX(0);
  width: 100%;
}

@media (max-width: 768px) {
  aside {
    width: 100%;
    max-width: 100em;
  }

  #nav-menu.active {
    transform: translateX(0);
    width: 100%;
    height: 120%;
  }
}

#hamburger {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1100;
}

#hamburger-icon.hidden {
  display: none;
} */
/* overview */
.typing-effect-box {
    white-space: nowrap;
    position: relative;
    background-color: var(--creme);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    text-align: left;
}

.custom-cursor {
    display: inline-block;
    width: 2px;
    animation: blink 1s step-end infinite;
    position: absolute;
    right: 0;
}

.custom-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: left;
    position: relative;
}

@media (max-width:768px) {
    .custom-list-item {
        font-size: 1.5em;
    }
}

/* .custom-list-item::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: -30px;
  width: 2px;
  background-color: var(--sagegreen);
  z-index: 0;
} */

.custom-list-icon {
    margin-right: 20px;
    color: var(--deep-pistachio-g);
    /* color: red; */
    font-size: 1.5em;
    position: relative;
    z-index: 1;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

#progress-bar-container {
    position: relative;
}

#progress-bar {
    transition: width 2s ease-in-out;
}

#progress-text {
    transition: opacity 1s ease-in-out;
}

@keyframes progressAnimation {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .typing-effect-box {
        font-size: 12px;
    }
}

@media (max-width: 1024px) {
    .typing-effect-box {
        font-size: 10px;
    }
}

.carousel-container {
    cursor: grab;
}

.carousel-container:active {
    cursor: grabbing;
}

#prev {
    left: -30px;
    /* Push it outside the carousel content */
}

#next {
    right: -30px;
    /* Push it outside the carousel content */
}
.qwitcher-font {
            font-family: "Shadows Into Light", cursive;
        }

		/* start-end time scrollbar */
    .ui-timepicker-wrapper {
      position: absolute;
      background-color: white;
      border: 1px solid #cbd5e0;
      border-radius: 0.25rem;
      max-height: 200px;
      overflow-y: auto;
      z-index: 1000;
    }

    .ui-timepicker-list li {
      padding: 8px 12px;
      cursor: pointer;
    }

    .ui-timepicker-list li:hover {
      background-color: #dfdede;
    }

    .ui-timepicker-wrapper::-webkit-scrollbar {
      width: 6px;
    }

    .ui-timepicker-wrapper::-webkit-scrollbar-track {
      background: #f1f1f1;
    }

    .ui-timepicker-wrapper::-webkit-scrollbar-thumb {
      background: var(--sagegreen);
      border-radius: 3px;
    }
	/* scrollbar */
    .form-scrollbar::-webkit-scrollbar {
        width: 2px;
    }

    .form-scrollbar::-webkit-scrollbar-track {
        background: var(--off-white);
    }

    .form-scrollbar::-webkit-scrollbar-thumb {
        background-color: var(--deep-pistachio-g);
        border-radius: 10px;
    }

    .form-scrollbar::-webkit-scrollbar-thumb:hover {
        background-color: var(--deep-pistachio-g);
    }

    #carousel-content {
        display: flex;
        transition: transform 0.5s ease;
    }
