/* Universal Developer Tools - Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

/* Advertisement Spaces */
.ad-space {
    margin: 10px 0;
    min-height: 90px;
    background-color: #ecf0f1;
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    color: #7f8c8d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-top, .ad-bottom {
    width: 100%;
}

.ad-side {
    width: 300px;
    min-height: 250px;
    flex-shrink: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Category Navigation */
.category-nav {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tab {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-tab:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.category-tab.active {
    background: #27ae60;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Tool Content */
.tool-content {
    display: flex;
    gap: 20px;
    flex: 1;
}

.tool-area {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    min-height: 500px;
}

/* Welcome Screen */
.welcome-screen {
    text-align: center;
    padding: 80px 20px;
}

.welcome-screen h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.welcome-screen p {
    color: #7f8c8d;
    font-size: 1.1em;
}

/* Tool Interface */
.tool-interface {
    max-width: 800px;
    margin: 0 auto;
}

.tool-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
}

.tool-description {
    color: #7f8c8d;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1em;
}

/* Input Section */
.input-section {
    margin-bottom: 30px;
}

.input-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.input-section textarea,
.input-section input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.input-section textarea {
    min-height: 120px;
}

.input-section textarea:focus,
.input-section input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Additional Inputs */
.additional-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.additional-inputs .input-group {
    flex: 1;
    min-width: 200px;
}

.additional-inputs label {
    font-size: 14px;
}

.additional-inputs input {
    padding: 8px 12px;
    font-size: 14px;
}

/* Results Section */
.results-section {
    margin-top: 30px;
}

.results-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.result-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.result-header {
    background: #e9ecef;
    padding: 12px 15px;
    font-weight: 600;
    color: #495057;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-content {
    padding: 15px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    word-break: break-all;
    line-height: 1.4;
    color: #2c3e50;
    background: white;
}

/* Copy Button */
.copy-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: #27ae60;
}

.copy-btn.copied::after {
    content: ' ✓';
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tool-content {
        flex-direction: column;
    }
    
    .ad-side {
        width: 100%;
        min-height: 90px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .category-tabs {
        justify-content: center;
    }
    
    .category-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .tool-area {
        padding: 20px;
    }
    
    .additional-inputs {
        flex-direction: column;
    }
    
    .additional-inputs .input-group {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }
    
    .tool-area {
        padding: 15px;
    }
    
    .welcome-screen {
        padding: 40px 10px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.margin-bottom {
    margin-bottom: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 40px;
}