.regex-wrapper{max-width:1000px}.regex-input-row{display:flex;gap:.5rem;align-items:stretch}.regex-select{width:auto;min-width:120px;max-width:150px;flex-shrink:0}.regex-wrapper .card{padding:0}.flags-display{min-width:60px;max-width:100px;padding:.375rem .75rem;background:var(--bi-surface-2);border:1px solid var(--bi-border);border-right:none;font-family:Consolas,Monaco,monospace;font-size:.9rem;color:var(--bi-text);display:flex;align-items:center;justify-content:center;cursor:default}.flags-dropdown{margin-left:0}.flags-dropdown .btn{border-top-left-radius:0;border-bottom-left-radius:0;padding:.375rem .75rem}.flags-dropdown .dropdown-menu{min-width:180px}.flags-dropdown .dropdown-item{display:flex;align-items:center;padding:.5rem 1rem}.flags-dropdown .dropdown-item .flag-check{width:20px;display:inline-block;text-align:center;margin-right:.5rem}.flags-dropdown .dropdown-item.active{background-color:var(--bi-border);color:var(--bi-text)}.regex-input-wrapper{position:relative;flex-grow:1}.regex-input-wrapper .input-group-text{background:var(--bi-surface-2);font-weight:600;color:var(--bi-text-muted)}.flags-input{max-width:80px;text-align:center}.regex-status{min-height:24px;font-size:.875rem}.regex-status.valid{color:#198754}.regex-status.invalid{color:#dc3545}.regex-status .match-count{font-weight:600}.flags-help{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem}.flag-badge{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:4px;background:var(--bi-border);color:var(--bi-text);font-size:.75rem;font-weight:600;cursor:pointer;transition:all .2s}.flag-badge:hover{background:var(--bi-border)}.flag-badge.active{background:var(--brand);color:#fff}#testText{resize:vertical;min-height:150px;font-family:Consolas,Monaco,Courier New,monospace;font-size:.95rem;line-height:1.6}.match-summary{padding:.75rem 1rem;background:var(--bi-surface-2);border-radius:.5rem;font-size:.9rem}.match-summary .badge{font-size:.85rem}.match-highlights{padding:1rem;background:var(--bi-surface-2);border-radius:.5rem;font-family:Consolas,Monaco,Courier New,monospace;font-size:.9rem;line-height:1.8;white-space:pre-wrap;word-break:break-all;max-height:300px;overflow-y:auto}.match-highlights .match-item{background:linear-gradient(135deg,var(--brand) 0%,var(--brand-strong) 100%);color:#fff;padding:.125rem .25rem;border-radius:3px;font-weight:500}.match-highlights .match-group{background:#ffc107;color:#000;padding:.125rem .25rem;border-radius:3px}.match-details{max-height:300px;overflow-y:auto}.match-item-detail{padding:.75rem;background:var(--bi-surface);border:1px solid var(--bi-border);border-radius:.375rem;margin-bottom:.5rem}.match-item-detail:last-child{margin-bottom:0}.match-item-detail .match-index{font-size:.75rem;color:var(--bi-text-muted);margin-bottom:.25rem}.match-item-detail .match-text{font-family:Consolas,Monaco,Courier New,monospace;font-size:.9rem;color:var(--bi-text);word-break:break-all}.match-item-detail .match-groups{margin-top:.5rem;padding-top:.5rem;border-top:1px dashed var(--bi-border)}.match-item-detail .group-item{font-size:.8rem;color:var(--bi-text);font-family:Consolas,Monaco,Courier New,monospace}.replace-result{padding:.75rem 1rem;background:var(--bi-surface-2);border-radius:.375rem;min-height:46px;font-family:Consolas,Monaco,Courier New,monospace;font-size:.9rem;white-space:pre-wrap;word-break:break-all}.regex-samples{display:grid;gap:1.5rem}.sample-category{border-bottom:1px solid var(--bi-border);padding-bottom:1rem}.sample-category:last-child{border-bottom:none;padding-bottom:0}.regex-wrapper .category-title{font-size:.875rem;font-weight:600;color:var(--bi-text);margin-bottom:.75rem;text-transform:uppercase;letter-spacing:.5px}.sample-list{display:flex;flex-wrap:wrap;gap:.5rem}.sample-item{display:flex;flex-direction:column;align-items:flex-start;padding:.5rem .75rem;background:var(--bi-surface-2);border:1px solid var(--bi-border);border-radius:.375rem;cursor:pointer;transition:all .2s;text-align:left}.sample-item:hover{background:var(--bi-border);border-color:var(--bi-border);transform:translateY(-1px)}.sample-item .sample-name{font-size:.8rem;font-weight:500;color:var(--bi-text);margin-bottom:.25rem}.sample-item .sample-regex{font-size:.75rem;color:var(--brand);background:rgba(var(--brand-rgb),.15);padding:.125rem .375rem;border-radius:3px}.syntax-title{font-size:.875rem;font-weight:600;color:var(--bi-text);margin-bottom:.75rem}.syntax-list{list-style:none;padding:0;margin:0}.syntax-list li{padding:.375rem 0;font-size:.875rem;color:var(--bi-text);border-bottom:1px dashed var(--bi-border)}.syntax-list li:last-child{border-bottom:none}.syntax-list code{background:var(--bi-surface-2);padding:.125rem .375rem;border-radius:3px;font-size:.8rem;color:#d63384;font-weight:600}.code-output{background:var(--bi-surface-2);border:1px solid var(--bi-border);border-radius:.5rem;padding:.75rem;font-family:Consolas,Monaco,Courier New,monospace;font-size:1rem;max-height:135px;overflow-y:auto}.code-output pre{margin:0;white-space:pre-wrap;word-break:break-all}.code-output code{color:var(--bi-text)}@media (max-width: 768px){.flags-input{max-width:60px;min-height:36px;font-size:14px}.match-highlights{font-size:.85rem}.sample-list{flex-direction:column}.sample-item{width:100%}.regex-input,.test-input{font-size:14px;min-height:44px}.match-result{font-size:.8rem;padding:.5rem}.btn-copy,.btn-clear{min-height:36px;padding:6px 12px;font-size:13px}}@media (max-width: 575px){.regex-container{gap:.75rem}.card-header{padding:.6rem .75rem}.card-header h5{font-size:.85rem}}html[data-theme=dark] .regex-status.valid{color:#75b798}html[data-theme=dark] .regex-status.invalid{color:#ea868f}
