* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #c0c0c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.git-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(192, 192, 192, 0.5));
}

.subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
    font-weight: 300;
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

main {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(192, 192, 192, 0.1) inset;
    backdrop-filter: blur(10px);
}

.selection-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.dropdown-wrapper,
.text-input-wrapper {
    position: relative;
}

.label {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #c0c0c0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.custom-dropdown {
    position: relative;
    background: rgba(15, 15, 15, 0.9);
    border: 2px solid rgba(192, 192, 192, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-dropdown:hover {
    border-color: rgba(192, 192, 192, 0.5);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.1);
}

.custom-dropdown.active {
    border-color: #c0c0c0;
    box-shadow: 0 0 25px rgba(192, 192, 192, 0.3);
}

.dropdown-selected {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.dropdown-selected .placeholder {
    color: #666;
}

.dropdown-selected span:not(.placeholder) {
    color: #e0e0e0;
}

.dropdown-arrow {
    color: #c0c0c0;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.custom-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-search-wrapper {
    display: none;
    padding: 10px;
    border-bottom: 1px solid rgba(192, 192, 192, 0.2);
}

.custom-dropdown.active .dropdown-search-wrapper {
    display: block;
}

.dropdown-search {
    width: 100%;
    padding: 10px 15px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.dropdown-search:focus {
    border-color: #c0c0c0;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.2);
}

.dropdown-search::placeholder {
    color: #666;
}

.dropdown-options {
    display: none;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(15, 15, 15, 0.95);
    border-top: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 0 0 12px 12px;
}

.custom-dropdown.active .dropdown-options {
    display: block;
}

.dropdown-option {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(192, 192, 192, 0.05);
}

.dropdown-option:hover {
    background: rgba(192, 192, 192, 0.1);
    color: #ffffff;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option.hidden {
    display: none;
}

.custom-textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(15, 15, 15, 0.9);
    border: 2px solid rgba(192, 192, 192, 0.3);
    border-radius: 12px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
}

.custom-textarea:focus {
    border-color: #c0c0c0;
    box-shadow: 0 0 25px rgba(192, 192, 192, 0.3);
}

.custom-textarea::placeholder {
    color: #666;
}

.submit-btn {
    margin-top: 15px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid rgba(192, 192, 192, 0.4);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-color: #c0c0c0;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.3);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.response-panel {
    margin-top: 30px;
    background: rgba(15, 15, 15, 0.9);
    border: 2px solid rgba(192, 192, 192, 0.3);
    border-radius: 15px;
    padding: 25px;
    animation: slideIn 0.3s ease;
    overflow: hidden;
    box-sizing: border-box;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(192, 192, 192, 0.2);
}

.response-header h2 {
    color: #c0c0c0;
    font-size: 1.5rem;
}

.close-btn {
    background: transparent;
    border: none;
    color: #c0c0c0;
    font-size: 2rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    background: rgba(192, 192, 192, 0.1);
    color: #ffffff;
    transform: rotate(90deg);
}

.response-content {
    color: #e0e0e0;
    font-size: 1.05rem;
    line-height: 1.8;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}

.response-content h1,
.response-content h2,
.response-content h3,
.response-content h4,
.response-content h5,
.response-content h6 {
    color: #c0c0c0;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.response-content h1 {
    font-size: 2rem;
    border-bottom: 1px solid rgba(192, 192, 192, 0.2);
    padding-bottom: 10px;
}

.response-content h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid rgba(192, 192, 192, 0.15);
    padding-bottom: 8px;
}

.response-content h3 {
    font-size: 1.5rem;
}

.response-content h4 {
    font-size: 1.25rem;
}

.response-content h5,
.response-content h6 {
    font-size: 1.1rem;
}

.response-content strong {
    color: #ffffff;
    font-weight: 600;
}

.response-content em {
    font-style: italic;
    color: #d0d0d0;
}

.response-content pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    box-sizing: border-box;
    white-space: pre;
    word-break: normal;
}

.response-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.response-content pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    white-space: pre;
    word-break: normal;
    display: block;
}

.response-content p {
    margin-bottom: 15px;
}

.response-content ul,
.response-content ol {
    margin-left: 25px;
    margin-bottom: 15px;
    padding-left: 20px;
}

.response-content li {
    margin-bottom: 8px;
}

.response-content li > p {
    margin-bottom: 8px;
}

.response-content blockquote {
    border-left: 4px solid rgba(192, 192, 192, 0.3);
    padding-left: 20px;
    margin: 20px 0;
    color: #b0b0b0;
    font-style: italic;
}

.response-content hr {
    border: none;
    border-top: 1px solid rgba(192, 192, 192, 0.2);
    margin: 30px 0;
}

.response-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

.response-content table th,
.response-content table td {
    border: 1px solid rgba(192, 192, 192, 0.2);
    padding: 10px;
    text-align: left;
}

.response-content table th {
    background: rgba(192, 192, 192, 0.1);
    color: #c0c0c0;
    font-weight: 600;
}

.loading {
    text-align: center;
    padding: 40px;
    margin-top: 30px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(192, 192, 192, 0.2);
    border-top-color: #c0c0c0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading p {
    color: #a0a0a0;
    font-size: 1.1rem;
}

.error-message {
    background: rgba(200, 50, 50, 0.1);
    border: 2px solid rgba(200, 50, 50, 0.3);
    border-radius: 10px;
    padding: 15px;
    color: #ff6b6b;
    margin-top: 20px;
}

/* Scrollbar styling */
.dropdown-options::-webkit-scrollbar {
    width: 8px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: rgba(10, 10, 10, 0.5);
    border-radius: 4px;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: rgba(192, 192, 192, 0.3);
    border-radius: 4px;
}

.dropdown-options::-webkit-scrollbar-thumb:hover {
    background: rgba(192, 192, 192, 0.5);
}

/* Responsive design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .git-icon {
        font-size: 2rem;
    }
    
    main {
        padding: 25px;
    }
    
    .container {
        padding: 10px;
    }
}

