@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --primary-color: #0a0a0a;
    --secondary-color: #1a1a1a;
    --secondary-hover-color: #2a2a2a;
    --focus-color: #2e2e2e;
    --focus-hover-color: #3e3e3e;
    --button-hover-color: #333333;
    --text-color: #ffffff;
    --text-secondary-color: #cccccc;
    --heading-secondary-color: #666666;
    --placeholder-color: #999999;
    --neon-blue: #00d1ff;
    --neon-pink: #ff00ff;
    --neon-purple: #8a2be2;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 209, 255, 0.1);
    --gradient: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
}

.light_mode {
    --primary-color: #ffffff;
    --secondary-color: #f0f0f0;
    --secondary-hover-color: #e0e0e0;
    --focus-color: #e5e5e5;
    --focus-hover-color: #d5d5d5;
    --button-hover-color: #e9e9e9;
    --text-color: #000000;
    --text-secondary-color: #555555;
    --heading-secondary-color: #888888;
    --placeholder-color: #aaaaaa;
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #00d1ff, #8a2be2);
}

body {
    background: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.header,
.chats .message,
.chats .message .message__content,
.prompt__form {
    margin: 0 auto;
    max-width: 824px;
}

body.hide-header .header {
    margin: 0;
    display: none;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar__logo {
    color: var(--text-secondary-color);
    font-weight: 800;
    font-size: 1.75rem;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
}

.navbar__button {
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    border: none;
    background: var(--gradient);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.5);
}

.navbar__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 209, 255, 0.8);
}

.header {
    margin-top: 10vh;
    text-align: center;
}

.header__title h1 {
    width: fit-content;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.header__title h2 {
    color: var(--heading-secondary-color);
    font-size: 2.5rem;
    font-weight: 600;
}

.suggests {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4.875rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.suggests__item {
    background: var(--glass-bg);
    color: var(--text-secondary-color);
    padding: 2rem;
    height: 16rem;
    width: 16rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.2);
}

.suggests__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(0, 209, 255, 0.4);
}

.suggests__item-text {
    font-weight: 500;
    line-height: 1.5rem;
    font-size: 1.1rem;
}

.suggests__item-icon {
    text-align: right;
}

.suggests__item-icon i {
    font-size: 2rem;
    background: var(--gradient);
    padding: 0.75rem;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.5);
}

.prompt {
    position: fixed;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    z-index: 1000;
    width: 100%;
    left: 0;
    bottom: 0;
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.prompt__input-wrapper {
    width: 100%;
    height: 5rem;
    display: flex;
    position: relative;
}

.prompt__form-input {
    height: 100%;
    width: 100%;
    border: none;
    resize: none;
    font-size: 1.25rem;
    color: var(--text-color);
    padding: 1.5rem 2.5rem;
    border-radius: 100px;
    background: var(--glass-bg);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.2);
}

.prompt__form-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(0, 209, 255, 0.4);
}

.prompt__form-input::placeholder {
    color: var(--placeholder-color);
}

.prompt__form-button {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 55px;
    height: 55px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    background: var(--gradient);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.5);
}

.prompt__form-button:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 25px rgba(0, 209, 255, 0.8);
}

.prompt__form-button#sendButton {
    transform: translateY(-50%) scale(0);
}

.prompt__form-input:valid ~ .prompt__form-button#sendButton {
    transform: translateY(-50%) scale(1);
}

.prompt__form-input:valid ~ #deleteButton {
    right: 5rem;
}

.prompt__disclaim {
    text-align: center;
    color: var(--placeholder-color);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.chats {
    padding: 2rem 1rem 12rem;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-color: #999 transparent;
}

.chats .message--incoming {
    margin-top: 2rem;
}

.chats .message--outgoing:not(:first-child) {
    margin-top: 2.5rem;
}

.chats .message__content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
}

.chats .message__text {
    color: var(--text-color);
    white-space: pre-wrap;
    margin-top: 10px;
}

.hide {
    display: none !important;
}

.chats .message--error .message__text {
    color: #ff6b6b;
}

.chats .message--loading .message__text {
    display: none;
}

.chats .message__avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    object-fit: top center;
}

.chats .message--loading .message__avatar {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.chats .message__icon {
    color: var(--text-color);
    cursor: pointer;
    height: 45px;
    width: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    font-size: 1.5rem;
    margin-left: 4rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.5);
}

.chats .message__icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 209, 255, 0.8);
}

.chats .message__loading-indicator {
    display: none;
    gap: 0.75rem;
    width: 100%;
    flex-direction: column;
    margin-bottom: 20px;
}

.chats .message--loading .message__loading-indicator {
    display: flex;
}

.chats .message__loading-indicator .message__loading-bar {
    height: 1rem;
    width: 100%;
    border-radius: 0.5rem;
    background-position: -800px 0;
    background: linear-gradient(to right, #6a11cb60 30%, var(--primary-color) 60%, #6a11cb60);
    animation: loading 3s linear infinite;
}

.chats .message__loading-indicator .message__loading-bar:first-child {
    width: 85%;
}

.chats .message__loading-indicator .message__loading-bar:last-child {
    width: 70%;
}

@keyframes loading {
    0% {
        background-position: -800px 0;
    }
    50% {
        background-position: 0px 0;
    }
    100% {
        background-position: 800px 0;
    }
}

.code__copy-btn {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 10;
    font-size: 20px;
    transition: all 0.3s ease;
}

.code__copy-btn:hover {
    transform: scale(1.1);
}

pre {
    position: relative;
    background-color: var(--secondary-color);
    padding: 15px 0 0;
    font-family: monospace;
    font-size: 14px;
    border-radius: 10px;
    margin: 0;
    overflow-x: auto;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.2);
}

code {
    margin-top: 30px;
    border-radius: 5px;
    color: inherit;
}

.code__language-label {
    position: absolute;
    font-weight: bold;
    top: 15px;
    left: 15px;
    color: var(--placeholder-color);
    font-size: 14px;
    text-transform: capitalize;
}

.hljs {
    background-color: var(--secondary-color);
}

blockquote {
    padding-left: 60px;
    line-height: 2.5rem;
    color: var(--text-color);
    border-left: 4px solid var(--text-secondary-color);
    margin: 1.5rem 0;
}

@media screen and (max-width: 980px) {
    .header {
        padding: 0 2rem;
    }

    .header__title {
        line-height: 2.8rem;
    }

    .header__title h1 {
        font-size: 3.5rem;
    }

    .header__title h2 {
        font-size: 2.2rem;
    }

    .suggests {
        justify-content: center;
    }

    .suggests__item:nth-child(3),
    .suggests__item:nth-child(4) {
        display: none;
    }

    .message {
        padding: 0 1.5rem;
    }

    .prompt__disclaim {
        font-size: 0.8rem;
    }
}