body {
    background-color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #eee;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #ffffff;
    padding: 15px 20px;
    text-align: center;
    /* border-bottom: 1px solid #6a00ff; */
    box-shadow: 0 0 10px #4e04a855;
}

header img {
    max-width: 100px;
    vertical-align: middle;
}

header h1 {
    display: inline-block;
    margin: 0 0 0 10px;
    color: #6a00ff;
    font-size: 24px;
    vertical-align: middle;
}

.assistant-container {
    max-width: 1000px;
    margin: 20px auto;
    display: grid;
    gap: 20px;
    flex: 1;
    padding: 0 15px;
    width: 100%;
}

.assistantContainer {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.assistantContainerSidebar {
    /* width: 30%; */
}

.assistantContainerMain {
    /* width: 70%; */
    margin-top: 20px;
}

.tabs {
    display: flex;
    /* justify-content: center; */
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    background: #ffffff;
    border-radius: 30px;
    font-weight: 600;
    color: #6a00ff;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    text-align: center;
    box-shadow: 0 0 10px #6a00ff55;
}

.tab.active {
    background: #6a00ff;
    color: #ffffff;
    box-shadow: 0 0 10px #6a00ff55;
}

.tab:hover:not(.active),
.tab:focus:not(.active) {
    background: #4800ff;
    color: #ffffff;
}

.search-bar {
    width: calc(100% - 25px);
    padding: 12px;
    font-family: monospace;
    background: #ffffff;
    color: #6a00ff;
    border: 1px solid #6a00ff;
    border-radius: 10px;
    font-size: 16px;
    box-shadow: 0 0 10px #6a00ff55;
    outline: none;
}

.section {
    margin-top: 20px;
}

.spinner {
    display: inline-block;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6a00ff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.section-header {
    font-size: 20px;
    color: #6a00ff;
    border-bottom: 1px solid #6a00ff;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
    transition: background 0.3s ease;
    box-shadow: 0 0 10px #6a00ff55;
}

.section-header:hover,
.section-header:focus {
    background: #6a00ff;
    color: #ffffff;
}

.commands {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 15px;
    /* width: 100%; */
}

.commandLine {
    transition: max-height 0.4s ease;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.commands.open {
    max-height: 2000px;
    padding: 15px;
}

.command-card {
    background: #ffffff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 0 10px #6a00ff55;
    transition: transform 0.3s ease;
    position: relative;
    margin-bottom: 15px;
    width: calc(100% - 25px);
}

.command-card:hover {
    transform: scale(1.02);
}

.command-card:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #6a00ff;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 50;
}

.command-title {
    font-size: 16px;
    color: #6a00ff;
    margin-bottom: 10px;
}

.command {
    margin-top: 10px;
    font-size: 14px;
    font-family: monospace;
    background: #100242;
    padding: 10px;
    border-radius: 5px;
    white-space: normal;
    word-wrap: break-word;
    width: 100%;

}

.copy-btn {
    /* background-color: #6a00ff; */
    color: #6a00ff;
    border: none;
    padding: 8px;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.copy-btn:hover,
.copy-btn:focus {
    background-color: #5100ff;
    fill: #ffffff;
}

.copy-btn:hover svg,
.copy-btn:focus svg {
    background-color: #5100ff;
    fill: #ffffff;
}

.copy-btn svg {
    width: 20px;
    height: 20px;
    fill: #6a00ff;
}

.input-area {
    margin-top: 30px;
}

textarea {
    width: block;
    padding: #333;
    color: #6a00ff;
    border-bottom: 8px;
    box-shadow: 0 0 12 8px;
    padding-bottom: 20px;
    outline-color: #5500ff;
}

#charCount {
    color: #6a00ff;
}

textarea {
    width: calc(100% - 25px);
    padding: 12px;
    font-family: monospace;
    background: #ffffff;
    color: #6a00ff;
    border: 1px solid #6a00ff;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0 0 10px #6a00ff55;
}

button.ask-ai {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    background: #6a00ff;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

button.ask-ai:hover,
button.ask-ai:focus {
    background: #3300ff;
}

.response {
    margin-top: 20px;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    color: #3b393e;
    line-height: 1.6;
    animation: fadeIn 0.5s ease-in;
}

.response pre {
    background: #222121;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: monospace;
    color: #ffffff;
    width: 100%;
}

.response a {
    color: #4c00ff;
    text-decoration: none;
}

.response a:hover,
.response a:focus {
    text-decoration: underline;
}

.response ul,
.response ol {
    margin: 10px 0;
    padding-left: 20px;
}

.response li {
    margin-bottom: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

footer {
    background: #ffffff;
    padding: 15px;
    text-align: center;
    color: #6a00ff;
    /* border-top: 1px solid #6a00ff; */
    margin-top: auto;
    box-shadow: 0 0 10px #6a00ff55;
}

footer a {
    color: #6a00ff;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover,
footer a:focus {
    text-decoration: underline;
}

#aiResponse h3 {
    color: #1e1c1c;
    font-size: 1.5em;
    margin-top: 20px;
}

#aiResponse h4 {
    color: #1e1c1c;
    font-size: 1.2em;
    margin-top: 15px;
}

/* #aiResponse pre {
            background-color: #181818;
            color: #f8f8f2;
            padding: 15px;
            border-radius: 5px;
            overflow-x: auto;
            font-family: 'Courier New', monospace;
        } */

#aiResponse code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

#aiResponse p {
    margin: 10px 0;
}

#aiResponse ul {
    margin: 10px 0;
    padding-left: 20px;
}

#aiResponse li {
    margin-bottom: 5px;
}

