body {
    margin: 0;
    padding: 0;
}

.regex-tester-bg {
    background: linear-gradient(180deg, #100025 40%, #110141 100%), #D9D9D9;
    transition: background 0.3s ease-in-out;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.regex-tester-bg-stars {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 0 auto;
    padding: 50px 150px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Navbar */
.regex-tester-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0px 35px 0px;
}

.regex-tester-navbar img {
    height: 30px;
}

.regex-tester-navbar h1 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.regex-tester-log-in-btn {
    background-color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.regex-tester-log-in-btn:hover {
    background-color: #f2f2f2;
    transform: translateY(-2px);
}

.regex-tester-log-in-btn i {
    margin-left: 6px;
}

/* Mobile Navbar */
.regex-tester-mobile-navbar {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.regex-tester-mobile-navbar img {
    height: 32px;
}

.regex-tester-menu-icon {
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.regex-tester-mobile-menu-active {
    left: 0;
}

.regex-tester-mobile-navigation-logo {
    height: 32px;
    margin-bottom: 32px;
}

.regex-tester-navigation-login-btn {
    background-color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    width: 100%;
}

/* Breadcrumb */
.regex-tester-header-breadcrumb {
    display: flex;
    align-items: center;
}

.regex-tester-header-breadcrumb a {
    text-decoration: none;
}

.regex-tester-breadcrumb-tools {
    color: rgba(255, 255, 255, 0.60);
    font-size: 14px;
    letter-spacing: -0.4px;
}

.regex-tester-header-breadcrumb i {
    color: white;
    margin: 0 8px;
}

.regex-tester-breadcrumb {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Editor Container */
.regex-tester-editor-container {
    position: relative;
    background: #1e1e2f;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
    width: 70%;
    border: none;
    margin: 16px auto 48px;
    overflow: hidden;
}

.regex-tester-editor-container:hover {
    box-shadow: 1px 1px 5px 2px #6E00FF;
}

.regex-tester-editor-header {
    padding: 2rem 2rem 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: none;
}

.regex-tester-editor-header span {
    margin: 0;
    color: #fff;
    font-size: 24px;
    letter-spacing: 0.5px;
    font-weight: 800;
    margin-right: 10px;
}

.regex-tester-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.regex-tester-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6E00FF;
    color: #FFFFFF;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 20px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    padding: 0;
}

.regex-tester-btn i {
    font-size: 20px;
}

.regex-tester-btn:hover {
    transform: scale(1.08);
}

.regex-tester-btn:hover::after {
    content: attr(title);
    position: absolute;
    top: -30px;
    background-color: #F8FAFC;
    color: #220554;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    width: 120px;
    text-align: center;
    font-weight: 600;
    font-family: 'Overpass', sans-serif;
    z-index: 20;
}

.regex-tester-btn-danger {
    background-color: #d52e08;
}

.regex-tester-editor-wrapper {
    padding: 2rem;
}

.regex-tester-editor-wrapper .CodeMirror {
    height: 200px !important;
    font-family: Arial, monospace;
    font-size: 16px;
    border-radius: 10px !important;
}

.regex-tester-regex-input {
    margin-bottom: 1rem;
    display: flex;
    width: 100%;
}

.regex-tester-regex-input input {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    border: 2px solid #6E00FF;
    background: #272737;
    color: #f8f8f2;
}

.regex-tester-flags {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.regex-tester-flag-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background-color: #1f2937;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s;
    user-select: none;
}


.regex-tester-flag-option:hover {
    background-color: #374151;
}

.regex-tester-flag-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #9ca3af;
    border-radius: 4px;
    background-color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    position: relative;
}

.regex-tester-flag-option input[type="checkbox"]::after {
    content: "";
    width: 10px;
    height: 10px;
    background-color: #10b981;
    display: none;
    border-radius: 2px;
}

.regex-tester-flag-option input[type="checkbox"]:checked::after {
    display: block;
}

.regex-tester-flag-option label {
    color: #f9fafb;
    font-size: 14px;
    user-select: none;
    cursor: pointer;
}

.regex-tester-flag-option input {
    margin-right: 5px;
}

.cm-s-monokai.CodeMirror {
    background: #272737 !important;
    color: #f8f8f2;
    border-radius: 10px !important;
}

.CodeMirror-gutter {
    background: #272737 !important;
}

.regex-tester-results {
    padding: 1.25rem;
    border-radius: 8px;
    margin: 0 2rem 2rem;
    background: #272737;
    color: white;
    max-height: 200px;
    overflow-y: auto;
}

.regex-tester-results-header {
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.regex-tester-match {
    padding: 5px;
    margin-bottom: 5px;
    border-left: 3px solid #6E00FF;
    background: rgba(110, 0, 255, 0.1);
}

.regex-tester-no-match {
    font-style: italic;
    color: #aaa;
}

/* Status Bar */
.regex-tester-status {
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1rem 2rem 2rem;
    display: flex;
    align-items: center;
    animation: regex-tester-fade 0.3s ease;
}

@keyframes regex-tester-fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.regex-tester-status-icon {
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.regex-tester-status-success {
    background: #36B37E;
    color: #ffff;
}

.regex-tester-status-error {
    background: #d52e08;
    color: #ffff;
}

.regex-tester-status-warning {
    background: linear-gradient(135deg, #f5a623, #f5a623);
    color: #ffff;
}

.regex-tester-status-info {
    background: #1e1e2f;
    color: #ffff;
    border: 1px solid #6E00FF;
}

/* Content Section */
.tool-regex-tester-content-page {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    padding: 0 24px;
}

.tool-regex-tester-content-page ul li {
    list-style-type: initial;
    margin-left: 15px;
}

.tool-regex-tester-content-page ol li {
    list-style-type: initial;
    margin-left: 15px;
}

/* FAQ Section */
.regex-tester-faq-container {
    width: 100%;
    margin: 0 auto;
    border-radius: 8px;
}

.regex-tester-faq-item {
    margin-bottom: 8px;
}

.regex-tester-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 24px 0;
    font-size: 18px;
    color: #100025;
    font-weight: 500;
    line-height: 28px;
    font-family: 'Inter', sans-serif;
}

.regex-tester-faq-answer {
    display: none;
    font-size: 16px;
    font-weight: 400;
    color: #6E7D88;
    line-height: 24px;
}

.regex-tester-divider {
    border: 0;
    border-top: 0.1px solid #EEE;
    margin: 0;
}

.regex-tester-mobile-navigation-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 200px;
    background-color: #110140;
    z-index: 1000;
    padding: 24px;
    transition: top 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.regex-tester-mobile-menu-active {
    top: 0;
}

/* Close button (X) styling */
.regex-tester-menu-close {
    position: absolute;
    top: 24px;
    left: 24px;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Logo styling */
.regex-tester-mobile-navigation-logo {
    margin: 24px 0 40px;
    height: 29px;
}

.pomodoro-coderspace-log-in-btn {
    display: inline-flex;
    padding: 8px 16px;
    align-items: flex-start;
    gap: 10px;
    border-radius: 64px;
    border: 1px solid rgba(218, 218, 218, 0.30);
    background: #220554;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    line-height: 21px;
    letter-spacing: -0.2px;
    transition: transform 0.2s ease;
}

/* Responsive Design */
@media (max-width: 1330px) {
    .regex-tester-editor-container {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .regex-tester-bg-stars {
        padding: 50px 100px;
    }
}

@media (max-width: 850px) {
    .regex-tester-editor-header span {
        font-size: 20px;
    }

    .regex-tester-editor-wrapper .CodeMirror {
        height: 200px !important;
        font-size: 14px;
    }

    .regex-tester-btn {
        width: 2rem;
        height: 2rem;
        font-size: 16px;
    }

    .regex-tester-btn i {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .regex-tester-navbar {
        display: none;
    }

    .regex-tester-mobile-navbar {
        display: flex;
    }

    .regex-tester-bg-stars {
        padding: 50px 80px;
    }

    .regex-tester-editor-container {
        width: 100%;
        margin: 16px auto 32px;
    }

    .regex-tester-header-breadcrumb {
        padding: 0 16px 16px;
    }

    .regex-tester-actions {
        margin-top: 16px;
        justify-content: center;
    }

    .regex-tester-btn {
        width: 2rem;
        height: 2rem;
        font-size: 16px;
    }

    .regex-tester-btn i {
        font-size: 16px;
    }
}

@media (max-width: 580px) {
    .regex-tester-bg-stars {
        padding: 50px 50px;
    }

    .regex-tester-editor-wrapper {
        padding: 1rem;
    }

    .regex-tester-editor-header {
        padding: 1rem 1rem 0 1rem;
        display: grid;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-align: center;
    }

    .regex-tester-editor-header span {
        font-size: 18px;
    }

    .regex-tester-editor-wrapper .CodeMirror {
        font-size: 12px;
    }

    .regex-tester-btn {
        width: 2.5rem;
        height: 2.5rem;
    }

    .regex-tester-btn i {
        font-size: 14px;
    }

    .regex-tester-status {
        margin: 0.5rem 1rem 1rem;
    }

    .regex-tester-flags {
        flex-wrap: wrap;
    }
}

@media (max-width: 450px) {
    .regex-tester-bg-stars {
        padding: 50px 20px;
    }
}

#regex-tester-content ol > li::marker {
    font-weight: bold;
    color: black;
}