/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa; /* Material Light Gray Background */
    color: #202124; /* Material Dark Gray Text */
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Header */
.app-header {
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15); /* Material Elevation 1 */
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.app-header h1 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 14px;
    color: #5f6368;
}

/* Main Container */
.container {
    width: 100%;
    max-width: 800px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Cards */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.card-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.card-description {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 16px;
}

/* Forms & Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    width: 100%;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-row {
    display: flex;
    gap: 16px;
}

label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #3c4043;
}

input[type="number"],
textarea {
    font-family: monospace; /* Monospace is better for JSON formatting */
    font-size: 14px;
    padding: 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background-color: #ffffff;
    color: #202124;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: #1a73e8; /* Material Primary Blue */
    box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}

.helper-text {
    font-size: 12px;
    color: #5f6368;
    margin-top: 4px;
}

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

.btn {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.25px;
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-primary {
    background-color: #1a73e8;
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background-color: #1557b0;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.btn-secondary {
    background-color: transparent;
    color: #1a73e8;
    border: 1px solid #dadce0;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #f1f3f4;
}

/* Console / Log Window */
.console-output label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.log-window {
    background-color: #f1f3f4;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 12px;
    min-height: 120px;
    max-height: 250px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 13px;
    color: #3c4043;
}

.log-window p {
    margin-bottom: 4px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .input-row {
        flex-direction: column;
        gap: 0;
    }
}