@font-face {
    font-family: "Shancalluna";
    src: url("../fonts/Shancalluna_regular.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

html.preload body *,
html.preload body {
    transition: none !important;
}

html.dark-mode-preload *,
html.dark-mode-preload {
    transition: none !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #fff;
    color: #111;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e5e5e5;
    background-color: #fafafa;
    padding: 0.4rem 1rem;
    border-radius: 12px;
    width: 950px;
    height: 42px;
    font-size: 14px;
    margin-bottom: 3rem;
    position: sticky;
    top: 1rem;
    z-index: 999;
    transition: opacity .2s ease-out, transform .2s ease-out;
    will-change: opacity, transform;
}
.navbar.is-hidden {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 14px;
    color: #111;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.logo i {
    font-size: 14px;
}

.docs-link {
    color: #666;
    font-weight: 400;
    text-decoration: none;
}

.docs-link:hover {
    color: #111;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #f3f3f3;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 0 0.5rem;
    height: 28px;
    color: #999;
    margin-right: 10px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    width: 200px;
    padding: 0 4px;
}

.search-placeholder-text {
    font-size: 14px;
    color: #999;
    opacity: 0.7;
    transform: scale(0.95);
    display: flex;
    align-items: center;
    font-family: 'Roboto', sans-serif;
}

.dark-mode .search-placeholder-text {
    color: #aaa;
    opacity: 0.8;
}

.shortcut {
    font-size: 11px;
    color: #999;
    margin-left: 0.4rem;
}

.theme-toggle,
.github-link {
    background: transparent;
    border: none;
    font-size: 15px;
    cursor: pointer;
    color: #111;
    padding: 2px;
}

.logout-link {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #111;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.dark-mode .logout-link {
    color: #eee;
}

.logout-link:hover {
    color: #e74c3c; 
}

.dark-mode .logout-link:hover {
    color: #ff6b5e; 
}

main {
    text-align: center;

}

.title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 15px;
    color: #555;
    margin-bottom: 1.4rem;
}

.btn-row {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.btn-row a {
    padding: 0.45rem 1rem;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #ccc;
    color: #111;
    background: #fff;
}

.btn-row a:first-child {
    background: #111;
    color: #fff;
    border: none;
}

.btn-row a:hover {
    opacity: 0.9;
}

.footer {
    width: 100%;
    border-top: 1px solid #e5e5e5;
    padding: 0.55rem 1.4rem;
    font-size: 13px;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    box-sizing: border-box;
    z-index: 1000;
}

.footer-left,
.footer-right {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.footer a {
    text-decoration: none;
    color: #888;
    transition: color 0.2s;
}

.footer a:hover {
    color: #111;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}
.logo:hover {
    opacity: 0.85;
}

.dark-mode {
    background-color: #0F0F10;
    color: #eee;
}

.dark-mode .navbar,
.dark-mode .footer {
    background-color: #1a1a1a;
    border-color: #333;
}

.dark-mode .docs-link,
.dark-mode .footer a,
.dark-mode .shortcut {
    color: #bbb;
}

.dark-mode .docs-link:hover,
.dark-mode .footer a:hover {
    color: #fff;
}

.dark-mode .search-box {
    background-color: #222;
    border-color: #444;
}

.dark-mode input {
    color: #eee;
}
.theme-toggle i,
.github-link i {
    transition: color 0.2s ease;
}

.dark-mode .theme-toggle i,
.dark-mode .github-link i {
    color: #eee;
}
.dark-mode .logo span {
    color: #ccc;
}
.dark-mode .footer-left span {
    color: #aaa;
}

#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    pointer-events: none;
}

@media (max-width: 1400px) {
    #toast-container {
        top: 4.5rem;
    }
}

.toast-icon {
    font-family: "Material Symbols Outlined";
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 14;
    font-size: 16px; 
    transform: scale(0.75); 
    transform-origin: center;
    line-height: 1;
    margin-right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-text {
    flex-grow: 1;
}

.toast-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    height: 100%;
}

.toast-message.success .toast-icon {
    color: #5cbf72;  
}
.toast-message.error .toast-icon {
    color: #e57373;  
}
.toast-message.warning .toast-icon {
    color: #f6c244; 
}
.toast-message.info .toast-icon {
    color: #64a6f2;  
}
.dark-mode .toast-message {
    background-color: #1a1a1a;
    color: #eee;
    border-color: #333;
}

.dark-mode .toast-close {
    color: #888;
}
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.search-modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}

.search-input-container {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0.75rem 1.2rem;
    gap: 0.8rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    min-width: 680px;
    max-width: 90vw;
    position: relative;
    transform: scale(1.08);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.search-modal.active .search-input-container {
    transform: scale(1);
    opacity: 1;
}

.search-input-container input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: inherit;
}

.search-icon {
    font-size: 20px;
    color: #666;
    margin-right: 0.2rem;
}

.esc-label {
    font-size: 0.8rem;
    color: #888;
    padding: 0.25rem 0.7rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f8f8f8;
    font-family: monospace;
}

.dark-mode .search-input-container {
    background: #121212;
    border-color: #333;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.dark-mode .search-icon {
    color: #bbb;
}

.dark-mode .esc-label {
    color: #ccc;
    border-color: #444;
    background-color: #1e1e1e;
}
.search-suggestions {
    position: absolute;
    top: 100%; 
    left: 0;
    margin-top: 0.4rem;
    padding: 0;
    list-style: none;
    width: 100%; 
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    z-index: 10000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    word-break: break-word;
}

.search-suggestions li {
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 14px;
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.search-suggestions li:hover,
.search-suggestions li.active {
    background-color: #eee;
    border: 1px dashed #999;
    margin: -1px; 
}

.dark-mode .search-suggestions {
    background: #1a1a1a;
    border-color: #333;
    color: #eee;
}

.dark-mode .search-suggestions li:hover,
.dark-mode .search-suggestions li.active {
    background-color: #2c2c2c;
    border: 1px dashed #777;
}
.search-suggestions.hidden {
    display: none;
    border: none;
    box-shadow: none;
}
.suggestion-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.suggestion-info {
    flex-grow: 1;
    overflow: hidden;
}

.suggestion-main {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
    padding: 2px 0;
}

.suggestion-email {
    font-size: 12px;
    color: #888;
}

.suggestion-code {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: flex-end; 
    flex-shrink: 0;
}

.code-text .digit {
    display: inline-block;
    animation: otpDigitFlyUp 200ms ease-out;
}

.countdown-circle {
    transform: rotate(90deg) scaleX(-1);
}

.circle-bg {
    fill: none;
    stroke: #ccc;
    stroke-width: 3;
}

.circle-fg {
    fill: none;
    stroke: rgb(246, 81, 81);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
}

.dark-mode .circle-bg {
    stroke: #333;
}

.dark-mode .circle-fg {
    stroke: #39f;
}
body:not(.dark-mode) .search-modal {
    background-color: rgba(255, 255, 255, 0.6);
}
.suggestion-main .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px; 
}
.search-suggestions li.company-entry {
    padding: 0.5rem 1rem;
}
.select-wrapper {
    position: relative;
    display: inline-block;
}

.select-wrapper select {
    appearance: none;
    border: none;
    outline: none;
    background-color: #f3f3f3;
    font-size: 13px;
    padding: 4px 32px 4px 8px;
    width: 180px;
    cursor: pointer;
    border-radius: 6px;
    color: inherit;
    transition: none !important;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    pointer-events: none;
    width: 10px;
    height: 6px;
    transform: translateY(-50%);
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6' fill='white'/></svg>") no-repeat center / contain;
    background-color: #666;
}

.dark-mode .select-wrapper select {
    background-color: #222;
}

.dark-mode .select-wrapper::after {
    background-color: #ccc;
}
@keyframes toastFlyInTop {
    0% {
        opacity: 0;
        transform: translateY(-100%) scale(0.95);
    }
    50% {
        opacity: 1;
        transform: translateY(4%) scale(1.01);
    }
    70% {
        transform: translateY(-1%) scale(0.99);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastFlyOutVideo {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    20% {
        transform: translateX(-4%) scale(0.99);
    }
    100% {
        opacity: 0;
        transform: translateX(120%) scale(0.95);
    }
}

.toast-message {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #e5e5e5;
    background-color: #fafafa;
    color: #111;
    padding: 0.4rem 0.6rem;
    border-radius: 12px;
    font-size: 13px;
    max-width: 300px;
    height: 42px;
    pointer-events: auto;
    transform: translateY(-100%);
    opacity: 0;
    will-change: transform, opacity, margin;
    transition: margin 0.3s ease, transform 0.3s ease;
}

.toast-message.visible {
    animation: toastFlyInTop 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.toast-message.hide {
    animation: toastFlyOutVideo 0.4s cubic-bezier(0.7, 0, 0.84, 0) forwards;
    margin-bottom: -50px; 
}
.search-box-otp {
    display: flex;
    align-items: center;
    background-color: #f3f3f3;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 0 0.5rem;
    height: 28px;
    margin-right: 10px;
}

.search-box-otp input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    width: 100px;
    padding: 0 4px;
}

.dark-mode .search-box-otp {
    background-color: #222;
    border-color: #444;
}

.otp-search-placeholder-text {
    color: #999;
}
#search-otp-input {
    display: none;
}

body.home #search-otp-input {
    display: inline-block;
}

body.home #search-otp-fake {
    display: none;
}

#search-otp-fake {
    display: inline-block;
    font-size: 13px;
    color: #999;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    user-select: none;
}

.dark-mode #search-otp-fake {
    color: #999;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #222;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #333;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #222 transparent;
}

.dark-mode * {
    scrollbar-color: #444 transparent;
}
.footer-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-badges img {
    width: 88px;
    height: 31px;
    image-rendering: pixelated;
    transition: opacity 0.15s ease, transform 0.15s ease;
    opacity: 0.82;
}

.dark-mode .footer-badges img {
    opacity: 0.82;
}

.footer-right{
    display:flex;
    align-items:center;
    gap: 0.85rem;
}

.footer-badges a{
    display:flex;
    align-items:center;
}

.footer-badges img{
    display:block;
}