.apache-container {
    max-width: 800px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.apache-container h2 { color: #0073aa; margin-top: 0; }
.apache-container h3 { color: #333; margin: 20px 0 10px; }

.apache-mode-selector {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
}
.apache-mode-btn {
    background: #f0f0f1;
    color: #555;
    border: 1px solid #ccd0d4;
    padding: 10px 24px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}
.apache-mode-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
.apache-mode-btn:not(.active):hover { background: #e0e0e2; }

.apache-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
}
.apache-field { margin-bottom: 14px; }
.apache-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}
.apache-field input[type="text"],
.apache-field input[type="email"],
.apache-field input[type="number"],
.apache-field select,
.apache-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}
.apache-field textarea { resize: vertical; }
.apache-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}
.apache-options-grid label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    cursor: pointer;
}
.apache-options-grid input { width: auto; }

.apache-extra {
    margin-top: 12px;
    padding: 12px;
    background: #f0f7ff;
    border-radius: 4px;
}

.apache-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.apache-button:hover:not(:disabled) { background: #005a87; }
.apache-button:disabled { opacity: 0.6; cursor: not-allowed; }

#apache-result {
    margin-top: 20px;
    background: #f0f7ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}
#apache-output {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.5;
    background: #1e1e1e;
    color: #d4d4d4;
    resize: vertical;
    box-sizing: border-box;
}
.apache-result-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.apache-note {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .apache-options-grid { grid-template-columns: 1fr; }
    .apache-mode-selector { flex-direction: column; }
}