/**
 * Polyglot Web Tools 前端样式
 */

/* 通用工具容器 */
.pwt-tool-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.pwt-tool-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.pwt-tool-title {
    font-size: 1.5em;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.pwt-tool-description {
    color: #666;
    margin: 5px 0 0;
    font-size: 0.9em;
}

.pwt-tool-content {
    margin-bottom: 20px;
}

.pwt-tool-footer {
    font-size: 0.8em;
    color: #888;
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* 表单元素 */
.pwt-form {
    margin: 0 0 20px;
}

.pwt-form-group {
    margin-bottom: 15px;
}

.pwt-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.pwt-input,
.pwt-select,
.pwt-textarea {

    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f8f8;
    color: #333;
}

.pwt-input:focus,
.pwt-select:focus,
.pwt-textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.pwt-textarea {
    min-height: 100px;
    resize: vertical;
}

.pwt-checkbox-label,
.pwt-radio-label {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    cursor: pointer;
}

.pwt-checkbox,
.pwt-radio {
    margin-right: 5px;
}

/* 按钮 */
.pwt-button {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pwt-button:hover {
    background-color: #135e96;
}

.pwt-button-secondary {
    background-color: #f0f0f1;
    color: #333;
}

.pwt-button-secondary:hover {
    background-color: #dcdcde;
}

.pwt-button-danger {
    background-color: #d63638;
}

.pwt-button-danger:hover {
    background-color: #b32d2e;
}

.pwt-button-small {
    padding: 4px 8px;
    font-size: 12px;
}

.pwt-button-large {
    padding: 12px 24px;
    font-size: 16px;
}

/* 结果容器 */
.pwt-result {
    background-color: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.pwt-result-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.pwt-result-content {
    margin-bottom: 10px;
}

.pwt-result-item {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.pwt-result-key {
    font-weight: 600;
    color: #555;
    margin-right: 5px;
}

.pwt-result-value {
    color: #333;
}

.pwt-result-error {
    color: #d63638;
    font-weight: 600;
}

.pwt-result-success {
    color: #00a32a;
    font-weight: 600;
}

/* 响应式设计 */
@media screen and (max-width: 600px) {
    .pwt-tool-container {
        padding: 15px;
    }
    
    .pwt-form-group {
        margin-bottom: 10px;
    }
    
    .pwt-button {
        width: 100%;
        margin-bottom: 10px;
    }
}


/* QR码工具样式 */
.pwt-qr-result {
    text-align: center;
}

.pwt-qr-code {
    display: inline-block;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 15px auto;
    max-width: 100%;
}

/* QR码选项 */
.pwt-qr-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 15px 0;
    gap: 10px;
}

.pwt-qr-option {
    margin-bottom: 10px;
}

