

/* .tool-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
} */

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

.tool-header h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
}

.tool-header p {
    color: var(--secondary-color);
    font-size: 16px;
}

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

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

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

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

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

.editor-label h3 {
    color: var(--primary-color);
    font-size: 18px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

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

.action-btn:hover {
    color: var(--primary-color);
}

.json-editor, .json-result {
    width: 100%;
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    font-family: monospace;
    /* font-size: 14px; */
    line-height: 1.6;
    resize: none;
    outline: none;
    overflow: auto;
    background-color: #f9fafc;
    transition: border-color 0.3s;
}

.json-editor:focus, .json-result:focus {
    border-color: var(--primary-color);
}

.json-result {
    background-color: #f9fafc;
    white-space: pre-wrap;
}

.btn-group {
    display: flex;
    /* justify-content: center; */
    gap: 15px;
    margin: 20px 0;
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

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

.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);
    color: var(--error-color);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

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

.line-numbers {
    counter-reset: line;
    color: #aaa;
    user-select: none;
}

.json-result .property {
    color: #2980b9;
}

.json-result .string {
    color: #27ae60;
}

.json-result .number {
    color: #8e44ad;
}

.json-result .boolean {
    color: #f39c12;
}

.json-result .null {
    color: #e74c3c;
}

.options-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.spacing-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.spacing-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color);
    font-size: 14px;
    cursor: pointer;
}

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

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

.spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}