.dashboard {
    margin: 0;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: white;
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
}

.gcse-search {
    position: absolute;
    bottom: 54vh;
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.typing-text {
    font-size: 2.5rem;
    color: #00d9ff;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #00d9ff;
    width: 12ch;
    margin: 0 auto 20px auto;
    animation: typing 4s steps(12) infinite, blink 0.5s step-end infinite;
}

@keyframes typing {
    0%, 100% {
        width: 12ch;
    }
    50% {
        width: 0;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.google-search-bar {
    /* position: relative; */
    /* margin: 20px 0; */
    position: relative;
    left: 0%;
}

input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 217, 255, 0.4);
    border-radius: 24px;
    font-size: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.2);
    transition: box-shadow 0.3s, border-color 0.3s;
    font-style: oblique;
}

input[type="text"]:focus {
    border-color: #00d9ff;
    box-shadow: 0 0 16px rgba(0, 217, 255, 0.6);
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0px 0px 24px 24px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.suggestion-item {
    padding: 12px 16px;
    font-size: 14px;
    /* display: none; */
    color: white;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.suggestion-item:hover {
    background-color: rgba(0, 217, 255, 0.2);
    color: #00d9ff;
}

/* Style for the result box */
.result-box {
    position: fixed;
    top: 29%;
    left: 50%;
    height: 65vh;
    overflow: scroll;
    transform: translate(-50%, -20%);
    width: 70vw;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Ensure it's above the overlay */
    display: none; /* Initially hidden */
    padding: 20px;
    box-shadow: 0 8px 24px rgb(2, 255, 234);
    animation: fadeIn 0.3s ease-in-out; /* Fade-in animation */
}
.result-box::-webkit-scrollbar {
    display: none;
}


/* Cross button for closing the result box */
.result-box .close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    background: none;
    border: none;
    outline: none;
}

/* Cross button hover effect */
.result-box .close-btn:hover {
    color: #000;
    transform: scale(1.1);
}

/* Result items inside the result box */
.result-box .result-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.result-box .result-item:last-child {
    border-bottom: none;
}

/* Title of the result */
.result-box .result-title {
    font-size: 16px;
    font-weight: bold;
    color: #0073e6;
    text-decoration: none;
}

.result-box .result-title:hover {
    text-decoration: underline;
}

/* Snippet of the result */
.result-box .result-snippet {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

/* Fade-in animation for the result box */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -25%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -20%);
    }
}
