*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #134e11;
    --secondary-color: #839e20;
    --background-color: #f4f7f9;
    --text-color: #494646;
    --nav-background-color: #fcfcfc;
    --highlight-color: #f4ffcd;
    --border-color: #dbe6dc;
    --border-color-2: #b2b8b3;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 16px;
    line-height: 1.2;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden !important;
    box-sizing: border-box;
    max-width: 1024px;
}

.left-side div {
    margin-bottom: -5px !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    padding: 0.6rem 1.2rem;
    border: none;
    width: 100%;
    border-radius: 5px;
}

button {
    cursor: pointer;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    width: 100%;
    position: relative;
}

nav {
    background-color: var(--nav-background-color);
    color: var(--primary-color);
    border-top: var(--border-color) 2px solid;
    padding: 0.2rem 0.6rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
}

nav div {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.7rem;
    border-radius: 5px;
    cursor: pointer;
}

nav div:nth-child(2) {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 1rem;
    position: relative;
    bottom: 2.4rem;
    border: var(--border-color) 5px solid;
}

nav div span {
    font-size: 0.6rem;
}

nav div i {
    font-size: 1.2rem;
}

nav div:nth-child(2) span {
    display: none;
}

nav div:nth-child(2) i {
    font-size: 1.5rem;
    color: white;
}

.bg-high {
    background-color: #c2f1af !important;
    border-color: var(--primary-color) !important;
}

.cl-high {
    color: var(--primary-color) !important;
}

nav div:nth-child(2).active {
    background-color: #c2f1af;
    border-color: var(--primary-color);
}

nav div:nth-child(2).active i {
    color: var(--primary-color);
}

nav div.active {
    background-color: var(--highlight-color);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--background-color);
    z-index: 10;
}

header div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
}

header div img {
    padding: 0rem;
    margin-right: -0.5rem;
}

header div span {
    font-size: 0.6rem;
    color: var(--primary-color);
}

header div i {
    font-size: 1.3rem;
    background-color: var(--secondary-color);
    padding: 0.5rem;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    margin-right: 0.5rem;
}

#wrapper {
    line-height: normal;
    position: absolute;
    top: 5rem;
    padding: 0.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.8rem;
    gap: 3px;
    width: 100%;
}

.background-login {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    object-fit: fill;
}

@media (min-width: 768px) {
    .background-login img {
        width: 100%;
    }
}

login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-inline: 1rem;
    gap: 1rem;
    overflow: hidden;
    height: 80vh;
    z-index: 2;
}

login form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 1rem;
    background-color: rgba(61, 156, 16, 0.2);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    color: white;
    z-index: 2;
}

login img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

login p {
    color: rgb(177, 177, 177);
}

login form div {
    font-size: 2rem;
    font-weight: 600;
    color: #b8f3c0;
}

login form span {
    font-size: 0.8rem;
    font-style: italic !important;
}

spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: spin 0.7s linear infinite;
    vertical-align: sub;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 60px;
    background-color: white;
    min-width: 120px;
    z-index: 1;
    right: 40px;
    border-radius: 5px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.8rem;
}

.dropdown-content a:hover {
    background-color: #ddd;
    border-radius: 5px;
}

.show {
    display: block;
}

#map {
    height: 38vh;
    position: relative;
    top: 0;
    z-index: 11;
}

.gm-style-cc {
    display: none !important;
}

.logo-adaro {
    background-color: white;
    padding: 0.45rem;
    margin: 0.5rem;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 3px rgba(60, 64, 67, .3), 0 4px 8px rgba(60, 64, 67, .15);
}

[aria-label="Open this area in Google Maps (opens a new window)"] {
    display: none !important;
}

.gm-ctrl-icon-only {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(60, 64, 67, .3), 0 4px 8px rgba(60, 64, 67, .15);
    padding: 10px;
    margin: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 88px;
}

.gm-ctrl-icon-only:hover {
    background: #f8f9fa;
}

.gm-style-iw.gm-style-iw-c,
.gm-style-iw-tc::after {
  overflow: hidden !important;
  box-shadow: none !important;
  padding-bottom: 20px !important;
}

.gm-style-iw-d {
  overflow: hidden !important;
  margin-top: -20px !important;
}

.attendanceContainer {
    background-color: white;
    position: absolute;
    top: 28vh;
    bottom: 0;
    width: 100%;
    z-index: 12;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 1px 3px rgba(60, 64, 67, .3), 0 4px 8px rgba(60, 64, 67, .15);
    font-size: 0.9rem !important;
    overflow-y: auto !important;
}

.attCon {
    height: 80%;
    overflow-y: auto;
    padding: 1.5rem;
}

.today-banner {
    font-weight: 700;
    border: var(--border-color-2) 1px solid;
    padding: 0.2rem 0.3rem;
    max-width: 65%;
    text-align: center;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    background-color: #d5fad3;
    color: var(--primary-color);
}

.clock-banner {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border: var(--border-color-2) 1px solid;
    font-size: 0.8rem;
    gap: 5px;
    line-height: 0.5rem;
    margin-top: -1px;
    position: relative;
    border-bottom-right-radius: 7px;
    border-bottom-left-radius: 7px;
}

.clock-banner::after {
    content: "";
    position: absolute;
    width: 1px;
    height: 90%;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--border-color-2);
}

.clock-banner div {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.clock-banner div div {
    display: flex;
    flex-direction: column;
}

.clock-banner div div i {
    font-size: 1.5rem;
    background-color: #cce5f3;
    padding: 0.4rem;
    border-radius: 50%;
    color: #004ba1;
}

.clock-banner div div span {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-color);
}

.location-banner,
.note-banner label {
    margin-block: 0.45rem;
    font-weight: 700;
}

.sel-loc-banner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sel-loc-banner div {
    border: var(--border-color-2) 1px solid;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    border-radius: 7px;
}

.sel-loc-banner div span {
    font-size: 0.6rem;
    font-weight: normal !important;
}

.sel-loc-banner div.active {
    background-color: #d5fad3;
    color: var(--primary-color);
    font-weight: 500;
}

.coordinat-maps {
    font-size: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-block: 0.5rem;
}

.gm-ui-hover-effect {
    outline: none !important;
}

.button-banner {
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hidden {
    display: none !important;
}

.button-banner #btnCheckIn {
    background-color: #1ed417;
    font-weight: 600 !important;
}

.button-banner #btnCheckIn:hover {
    background-color: #5dc259;
}

.button-banner #btnCheckIn:active {
    background-color: #287c25;
}

.button-banner #btnCheckOut {
    background-color: #e03019;
    font-weight: 600 !important;
    color: white;
}

.button-banner #btnCheckOut:hover {
    background-color: #c29559;
}

.button-banner #btnCheckOut:active {
    background-color: #7c4c25;
}

.button-banner #btnIzin {
    background-color: #17d4bb;
    font-weight: 600 !important;
}

.button-banner #btnIzin:hover {
    background-color: #59c2b1;
}

.button-banner #btnIzin:active {
    background-color: #257c70;
}

#userPhoto {
    width: 36vw;
}

.photo-container {
    width: 100%;
    display: flex;
    align-items: start;
    gap: 10px;
    margin-top: 0.5rem;
}

.skeleton {
  background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  min-height: 50px; /* tinggi minimum agar skeleton terlihat */
  position: relative;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.divider {
    position: relative;
    height: 20vh;
    color: transparent;
}