:root {
    --google-blue: #4285F4;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f0f2f5;
    color: var(--text-primary);
    margin: 0;
    padding: 20px;
    direction: rtl;
    overflow: hidden; /* To hide the overflow of the background effect */
}

.background-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(66, 133, 244, 0.1), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(234, 67, 53, 0.1), transparent 40%);
    z-index: -1;
}

.container {
    max-width: 650px;
    margin: 40px auto;
    animation: fadeInUp 0.8s ease-out;
}

.main-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-text {
    font-size: 3em;
    font-weight: 700;
    color: #4A4A4A;
    letter-spacing: -1px;
}

.search-box-wrapper {
    position: relative;
    margin-bottom: 30px;
}

#search-bar {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1em;
    font-family: 'Cairo', sans-serif;
    border-radius: 28px; /* Google's pill shape */
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-sizing: border-box;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

#search-bar:focus {
    outline: none;
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

#results-container {
    max-height: 55vh;
    overflow-y: auto;
    padding-left: 10px; /* Space for scrollbar on the left in RTL */
}

.result-item {
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 12px;
    opacity: 0; /* Hidden by default for animation */
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}

.result-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.result-item a {
    text-decoration: none;
    color: var(--google-blue);
    font-size: 1.2em;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.result-item a:hover {
    text-decoration: underline;
}

.result-item span {
    display: block;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.results-message {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 1.1em;
}

.main-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9em;
    color: #999;
}
.main-footer a { color: var(--google-blue); text-decoration: none; }
