:root {
    --primary-color: #0066cc;
    --primary-hover: #0052a3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9em;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-button {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

.tab-button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.tab-content h3 {
    color: var(--text-dark);
    margin-top: 20px;
    margin-bottom: 10px;
}

.tab-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    resize: vertical;
    min-height: 200px;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
}

button.primary {
    background-color: var(--primary-color);
    color: white;
}

button.primary:hover {
    background-color: var(--primary-hover);
}

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

button.secondary:hover {
    background-color: #5a6268;
}

button:not(.primary):not(.secondary) {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

button:not(.primary):not(.secondary):hover {
    background-color: #e2e6ea;
}

.output-section {
    margin-top: 30px;
}

.output {
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    max-height: 500px;
    overflow-y: auto;
    color: var(--text-dark);
}

.output.success {
    border-left: 4px solid var(--success-color);
    background-color: #d4edda;
}

.output.error {
    border-left: 4px solid var(--error-color);
    background-color: #f8d7da;
}

.status-section {
    margin-bottom: 25px;
}

.status-box {
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.status-box ul {
    list-style-position: inside;
    margin-left: 10px;
}

.status-box li {
    margin: 5px 0;
}

.status-box p {
    margin: 10px 0;
}

.status-box p.warning {
    color: var(--warning-color);
    font-weight: 600;
}

.status-box p.success {
    color: var(--success-color);
    font-weight: 600;
}

.status-box p.error {
    color: var(--error-color);
    font-weight: 600;
}

.status-box strong {
    color: var(--primary-color);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.9em;
    border-top: 1px solid var(--border-color);
}

footer p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header {
        padding: 15px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-button {
        min-width: 100%;
    }

    .tab-content {
        padding: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}
