/* Loggical Browser Playground Styles */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    background-color: #f8f9fa;
}

.container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 8px;
}

h2 {
    color: #34495e;
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.4em;
}

.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 14px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.playground {
    background: #f8f9fb;
    border: 2px dashed #d1d9e6;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.playground h2 {
    margin-top: 0;
    color: #2c3e50;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

input, select, textarea {
    padding: 10px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

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

textarea {
    resize: vertical;
    min-height: 100px;
    font-family: monospace;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.log-output {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 16px;
    border-radius: 6px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    min-height: 60px;
    border: 1px solid #333;
}

/* ANSI color classes for preview */
.ansi-black { color: #2d3748; }
.ansi-red { color: #f56565; }
.ansi-green { color: #48bb78; }
.ansi-yellow { color: #ed8936; }
.ansi-blue { color: #4299e1; }
.ansi-magenta { color: #9f7aea; }
.ansi-cyan { color: #38b2ac; }
.ansi-white { color: #f7fafc; }
.ansi-gray { color: #a0aec0; }
.ansi-bright-red { color: #fc8181; }
.ansi-bright-green { color: #68d391; }
.ansi-bright-yellow { color: #f6e05e; }
.ansi-bright-blue { color: #63b3ed; }
.ansi-bright-magenta { color: #b794f6; }
.ansi-bright-cyan { color: #4fd1c7; }
.ansi-bright-white { color: #ffffff; }
.ansi-dim { opacity: 0.6; }
.ansi-bold { font-weight: bold; }

.try-it-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
}

.try-it-btn:hover {
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.4);
}

.preset-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.preset-btn {
    background: #6c757d;
    font-size: 12px;
    padding: 8px 16px;
}

.preset-btn:hover {
    background: #5a6268;
    transform: none;
    box-shadow: none;
}

.hint {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}
