.tool-header-section {
    background-color: var(--bg-white);
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.tool-header-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-header-section p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.tool-container {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    min-height: 400px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.tool-info-section {
    margin-top: 50px;
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.tool-info-section h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    display: inline-block;
}

.tool-info-section h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 30px 0 15px;
    font-weight: 600;
}

.tool-info-section p,
.tool-info-section li {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
}

.tool-info-section ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.2s ease;
}

.feature-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-blue);
    background: #f0f9ff;
}

.feature-box h4 {
    color: var(--text-dark);
    margin: 10px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-box i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.feature-box p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.support-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    text-align: center;
    transition: all 0.2s ease;
}

.support-card:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: #f0f9ff;
}

.support-card i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    display: block;
}

.support-card span {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.support-card:hover span {
    color: var(--primary-blue);
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.step-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.step-number {
    background: var(--primary-blue);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 15px;
}

.step-card h4 {
    margin: 0 0 10px 0;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.step-card p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-light);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.tip-box {
    display: flex;
    gap: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary-blue);
    padding: 15px;
    border-radius: 6px;
    align-items: flex-start;
}

.tip-box i {
    color: var(--primary-blue);
    font-size: 1.2rem;
    background: #f0f9ff;
    padding: 8px;
    border-radius: 6px;
}

.tip-content h4 {
    margin: 0 0 5px 0;
    color: var(--text-dark);
    font-size: 1rem;
}

.tip-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.hidden {
    display: none;
}

.input-fields {
    display: none;
}

.input-fields.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1e293b;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 2000;
}

#notification.show {
    transform: translateY(0);
    opacity: 1;
}

.result-box {
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.result-box.show {
    opacity: 1;
    transform: translateY(0);
}

.diff-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
    justify-content: space-between;
}

.diff-stat-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    flex: 1;
    min-width: 140px;
    gap: 15px;
    transition: transform 0.2s;
}

.diff-stat-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.diff-stat-icon {
    width: 40px;
    height: 40px;
    background: #f0f9ff;
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.diff-stat-info {
    display: flex;
    flex-direction: column;
}

.diff-stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.diff-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.diff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .diff-grid {
        grid-template-columns: 1fr;
    }
}

.input-container {
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    transition: all 0.2s;
}

.input-container:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.editor-wrapper {
    position: relative;
    display: flex;
    height: 350px;
    overflow: hidden;
}

.line-numbers {
    width: 35px;
    background: #f8fafc;
    border-right: 1px solid var(--border-color);
    text-align: right;
    padding: 10px 5px;
    font-size: 11px;
    line-height: 1.5;
    color: #cbd5e1;
    user-select: none;
    overflow: hidden;
    white-space: pre-wrap;
}

.code-textarea {
    flex: 1;
    border: none;
    resize: none;
    padding: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    outline: none;
    white-space: pre;
    overflow-x: auto;
    overflow-y: scroll;
    background: transparent;
}

.diff-result-main {
    margin-top: 30px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.diff-result-header {
    background: #f8fafc;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.diff-legend {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.diff-split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .diff-split-view {
        grid-template-columns: 1fr;
    }
}

.diff-pane {
    position: relative;
    display: flex;
    flex-direction: column;
}

.diff-pane:first-child {
    border-right: 1px solid var(--border-color);
}

.diff-pane-title {
    background: #f1f5f9;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
}

.diff-content {
    padding: 15px;
    font-size: 13.5px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 200px;
    max-height: 600px;
    overflow-y: auto;
    background: #ffffff;
}

.diff-del {
    color: #b91c1c;
    background-color: #fee2e2;
    border-radius: 2px;
    text-decoration: none;
    box-shadow: 0 0 0 1px #fecaca;
}

.diff-ins {
    color: #047857;
    background-color: #d1fae5;
    border-radius: 2px;
    box-shadow: 0 0 0 1px #a7f3d0;
}

.density-container {
    background: #fff;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.tab-btn {
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--primary-blue);
    background: #f1f5f9;
}

.tab-btn.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: var(--shadow-sm);
}

.density-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.density-table th {
    color: var(--text-light);
    font-weight: 600;
    padding: 10px;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.density-table td {
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-dark);
}

.density-table tr:last-child td {
    border-bottom: none;
}

.density-table tr:hover {
    background: #f8fafc;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    background: #f1f5f9;
    color: var(--text-dark);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.density-wrapper {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.density-wrapper.active {
    opacity: 1;
    transform: translateY(0);
}

.config-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.config-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.config-input {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.2s;
    background: #fff;
    color: var(--text-dark);
}

.config-input:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.config-input::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

.avatar-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #f8fafc;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    min-height: 280px;
    position: relative;
}

.preview-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.preview-img.rounded {
    border-radius: 50%;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.action-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.action-btn.primary {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 6px rgba(18, 119, 173, 0.2);
}

.action-btn.primary:hover {
    background: var(--primary-hover);
    color: white;
    box-shadow: 0 6px 12px rgba(18, 119, 173, 0.3);
}

.action-btn.danger {
    color: #ef4444;
}

.action-btn.danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.action-btn i {
    font-size: 1rem;
}

.format-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.format-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 992px) {
    .format-grid {
        grid-template-columns: 1fr;
    }
}

.result-container {
    position: relative;
}

.range-slider {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.copy-overlay {
    position: absolute;
    top: 10px;
    right: 25px;
    z-index: 10;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    transition: all 0.2s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 5px;
    background: #fff;
    gap: 10px;
}

.color-text {
    border: none;
    font-family: monospace;
    font-size: 1rem;
    color: var(--text-dark);
    text-transform: uppercase;
    flex: 1;
    padding: 5px;
}

.color-text:focus {
    box-shadow: none;
}

.color-picker-modern {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0;
    background: none;
    cursor: pointer;
}

.live-link-box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}

#liveLinkInput {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.85rem;
    color: var(--primary-blue);
    outline: none;
    font-family: monospace;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    color: var(--text-dark);
}

.checkbox-wrapper input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-wrapper input:checked~.checkmark {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkbox-wrapper .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-wrapper input:checked~.checkmark:after {
    display: block;
}