

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

.tool-card {
 
    padding: 25px;
    margin-bottom: 30px;
}

.tool-header {
    margin-bottom: 20px;
    text-align: center;
}

.tool-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.tool-header p {
    font-size: 16px;
}

.comparison-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.option-group {
    flex: 1;
    min-width: 200px;
}

.option-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.option-select, .option-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s;
}

.option-select:focus, .option-input:focus {
    outline: none;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    color: white;
}

.btn-secondary {
    color: white;
}

.btn-outline {
    background-color: transparent;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.editor-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .editor-container {
        flex-direction: row;
    }
}

.editor-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.editor-title {
    font-size: 18px;
    font-weight: 600;
}

.editor-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}


.code-textarea {
    width: 100%;
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    /* font-family: 'Courier New', Courier, monospace; */
    /* font-size: 14px; */
    line-height: 1.6;
    resize: none;
    tab-size: 4;
    -moz-tab-size: 4;
    outline: none;
}



.code-display {
    width: 100%;
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: auto;
    position: relative;
    background-color: #282c34;
}

.code-display pre {
    margin: 0;
    padding: 15px;
    /* font-family: 'Courier New', Courier, monospace; */
    font-size: 14px;
    line-height: 1.6;
    tab-size: 4;
    -moz-tab-size: 4;
    counter-reset: line;
}

.code-display .line {
    position: relative;
    display: block;
    padding-left: 60px;
}

.code-display .line:before {
    content: counter(line);
    counter-increment: line;
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 100%;
    border-right: 1px solid #ddd;
    padding-right: 8px;
    color: #888;
    text-align: right;
    user-select: none;
}



.notification {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
}

.notification.error {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.notification.success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.diff-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    text-align: center;
}

.diff-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.diff-stat-box {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}



.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(74, 108, 247, 0.3);
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.file-input {
    display: none;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s;
}


.examples-dropdown {
    position: relative;
    display: inline-block;
}

.examples-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    right: 0;
}

.examples-content button {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
}

.examples-content button:hover {
    background-color: #f1f1f1;
}

.show {
    display: block;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}



input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-label {
    margin-left: 10px;
    cursor: pointer;
}

.toggle-container {
    display: flex;
    align-items: center;
}

.unified-view .editor-container {
    flex-direction: column;
}

/* diff-container */
.unified-view .diff-container {
    flex-direction: column;
}


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

    .comparison-options {
        flex-direction: column;
    }

    .option-group {
        width: 100%;
    }
}
.diff-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .diff-container {
        /* flex-direction: row; */
    }
}

.unified-view .editor-box {
    width: 100%;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .editor-container {
        flex-direction: column;
    }

    .comparison-options {
        flex-direction: column;
    }

    .option-group {
        width: 100%;
    }
}