/* Best Web Tools - Professional Green UI v2.2.0 */
.bwt-single-tool,
.bwt-directory{
    --bwt-primary:#0f9f68;
    --bwt-primary-dark:#08724c;
    --bwt-primary-soft:#ecfdf5;
    --bwt-primary-faint:#f7fbf9;
    --bwt-accent:#10b981;
    --bwt-text:#172033;
    --bwt-heading:#101827;
    --bwt-muted:#667085;
    --bwt-border:#e2e8e5;
    --bwt-card:#ffffff;
    --bwt-page:#f6f8f7;
    --bwt-success:#13a463;
    --bwt-danger:#ea580c;
    --bwt-shadow:0 10px 28px rgba(16,24,40,.06);
    --bwt-shadow-sm:0 4px 14px rgba(16,24,40,.05);
    max-width:1180px;
    margin:28px auto;
    padding:0 16px 38px;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;
    color:var(--bwt-text);
    box-sizing:border-box;
}
.bwt-single-tool *,
.bwt-directory *{box-sizing:border-box}
.bwt-single-tool a,
.bwt-directory a{transition:color .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}

/* Balanced two-column layout */
.bwt-page-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 300px;
    gap:22px;
    align-items:start;
}
.bwt-main-column{min-width:0}
.bwt-sidebar{display:flex;flex-direction:column;gap:18px;position:sticky;top:92px}

/* Clean, human-looking header */
.bwt-tool-header,
.bwt-directory-header{
    background:#ffffff;
    border:1px solid var(--bwt-border);
    border-radius:14px;
    padding:24px 26px;
    margin:0 0 20px;
    box-shadow:var(--bwt-shadow-sm);
    position:relative;
    overflow:hidden;
}
.bwt-tool-header:before,
.bwt-directory-header:before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:5px;
    background:linear-gradient(180deg,var(--bwt-primary),var(--bwt-accent));
}
.bwt-tool-header:after,
.bwt-directory-header:after{
    content:"";
    position:absolute;
    right:-70px;
    top:-70px;
    width:180px;
    height:180px;
    border-radius:999px;
    background:radial-gradient(circle,rgba(15,159,104,.10),rgba(15,159,104,0) 70%);
    pointer-events:none;
}
.bwt-tool-header h1,
.bwt-directory-header h1{
    position:relative;
    margin:8px 0 9px;
    font-size:clamp(27px,2.35vw,36px);
    line-height:1.18;
    letter-spacing:-.025em;
    color:var(--bwt-heading);
    font-weight:760;
}
.bwt-tool-header p,
.bwt-directory-header p{
    position:relative;
    font-size:15.5px;
    line-height:1.65;
    color:var(--bwt-muted);
    max-width:760px;
    margin:0;
}
.bwt-breadcrumb{
    position:relative;
    display:block;
    font-size:13.5px!important;
    margin:0 0 6px!important;
    color:#748076!important;
    line-height:1.45!important;
}
.bwt-breadcrumb a{color:var(--bwt-primary-dark);text-decoration:none;font-weight:700}
.bwt-breadcrumb a:hover{text-decoration:underline;color:var(--bwt-primary)}
.bwt-api-note,
.bwt-notice{
    background:#fff8ed;
    border:1px solid #fed7aa;
    color:#9a3412;
    border-radius:10px;
    padding:12px 14px;
    margin-top:14px;
    line-height:1.55;
    font-size:14px;
}

