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

h1, h2 {
    color: #667eea !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: black;
    min-height: 100vh;
    color: white;
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.tool-schema-extractor-section {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem 4rem 2rem;
}

.extractor-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.header-visual {
    margin-bottom: 1.5rem;
}

.extraction-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.extractor-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.subtitle-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
}

.subtitle {
    color: #a5b4fc;
    font-size: 1.2rem;
    font-weight: 500;
}

.extractor-description {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

#content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-header {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-box, .example-box {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.example-box {
    background: rgba(118, 75, 162, 0.1);
    border-color: rgba(118, 75, 162, 0.3);
}

.info-box h4, .example-box h4 {
    color: #a5b4fc;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.info-box ul, .example-box ul {
    list-style: none;
    padding: 0;
}

.info-box li, .example-box li {
    color: #cbd5e1;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.example-box li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #764ba2;
    font-weight: bold;
}

.info-box strong, .example-box strong {
    color: #a5b4fc;
}

.example-box p {
    color: #cbd5e1;
    margin-bottom: 0.8rem;
}

.example-box code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: #a5b4fc;
    font-family: 'Courier New', monospace;
}

.badge-required {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-optional {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.content-subheader {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #a5b4fc;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.step-number {
    font-size: 1.5rem;
}

.input-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-style: italic;
}

textarea {
    width: 100%;
    min-height: 400px;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.3s ease;
    line-height: 1.6;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.char-counter {
    text-align: right;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.extract-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.extract-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.extract-button:active {
    transform: translateY(0);
}

.extract-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.clear-button, .download-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-button:hover, .download-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.download-button {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
}

.download-button:hover {
    background: linear-gradient(135deg, #059669, #047857);
    border-color: #059669;
}

#results-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(102, 126, 234, 0.2);
}

.results-container {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}

.extraction-result {
    padding: 2rem;
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-wrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-height: 80vh;
    overflow-y: auto;
}

.extraction-result::-webkit-scrollbar {
    width: 10px;
}

.extraction-result::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.extraction-result::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 5px;
}

.extraction-result strong {
    color: #667eea;
    font-size: 1.1rem;
}

.extraction-result h2 {
    color: #a5b4fc !important;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.extraction-result h3 {
    color: #a5b4fc !important;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.extraction-result h4 {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.extraction-result ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.extraction-result li {
    margin-bottom: 0.8rem;
    color: #cbd5e1;
}

.extraction-result table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.extraction-result table th {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    color: #a5b4fc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.extraction-result table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    color: #cbd5e1;
}

.extraction-result table tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

.extraction-result code {
    background: rgba(102, 126, 234, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #a5b4fc;
}

.extraction-result pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.extraction-result pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
}

.extraction-result blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #cbd5e1;
    font-style: italic;
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.button-loader svg {
    animation: spin 1s linear infinite;
}

/* Responsive design */
@media (max-width: 768px) {
    .extractor-header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .extractor-description {
        font-size: 1rem;
    }
    
    textarea {
        min-height: 300px;
        font-size: 0.85rem;
    }
    
    .extract-button, .clear-button, .download-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