#aiResponse h3 {
    color: #1e1c1c;
}

.codeCopy-btn {
    background-color: #6a00ff;
    color: #ffffff;
    border: none;
    padding: 8px;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
}

.codeCopy-btn:hover {
    background-color: #6a00ff;
    color: #ffffff;
    border: none;
    padding: 8px;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
}

.codeCopy-btn svg {
    /* background-color: #6a00ff; */
    fill: #ffffff;
}

/* .codeCopy-btn:hover,
        .codeCopy-btn:focus {
            background-color: #00c9c2;
        }

        .codeCopy-btn svg {
            width: 20px;
            height: 20px;
            fill: #121212;
        } */

@media (max-width: 600px) {
    header img {
        max-width: 40px;
    }

    header h1 {
        font-size: 20px;
    }

    .tabs {
        gap: 10px;
    }

    .tab {
        padding: 8px 15px;
        font-size: 14px;
    }

    .search-bar,
    .command,
    .command-title,
    textarea {
        font-size: 13px;
    }

    .copy-btn {
        width: 36px;
        height: 28px;
    }

    .copy-btn svg {
        width: 18px;
        height: 18px;
    }

    .section-header {
        font-size: 18px;
        padding: 8px 12px;
    }

    .command-card {
        padding: 12px;
    }

    button.ask-ai {
        padding: 8px 16px;
        font-size: 14px;
    }

    .assistant-container {
        margin: 15px auto;
        padding: 0 10px;
    }

    .response pre {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    header h1 {
        font-size: 18px;
    }

    html {
        scroll-behavior: smooth;
    }

    .tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .search-bar,
    .command,
    .command-title,
    textarea {
        font-size: 12px;
    }

    .copy-btn {
        width: 32px;
        height: 26px;
    }

    .copy-btn svg {
        width: 16px;
        height: 16px;
    }

    .section-header {
        font-size: 16px;
        padding: 6px 10px;
    }

    .command-card {
        padding: 10px;
    }

    button.ask-ai {
        padding: 6px 12px;
        font-size: 12px;
    }

    footer {
        font-size: 12px;
    }

    footer a {
        margin: 0 5px;
    }

    .response pre {
        font-size: 11px;
    }
}

input,
textarea {
    padding: 0;
    line-height: inherit;
    color: rgba(31, 41, 55) !important;
}