* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--body-bg, #ffffff);
}

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: var(--body-bg, #ffffff);
    background-image: linear-gradient(180deg, var(--body-gradient, #FFE04C) 0%, var(--body-bg, #ffffff) 51.56%, var(--body-bg, #FFF) 82.81%, var(--body-bg, #FFF) 100%);
    background-repeat: no-repeat;
    min-height: 100vh;
    font-size: 17px;
    color: var(--body-text, #333);
    line-height: 2;
}

a:link {
    text-decoration: none;
    color: var(--link-color, #0058b0);
    font-weight: 500;
}

a:visited {
    text-decoration: none;
    color: var(--link-color, #0058b0);
    font-weight: 600;
}

a:hover {
    text-decoration: none;
    color: var(--link-hover, red);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.copy__alert {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    z-index: 9999;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.main-header {
    background: linear-gradient(180deg, rgba(255,215,26,1) 0%, rgba(255,228,97,1) 15%, rgba(255,230,108,1) 30%, rgba(255,231,112,1) 100%);
    padding: 0;
    position: relative;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--header-text, #000);
    letter-spacing: -0.5px;
}

.logo a,
.logo a:link,
.logo a:visited {
    color: var(--header-text, #000);
    font-weight: 700;
}

.logo-tagline {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--header-text, #333);
    letter-spacing: 0;
    margin-top: -2px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
}

.main-nav ul li a,
.main-nav ul li a:link,
.main-nav ul li a:visited {
    color: var(--nav-link, #000);
    text-decoration: none;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 10px;
    transition: background-color 0.1s linear;
    font-weight: normal;
}

.main-nav ul li a:hover {
    background-color: rgba(0,0,0,0.08);
    color: var(--nav-link, #000);
}

.main-nav ul li a.active,
.main-nav ul li a.active:link,
.main-nav ul li a.active:visited {
    color: var(--nav-active-text, #FFF);
    background-color: var(--nav-active-bg, #000);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--header-text, #333);
    border-radius: 2px;
}

.breadcrumb-bar {
    background: var(--breadcrumb-bg, rgb(236 241 255 / 70%));
    padding: 10px 0;
    font-size: 13px;
}

.breadcrumb-bar a,
.breadcrumb-bar a:link,
.breadcrumb-bar a:visited {
    color: var(--breadcrumb-text, #6f6565);
    text-decoration: none;
    font-weight: normal;
}

.breadcrumb-bar span {
    color: var(--heading-color, #333);
    font-weight: 600;
}

.container-div {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    display: flex;
    flex-direction: row-reverse;
    gap: 25px;
    background: #fff;
}

#more_tools {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.main-sidebar-div {
    display: flex;
    flex-direction: column;
    background-color: var(--sidebar-bg, #fff);
    padding: 20px 5px;
    border-radius: 10px;
}

.sidebar_item {
    padding: 12px;
    border-left: 3px solid #fff;
    margin: 0;
    display: flex;
}

.side_tools_links,
.side_tools_links:link,
.side_tools_links:visited {
    display: block;
    padding: 0 5px;
    color: var(--sidebar-text, #000);
    font-size: 14px;
    text-decoration: none;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    flex-basis: 100%;
    font-weight: normal;
}

.side_tools_links:hover {
    color: var(--sidebar-hover, #0071E3);
}

.NewTool {
    background: #2900E0;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 7px;
    margin-left: 10px;
    font-weight: 600;
}

.ImprovedTool {
    background: #ffe66c;
    color: #000;
    font-weight: 500;
    padding: 3px 8px;
    box-shadow: 1px 1px 20px -12px;
    border-radius: 8px;
    font-size: 10px;
    margin-left: 5px;
}

.main-tool-area {
    flex: 1;
    min-width: 0;
}

.tool-title {
    font-size: 25px;
    line-height: 1;
    text-align: center;
    margin-bottom: 10px;
    color: var(--heading-color, #000);
}

.tool-desc {
    text-align: center;
    font-size: 14px;
    color: var(--content-text, #555);
    margin-bottom: 20px;
}

.tool-out-div {
    position: relative;
}

.main-tool {
    width: 100%;
}

textarea.tool-div {
    width: 100%;
    min-height: 250px;
    padding: 15px;
    border: 1px solid var(--textarea-border, #FFE04C);
    border-radius: 10px 10px 0 0;
    font-size: 17px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    line-height: 1.6;
    overflow: auto;
}

textarea.tool-div:focus {
    border-color: var(--textarea-focus, #FFCC00);
}

.bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f8f8;
    border: 1px solid var(--textarea-border, #FFE04C);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.bottom-left,
.bottom-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.flex-div {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    color: #555;
}

.icon-back:hover {
    background: var(--primary-color, #FFCC00);
    border-color: var(--primary-color, #FFCC00);
    color: #000;
}

.tooltip {
    position: relative;
}

.tooltiptext {
    visibility: hidden;
    background: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px 10px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
}

.tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.item-bottom {
    font-size: 13px;
    color: #777;
}

.item-bottom p {
    margin: 0;
}

.item-bottom b {
    color: var(--body-text, #333);
}

.bottom-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.btn_forms {
    flex: 1 1 auto;
    min-width: 150px;
    padding: 10px 40px;
    font-size: 16px;
    font-weight: 600;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
    background: var(--btn-bg, #000);
    color: var(--btn-text, #fff);
    margin-top: 12px;
}

.btn_forms:hover {
    background-color: var(--btn-hover-bg, #272629);
}

.btn_forms.active {
    background-color: var(--btn-hover-bg, #272629);
}

hr {
    border: none;
    height: 1px;
    background: #0058b0;
    margin: 20px 0;
}

.tool_content {
    margin-top: 20px;
    background: #fff;
}

.tool_content_inner {
    margin-bottom: 55px;
}

.content-section {
    margin-bottom: 25px;
}

.contentMainHead {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--heading-color, #000);
}

.contentMainPara {
    font-size: 15px;
    line-height: 2;
    color: var(--content-text, #444);
}

.contentHead {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--heading-color, #000);
}

.contentPara {
    font-size: 15px;
    line-height: 2;
    color: var(--content-text, #444);
    margin-bottom: 10px;
}

.contentList {
    padding-left: 25px;
    margin-bottom: 15px;
}

.contentList li {
    font-size: 15px;
    line-height: 2;
    color: var(--content-text, #444);
    margin-bottom: 5px;
}

.contentSubList {
    list-style-type: disc;
}

.container-footer {
    background: var(--footer-bg, #F8FAFC);
    margin-top: 30px;
    padding: 20px 0 0;
}

.hr_cont {
    margin: 0 0 20px;
}

.footer_section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.footer-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--footer-text, #FFF);
    margin-bottom: 10px;
}

.footer-description {
    font-size: 14px;
    color: var(--footer-text, #FFF);
    max-width: 600px;
    line-height: 1.6;
    margin: 0 auto;
}

.footer-links-inline {
    text-align: center;
    font-size: 14px;
    color: var(--footer-text, #FFF);
}

.footer-links-inline a,
.footer-links-inline a:link,
.footer-links-inline a:visited {
    color: var(--footer-link, #FFF);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 400;
}

.footer-links-inline a:hover {
    color: var(--footer-link-hover, #FFCC00);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    transition: background 0.2s, color 0.2s;
}

.social-link:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0 0;
    margin-top: 10px;
    font-size: 13px;
    color: var(--footer-text, #FFF);
}

.footer-bottom a,
.footer-bottom a:link,
.footer-bottom a:visited {
    color: var(--footer-link, #FFF);
    text-decoration: none;
    font-weight: 400;
}

.footer-copyright {
    color: #bbbbbb;
    font-size: 13px;
}

.sidebar_item.active-tool {
    background: var(--sidebar-active-bg, #ffe66c);
    border-left: 3px solid var(--primary-color, #FFCC00);
}

.side_tools_links.current {
    font-weight: 700;
    color: var(--sidebar-active-text, #0071E3);
}

.output-section {
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.multi-output {
    overflow: hidden;
}

.output-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.output-label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.output-text {
    font-size: 16px;
    color: var(--body-text, #333);
    word-break: break-all;
    padding-right: 70px;
    min-height: 24px;
    line-height: 2;
    white-space: pre-wrap;
    overflow: hidden;
    padding-top: 8px;
    padding-bottom: 8px;
}

.output-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 5px;
    padding: 4px 14px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.output-copy-btn:hover {
    background: #000;
    color: var(--primary-color, #FFCC00);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #000;
}

.stat-label {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.diff-layout {
    display: flex;
    gap: 10px;
}

.diff-side {
    flex: 1;
}

.diff-label {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
}

.diff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.diff-table th, .diff-table td {
    border: 1px solid #ddd;
    padding: 6px 10px;
    text-align: left;
}

.diff-table th {
    background: #f5f5f5;
    font-weight: 700;
}

.diff-changed {
    background: #fff3cd;
}

.diff-match {
    color: #4CAF50;
    font-weight: 700;
    margin-bottom: 10px;
}

.extra-options {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    font-size: 14px;
}

.option-input {
    width: 80px;
    padding: 6px 10px;
    border: 2px solid #000;
    border-radius: 6px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px;
    margin-left: 6px;
}

@media (max-width: 992px) {
    .container-div {
        flex-direction: column;
    }

    #more_tools {
        width: 100%;
        order: 2;
    }

    .main-sidebar-div {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .main-tool-area {
        order: 1;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(255,215,26,1) 0%, rgba(255,228,97,1) 15%, rgba(255,230,108,1) 30%, rgba(255,231,112,1) 100%);
        z-index: 100;
        padding: 10px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li a {
        display: block;
        padding: 12px 20px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-sidebar-div {
        grid-template-columns: repeat(2, 1fr);
    }

    .bottom-btn {
        flex-direction: column;
    }

    .btn_forms {
        min-width: 100%;
    }

    .footer_section {
        flex-direction: column;
        text-align: center;
    }

    textarea.tool-div {
        font-size: 15px;
        min-height: 200px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .diff-layout {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .main-sidebar-div {
        grid-template-columns: 1fr;
    }

    .bottom-left {
        gap: 8px;
    }

    .item-bottom {
        font-size: 11px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
