@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button,
input,
select {
    font-family: inherit;
    border: none;
    outline: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.text-center {
    text-align: center;
}

/* --- Professional Google Translate Widget (Hidden Banner, Icon Only) --- */

/* Hide ONLY the top banner frame */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

/* Hide the banner content (Translated into text) */
.goog-te-banner-frame {
    display: none !important;
}

/* Prevent body from being pushed down by banner */
body.translated-ltr {
    top: 0px !important;
}

body {
    top: 0px !important;
}

/* Hide the top frame notification */
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

/* Style the widget container */
#google_translate_element {
    z-index: 99999 !important;
}

/* Style the dropdown button - Icon only */
.goog-te-gadget-simple {
    background-color: rgba(20, 20, 20, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 10px !important;
    border-radius: 8px !important;
    font-family: 'Inter', sans-serif !important;
    color: #fff !important;
    backdrop-filter: blur(10px);
    cursor: pointer !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.goog-te-gadget-simple:hover {
    background-color: rgba(40, 40, 40, 0.9) !important;
    border-color: #10b981 !important;
}

/* Hide Google icon */
.goog-te-gadget-icon {
    display: none !important;
}

/* Hide ALL text */
.goog-te-gadget-simple span {
    font-size: 0 !important;
    display: none !important;
}

.goog-te-gadget-simple a {
    font-size: 0 !important;
    display: none !important;
}

/* Add globe icon using ::before */
.goog-te-gadget-simple::before {
    content: "🌐";
    font-size: 1.3rem !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Hide dividers */
.goog-te-menu-value span:nth-child(3),
.goog-te-menu-value span:nth-child(5) {
    display: none !important;
}

/* Gemini 3 Flash - IDE Inspired Theme */
.ai-agent-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ai-bubble {
    width: 56px;
    height: 56px;
    background: #252526;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    border: 1px solid #3c3c3c;
    position: relative;
}

.ai-bubble:hover {
    background: #2d2d2d;
    color: #ffffff;
    transform: translateY(-2px);
}

.ai-bubble .online-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #4d4d4d;
    border-radius: 50%;
    border: 2px solid #1e1e1e;
}

.ai-chat-window {
    width: 400px;
    height: 650px;
    background: #1e1e1e;
    border-radius: 12px;
    margin-bottom: 12px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    border: 1px solid #3c3c3c;
    color: #cccccc;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.ai-chat-window.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.ai-chat-header {
    padding: 12px 16px;
    background: #252526;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3c3c3c;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-info h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: #cccccc;
}

#closeAIChat {
    background: none;
    border: none;
    color: #858585;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 4px;
}

#closeAIChat:hover {
    background: #3c3c3c;
    color: #ffffff;
}

.ai-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #1e1e1e;
}

.msg-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.msg-wrapper.user {
    align-self: flex-start;
    width: 100%;
}

.msg-wrapper.bot {
    align-self: flex-start;
    width: 100%;
}

.ai-msg {
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
}

.ai-msg.user {
    background: #2d2d2d;
    padding: 12px 16px;
    border-radius: 8px;
    color: #ffffff;
    border: 1px solid #3c3c3c;
}

.msg-meta {
    font-size: 11px;
    color: #858585;
    font-weight: 500;
}

.typing-indicator {
    padding: 0 20px 20px;
    color: #868686;
    font-size: 13px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-input-wrapper {
    padding: 16px;
    background: #1e1e1e;
    border-top: 1px solid #3c3c3c;
}

.ai-input-area {
    display: flex;
    flex-direction: column;
    background: #252526;
    border: 1px solid #3c3c3c;
    border-radius: 8px;
    padding: 8px;
}

.ai-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 13px;
    color: #cccccc;
    padding: 8px;
    min-height: 40px;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    border-top: 1px solid #3c3c3c;
    margin-top: 8px;
}

.footer-left {
    display: flex;
    gap: 12px;
    color: #858585;
    font-size: 12px;
}

.ai-send {
    background: #3c3c3c;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    cursor: pointer;
}

.ai-send:hover {
    background: #454545;
    color: #ffffff;
}

@keyframes ai-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

@keyframes sparkle-anim {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.sparkle-anim {
    animation: sparkle-anim 4s linear infinite;
}

@media (max-width: 768px) {
    .ai-chat-window {
        width: calc(100vw - 40px);
        height: min(600px, calc(100vh - 120px));
        right: 20px;
        bottom: 100px;
    }
}