#wp-base91-tool *{
    box-sizing:border-box;
}

#wp-base91-tool{
    background:#f8fafc;
    color:#111;
    font-family:Arial,sans-serif;
    padding:0;
    border-radius:12px;
}

#wp-base91-tool .wp-base91-tool-header{
    background:#fff;
    padding:20px 20px 10px;
    border-radius:10px;
    margin-bottom:15px;
    border:1px solid #e2e8f0;
}

#wp-base91-tool .wp-base91-tool-layout{
    display:grid;
    grid-template-columns:1fr;
    gap:15px;
}

#wp-base91-tool .wp-base91-tool-panel{
    background:#fff;
    border:1px solid #dbe3ee;
    border-radius:10px;
    overflow:hidden;
}

#wp-base91-tool .wp-base91-tool-panel-header{
    padding:15px;
    background:#e2e8f0;
    color:#000;
    font-weight:bold;
}

#wp-base91-tool .wp-base91-tool-content{
    padding:15px;
}

#wp-base91-tool .wp-base91-tool-label{
    display:block;
    margin-bottom:8px;
    font-size:14px;
    font-weight:bold;
    color:#111;
}

#wp-base91-tool input[type="file"],
#wp-base91-tool .wp-base91-tool-select,
#wp-base91-tool input[type="text"]{
    width:100%;
    border:1px solid #ddd !important;
    border-radius:8px;
    padding:12px;
    background:#fff;
    font-size:14px;
    color:#111 !important;
}

#wp-base91-tool input[type="file"]::file-selector-button{
    border:none;
    background:#eee;
    color:#555;
    padding:10px 14px;
    border-radius:6px;
    margin-right:12px;
    cursor:pointer;
    font-weight:bold;
}

#wp-base91-tool .wp-base91-tool-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}

#wp-base91-tool .wp-base91-tool-controls{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:15px;
}

#wp-base91-tool .wp-base91-tool-button{
    border:none;
    border-radius:5px;
    padding:10px 20px;
    background:#1b6997;
    color:#fff;
    cursor:pointer;
    font-weight:bold;
    font-size:14px !important;
    font-weight:500;
}

#wp-base91-tool .wp-base91-tool-button:hover{
    opacity:.9;
    background:#d95a00 !important;
}

#wp-base91-tool .wp-base91-tool-results{
    padding:15px;
}

#wp-base91-tool .wp-base91-tool-result{
    padding:12px;
    border-radius:8px;
    margin-bottom:10px;
    font-size:14px;
    line-height:1.5;
}

#wp-base91-tool .wp-base91-tool-error{
    background:#fee2e2;
    border-left:5px solid #ef4444;
    color:#7f1d1d;
}

#wp-base91-tool .wp-base91-tool-success{
    background:#dcfce7;
    border-left:5px solid #22c55e;
    color:#14532d;
}

#wp-base91-tool .CodeMirror{
    height:320px !important;
    font-size:14px;
    padding:5px;
    background:#fff;
    color:#111;
    border:1px solid #ddd;
    margin-top:10px;
    margin-bottom:10px;
}

#wp-base91-tool .wp-base91-tool-editor{
    height:320px;
    font-size:14px;
    font-family:monospace;
    background:#fff;
    color:#111;
    border:1px solid #ddd;
    border-radius:0;
    outline:none;
    padding:10px;
    margin-top:0;
    margin-bottom:0;
    width:100%;
}

#wp-base91-tool .wp-base91-tool-editor:focus{
    outline:none;
}

#wp-base91-tool .CodeMirror-gutters{
    background:#fff;
    border-right:1px solid #e2e8f0;
}

#wp-base91-tool .CodeMirror-placeholder{
    color:#777 !important;
    opacity:1 !important;
}

#wp-base91-tool-output-box{
    display:none;
    margin-top:25px;
    background:#fff;
    border:1px solid #dbe3ee;
    border-radius:10px;
    overflow:hidden;
}

#wp-base91-tool-output-box .CodeMirror{
    height:450px !important;
    margin:10px;
    font-size:12px;
}

#wp-base91-tool-output-box .CodeMirror-line{
    padding-left:20px !important;
}

#wp-base91-tool-output-box .CodeMirror-scroll{
    overflow-x:hidden !important;
    overflow-y:auto !important;
}

@media(max-width:900px){

    #wp-base91-tool .wp-base91-tool-grid{
        grid-template-columns:1fr;
    }

}

#wp-base91-tool .wp-base91-tool-loading{
background:#dbeafe;
border-left:5px solid #1b6997;
color:#1b6997;
display:flex;
align-items:center;
gap:12px;
}

#wp-base91-tool .wp-base91-tool-spinner{
width:18px;
height:18px;
border:3px solid #93c5fd;
border-top:3px solid #1b6997;
border-radius:50%;
animation:qrSpinner .8s linear infinite;
flex-shrink:0;
}

@keyframes qrSpinner{
from{
transform:rotate(0deg);
}
to{
transform:rotate(360deg);
}
}