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

.font-login {
    font-family: "MMC", sans-serif
}

.input-form {
  font-family: "Inter", sans-serif;
    border: #DFE4EA solid !important;
}

.circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 96%;
  overflow: hidden;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    animation: animate 30s linear infinite;
    background: transparent; /* Remove background gradient */
    box-shadow: inset 0 0 100px rgba(144, 6, 16, 0.5); /* Inner shadow effect */
    bottom: -200px;
    left: 10%;
    width: 650px;
    height: 650px;
    animation-delay: 1s;
}

@keyframes animate {
  0% {
    transform: rotate(-30deg);
    opacity: 1;
    border-radius: 15%;
  }

  50% {
    transform: rotate(45deg);
    opacity: 1;
    border-radius: 15%;
  }

  75% {
    transform: rotate(0deg);
    opacity: 1;
    border-radius: 15%;
  }

  100% {
    transform: rotate(-30deg);
    opacity: 1;
    border-radius: 15%;
  }
}

.loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.circles-dashboard {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.circles-dashboard li {
  position: absolute;
  display: block;
  list-style: none;
  animation: animate 30s linear infinite;
  background: -moz-linear-gradient(
    top bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0) 20%
  ); /* FF3.6-15 */
  background: -webkit-linear-gradient(
    top bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(255, 255, 58, 0) 20%
  ); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(255, 255, 58, 0) 20%
  ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  left: 0;
  top: 120px;
  width: 650px;
  height: 650px;
  animation-delay: 1s;
}

.dashboard-wrapper {
    position: absolute;
    top: -100px;
    width: 95%;
    display: flex;
    justify-content: center;
    height: max-content;
}

.container-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 40px;
    max-width: 80%;
    justify-content: start;
    height: 100%;
    margin-bottom: 100px;
}

.card-dashboard-1 {
    background-image: url('/images/bg-dashboard-1.png');
    width: 360px;
    background-size: cover;
    background-position: center;
    height: 100%;
    border-radius: 12px;
}


.card-dashboard-2 {
    background-image: url('/images/bg-dashboard-2.png');
    width: 360px;
    background-size: cover;
    background-position: center;
    height: 100%;
    border-radius: 12px;
}

.card-dashboard-3 {
    background-image: url('/images/bg-dashboard-1.png');
    width: 360px;
    background-size: cover;
    background-position: center;
    height: 100%;
    border-radius: 12px;
}


.card-dashboard {
    padding: 40px 45px;
    text-align: center;
}

.card-dashboard .icon {
    margin: auto;
}

.card-dashboard h2 {
    font-size: 24px;
    font-weight: 600;
    color: #111928;
    margin-top: 40px;
    margin-bottom: 16px;
    overflow: auto;
}

.card-dashboard p {
    font-size: 14px;
    font-weight: 400;
    color: #888C98;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;

}


.app-sidebar {
    width: 250px;
    transition: width 0.3s ease;
}

.app-sidebar.collapsed {
    width: 80px;
}

.menu-item .side-menu__label {
    transition: opacity 0.3s ease;
    opacity: 1;
}

.app-sidebar.collapsed .menu-item .side-menu__label {
    opacity: 0;
}

.app-sidebar.collapsed .header-logo p {
    opacity: 0;
    width: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.app-sidebar.collapsed .side-menu__icon {
    margin-right: 0;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("/images/icon-chevron.svg");
}

.accordion-button::after {
    background-image: url("/images/icon-chevron.svg");
    rotate: 180deg;
}

.submenu-item {
  position: relative;
  padding-left: 20px;
}

.submenu-item::before {
  content: '';
  border-left: 2px solid #6F767E; 
  border-bottom: 2px solid #6F767E; 
  position: absolute;
  top: 0px;
  height: 60%;
  left: 0;
  border-bottom-left-radius: 8px;
  width: 20px;
}

.submenu-item:last-child::before {
   top: -27px;
   height: 120%;
}

side-menu__item:hover::before {
    border-color: #6F767E;
}

.switch-dashboard {
    display: flex;
    column-gap: 8px;
    background-color: #DFE4EA;
    border: 1px solid #CED4DA;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px 16px; 
    color: #111928;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.switch-dashboard:hover {
    background-color: #111928;
    color: white;
}

.switch-dashboard .icon {
    transition: filter 0.3s ease; 
}

.switch-dashboard:hover .icon {
    filter: invert(1); 
}

.main-content {
    height: 100vh;
    padding: 0px 30px !important;
    background-color: #F4F4F4;
}

.card-dashboard-detail {
    background-image: url('/images/bg-dashboard-detail.png');
    min-width: 330px;
    height: 270px;
    border-radius: 16px;
    box-shadow: 2px 2px 10px -1px #c9c6c6;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.card-dashboard-detail .title {
    max-width: 290px;
    font-size: 18px;
    font-weight: 700;
    margin-top: 20px !important;
    overflow: auto;
}

.card-dashboard-detail .description {
    max-width: 290px;
    font-size: 14px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #8899A8; 
    margin-top: 10px;
    margin-bottom: 15px;
}

.button-dashboard-detail {
    width: max-content;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    column-gap: 8px;
    padding: 12px 24px;
    border: 1px solid black;
    border-radius: 6px;
}

.button-dashboard-detail:hover {
    background-color: #111928;
    color: white;
}

.button-dashboard-detail img {
    color: red;
    width: 20px;
    height: 20px;
}

.icon-arrow {
    fill: red;
}

.button-dashboard-detail:hover .icon-arrow {
    fill: white;
}

.icon-container {
    position: relative; 
    width: 24px;
    height: 24px;
}

.icon-logout {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.default-icon {
    opacity: 1;
    visibility: visible;
}

.hover-icon {
    opacity: 0;
    visibility: hidden;
}

.logout-button:hover .default-icon {
    opacity: 0;
    visibility: hidden;
}

.logout-button:hover .hover-icon {
    opacity: 1;
    visibility: visible;
}

input::-ms-reveal,
input::-ms-clear {
    display: none;
}

/*Custom Omni Button*/
#help-omni-button {
    position: fixed;
    right: 40px;
    bottom: 40px;
    width: fit-content;
    height: fit-content;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 8px 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #25d366;
    opacity: 0.5;
}

#help-omni-button:hover {
    background-color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

#help-omni-button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

#help-omni-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 143, 255, 0.5);
    opacity: 1;
    border-color: #25d366;
}

#help-omni-button span {
    font-size: 14px;
}

.embedContainer.container {
    position: relative;
}

.embedContainer.container .refresh-btn {
    display: none;
    column-gap: 8px;
    background-color: #e9e9e9c4;
    border: 1px solid #CED4DA;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px 16px; 
    color: #656565;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 12px;
    font-family: 'Segoe UI Semilight', 'wf_segoe-ui_semilight', helvetica, arial, sans-serif;;
    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 80px);
}
.embedContainer.container .refresh-btn.show {
    display: flex;
}

.embedContainer.container .refresh-btn:hover {
    background-color: #111928;
    color: white;
}


.align-left {
    align-items: flex-start !important;
    margin-top: 1px !important;
    margin-left: 0px !important;
}

.align-mid-image {
    margin-top: -2px !important;
    margin-right: -2px !important;
}

.lightgray {
    color: #aaaaab !important;
}

    .lightgray:hover {
        color: black !important;
    }

.align-moreleft2 {
    margin-left: -2px !important;
}