/* Professional Tool Theme Shared Styles */
.professional-theme .tool-toolbar {
    background: #fff;
    border: 1px solid #dfe6ed;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
}

.toolbar-group {
    display: flex;
    gap: 10px;
    /* Slightly larger gap */
    align-items: center;
}

/* Button Standardization */
.btn-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Icon gap */
    height: 40px;
    /* Standard Height */
    padding: 0 16px;
    border-radius: 6px;
    font-weight: 600;
    /* Bolder text */
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #c3c4c7;
    background: #f6f7f7;
    color: #2c3338;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-tool:hover {
    background: #fff;
    border-color: var(--ast-global-color-0, #0274be);
    color: var(--ast-global-color-0, #0274be);
}

.btn-tool:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.btn-primary {
    background: var(--ast-global-color-0, #0274be);
    border-color: var(--ast-global-color-0, #0274be);
    color: #fff;
}

.btn-primary:hover {
    background: #005177;
    border-color: #005177;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    color: #d63638;
    border-color: #d63638;
}

.btn-danger:hover {
    background: #d63638;
    color: #fff;
    border-color: #d63638;
}

.btn-tool.small {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
}

/* Icons within buttons */
.btn-tool .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tool Checkbox Standardization */
.tool-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #50575e;
    cursor: pointer;
    font-weight: 500;
}

.tool-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Editor Standardization */
.code-editor,
textarea.code-editor {
    width: 100%;
    min-height: 450px;
    border: 1px solid #dfe6ed;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
    background: #fbfcff;
    color: #2c3338;
    resize: vertical;
}

.code-editor:focus,
textarea.code-editor:focus {
    border-color: var(--ast-global-color-0, #0274be);
    box-shadow: 0 0 0 1px var(--ast-global-color-0, #0274be);
    outline: none;
}

/* Stats Bar */
.stats-bar {
    background: #e7f5ea;
    color: #0d3b13;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #c3e6cb;
    height: 40px;
    /* Align with toolbar elements */
}

.stats-bar.hidden {
    display: none;
}

.savings {
    font-weight: bold;
}

/* Responsive Grid */
.tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media(min-width: 768px) {
    .tool-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.grid-col {
    display: flex;
    flex-direction: column;
}

.grid-col label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
    display: block;
}