/* Cards */
.bwt-tool-card,
.bwt-info-box,
.bwt-related-box,
.bwt-sidebar-widget{
    background:var(--bwt-card);
    border:1px solid var(--bwt-border);
    border-radius:14px;
    box-shadow:var(--bwt-shadow);
}
.bwt-tool-card{padding:24px;margin-bottom:20px}
.bwt-info-box{padding:22px 24px;margin-bottom:20px}
.bwt-info-box h2{margin:0 0 12px;font-size:21px;line-height:1.3;letter-spacing:-.015em;color:var(--bwt-heading);font-weight:740}
.bwt-info-box ol{margin:0;padding-left:21px;color:#344054;line-height:1.75;font-size:15px}
.bwt-info-box li::marker{color:var(--bwt-primary);font-weight:800}
.bwt-tool-app h2{margin-top:0;font-size:20px;color:var(--bwt-heading)}

/* Inputs */
.bwt-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
.bwt-field{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.bwt-field label,
.bwt-output label{
    font-weight:700;
    color:#1f2937;
    font-size:14.5px;
    line-height:1.3;
}
.bwt-field small{color:var(--bwt-muted);font-size:13px}
.bwt-input,
.bwt-select,
.bwt-textarea,
.bwt-output textarea,
.bwt-output pre,
.bwt-tool-search{
    width:100%;
    box-sizing:border-box;
    border:1px solid #d9e3de;
    border-radius:10px;
    padding:12px 14px;
    font-size:15px;
    background:#fff;
    color:var(--bwt-text);
    outline:none;
    box-shadow:inset 0 1px 2px rgba(16,24,40,.035);
    transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.bwt-input:focus,
.bwt-select:focus,
.bwt-textarea:focus,
.bwt-output textarea:focus,
.bwt-tool-search:focus{
    border-color:#10b981;
    box-shadow:0 0 0 3px rgba(16,185,129,.13), inset 0 1px 2px rgba(16,24,40,.035);
}
.bwt-textarea{min-height:230px;resize:vertical;line-height:1.6}
.bwt-output{margin-top:14px}
.bwt-output pre{
    white-space:pre-wrap;
    min-height:120px;
    background:#f8fbf9;
    overflow:auto;
    line-height:1.6;
    margin-top:8px;
    color:#243042;
}

/* Buttons */
.bwt-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:16px 0 4px;
    align-items:center;
    justify-content:center;
}
.bwt-btn{
    appearance:none;
    border:1px solid transparent;
    border-radius:9px;
    background:#0f9f68;
    color:#fff;
    padding:11px 18px;
    min-height:43px;
    font-size:14.5px;
    font-weight:740;
    cursor:pointer;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 8px 16px rgba(15,159,104,.18);
}
.bwt-btn:hover{background:#0b8757;transform:translateY(-1px);box-shadow:0 10px 20px rgba(15,159,104,.22)}
.bwt-btn.secondary{background:#f2f5f4;color:#263238;box-shadow:none;border-color:#dfe7e3}
.bwt-btn.secondary:hover{background:#e8eeeb;color:#111827;box-shadow:none}
.bwt-btn.danger{background:#f97316;box-shadow:0 8px 16px rgba(249,115,22,.17)}
.bwt-btn.danger:hover{background:#ea580c;box-shadow:0 10px 20px rgba(249,115,22,.22)}
.bwt-btn:disabled{opacity:.55;cursor:not-allowed;transform:none}

/* Stats / results */
.bwt-results-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:15px 0}
.bwt-stat{
    background:#fbfdfc;
    border:1px solid var(--bwt-border);
    border-radius:12px;
    padding:15px 12px;
    text-align:center;
    box-shadow:0 4px 12px rgba(16,24,40,.035);
}
.bwt-stat strong{display:block;font-size:25px;line-height:1.15;color:var(--bwt-primary-dark);letter-spacing:-.02em}
.bwt-stat span{font-size:12px;color:var(--bwt-muted);font-weight:700;text-transform:uppercase;letter-spacing:.045em}

/* Related tools */
.bwt-related-box{overflow:hidden;margin-bottom:20px}
.bwt-related-box h2,
.bwt-sidebar-widget h2{
    margin:0;
    padding:15px 20px;
    background:#0f9f68;
    color:#fff;
    font-size:18px;
    line-height:1.3;
    letter-spacing:-.012em;
    font-weight:760;
}
.bwt-related-links{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
    padding:20px;
    background:#fff;
}
.bwt-related-links a{
    display:flex;
    align-items:center;
    min-height:66px;
    padding:14px 15px;
    background:#fff;
    border:1px solid var(--bwt-border);
    border-radius:11px;
    text-decoration:none;
    color:#202a39;
    font-size:15px;
    font-weight:700;
    box-shadow:0 3px 10px rgba(16,24,40,.035);
}
.bwt-related-links a:before{
    content:"✓";
    width:26px;
    height:26px;
    min-width:26px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-right:11px;
    border-radius:8px;
    background:var(--bwt-primary-soft);
    color:var(--bwt-primary-dark);
    font-weight:900;
    font-size:14px;
}
.bwt-related-links a:hover{border-color:#9bd8bd;background:#fbfefc;transform:translateY(-2px);box-shadow:0 10px 20px rgba(15,159,104,.09);color:var(--bwt-primary-dark)}

/* Sidebar widgets */
.bwt-sidebar-widget{overflow:hidden}
.bwt-sidebar-list{display:flex;flex-direction:column;background:#fff}
.bwt-sidebar-list a{
    position:relative;
    display:flex;
    align-items:center;
    padding:14px 16px 14px 45px;
    min-height:52px;
    border-bottom:1px solid #edf2ef;
    text-decoration:none;
    color:#202a39;
    font-size:15px;
    font-weight:700;
    line-height:1.35;
}
.bwt-sidebar-list a:last-child{border-bottom:0}
.bwt-sidebar-list a:before{
    content:"✓";
    position:absolute;
    left:18px;
    top:50%;
    transform:translateY(-50%);
    color:var(--bwt-success);
    font-weight:900;
    font-size:16px;
}
.bwt-sidebar-list a:hover{background:#f6fbf8;color:var(--bwt-primary-dark);padding-left:48px}
.bwt-sidebar-empty{padding:16px;color:var(--bwt-muted);font-size:14px}

/* All tools directory */
.bwt-directory{max-width:1180px}
.bwt-directory-header{text-align:left;margin-bottom:26px}
.bwt-tool-search{
    max-width:600px;
    margin-top:16px;
    padding-left:42px;
    background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 24 24' stroke='%23667085' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35m1.35-5.15a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0Z'/%3E%3C/svg%3E") no-repeat 15px center;
}
.bwt-tool-group{margin:30px 0}
.bwt-tool-group h2{
    font-size:22px;
    margin:0 0 14px;
    letter-spacing:-.018em;
    color:var(--bwt-heading);
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:760;
}
.bwt-tool-group h2:before{content:"";width:6px;height:24px;border-radius:999px;background:var(--bwt-primary)}
.bwt-tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.bwt-tool-tile{
    display:block;
    background:#fff;
    border:1px solid var(--bwt-border);
    border-radius:13px;
    padding:17px;
    text-decoration:none;
    color:var(--bwt-text);
    min-height:112px;
    box-shadow:0 4px 12px rgba(16,24,40,.04);
}
.bwt-tool-tile strong{display:block;font-size:16px;line-height:1.35;margin-bottom:8px;color:#172033;font-weight:760}
.bwt-tool-tile span{display:block;color:var(--bwt-muted);font-size:13.5px;line-height:1.5}
.bwt-tool-tile:hover{border-color:#9bd8bd;background:#fbfefc;transform:translateY(-2px);box-shadow:0 12px 24px rgba(15,159,104,.08)}

/* Utility pieces */
.bwt-hidden{display:none!important}
.bwt-preview{margin-top:16px;border:1px solid var(--bwt-border);border-radius:12px;padding:14px;background:#f8fbf9}
.bwt-preview img,.bwt-preview canvas{max-width:100%;height:auto;border-radius:10px}
.bwt-table{width:100%;border-collapse:separate;border-spacing:0;margin-top:14px;border:1px solid var(--bwt-border);border-radius:12px;overflow:hidden;font-size:14px}
.bwt-table th,.bwt-table td{border-bottom:1px solid var(--bwt-border);padding:10px;text-align:left}
.bwt-table tr:last-child th,.bwt-table tr:last-child td{border-bottom:0}
.bwt-table th{background:#f8fbf9;color:#172033;font-weight:750}
.bwt-color-chip{display:inline-block;width:28px;height:28px;border-radius:8px;border:1px solid #d1d5db;vertical-align:middle;margin-left:8px}
.bwt-copy-ok{color:var(--bwt-success);font-weight:800;margin-left:8px}
.bwt-flex{display:flex;gap:14px;align-items:end;flex-wrap:wrap}
.bwt-flex .bwt-field{flex:1 1 190px}
.bwt-mini-note{font-size:13px;color:var(--bwt-muted);margin:8px 0}
.bwt-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.bwt-tab{border:1px solid #d9e3de;background:#fff;border-radius:999px;padding:8px 13px;cursor:pointer;font-weight:750;color:#344054;font-size:14px}
.bwt-tab.is-active{background:var(--bwt-primary);color:#fff;border-color:var(--bwt-primary);box-shadow:0 7px 16px rgba(15,159,104,.16)}

/* Theme compatibility: prevent oversized theme typography inside the plugin */
.bwt-single-tool h1,
.bwt-single-tool h2,
.bwt-directory h1,
.bwt-directory h2,
.bwt-single-tool p,
.bwt-directory p,
.bwt-single-tool label,
.bwt-directory label,
.bwt-single-tool a,
.bwt-directory a,
.bwt-single-tool button,
.bwt-directory button,
.bwt-single-tool input,
.bwt-directory input,
.bwt-single-tool textarea,
.bwt-directory textarea,
.bwt-single-tool select,
.bwt-directory select{
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;
}

/* Responsive */
@media (max-width:1100px){
    .bwt-page-grid{grid-template-columns:1fr}
    .bwt-sidebar{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
    .bwt-form-grid{grid-template-columns:1fr}
    .bwt-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .bwt-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .bwt-related-links{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
    .bwt-single-tool,.bwt-directory{margin:18px auto;padding:0 12px 28px}
    .bwt-tool-header,.bwt-directory-header{padding:20px 18px 20px 22px;border-radius:13px}
    .bwt-tool-card,.bwt-info-box{padding:18px;border-radius:13px}
    .bwt-tool-header h1,.bwt-directory-header h1{font-size:27px;line-height:1.2}
    .bwt-sidebar{display:flex}
    .bwt-tool-grid,.bwt-results-grid,.bwt-related-links{grid-template-columns:1fr}
    .bwt-actions{justify-content:stretch}
    .bwt-btn{width:100%}
    .bwt-textarea{min-height:185px}
}
