:root {
    --primary-bg: #eef2f5;
    --secondary-bg: #ffffff;
    --text-color: #343a40;
    --heading-color: #2b3035;
    --border-color: #e2e8f0;
    
    /* Soft/Light Theme for Code Editor - Success State (Ten Rengi/Soft Bej) */
    --code-bg-success: #faf6f0;       
    --code-header-bg-success: #f2ebe1; 
    
    /* Error State Background (Kırmızımsı/Pembe) */
    --code-bg-error: #fff0f0;
    --code-header-bg-error: #ffe5e5;

    /* Text Colors */
    --code-text: #2c3e50;
    --code-text-error: #dc3545;
    
    /* Buttons */
    --primary-btn-color: #0d6efd;
    --info-btn-color: #0dcaf0;
    --danger-btn-color: #dc3545;
    
    /* Titles */
    --title-json-color: #0d6efd;
    --title-formatter-color: #0dcaf0;
    --title-validator-color: #198754;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
}

h1 {
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

h1 .json-part { color: var(--title-json-color); }
h1 .formatter-part { color: var(--title-formatter-color); }
h1 .validator-part { color: var(--title-validator-color); }

/* BÜYÜTÜLMÜŞ Paste Butonu Stilleri */
.btn-paste {
    font-size: 1.6rem;
    padding: 20px 60px;
    border-radius: 50px;
    background: linear-gradient(135deg, #20c997, #198754);
    color: white;
    box-shadow: 0 10px 25px rgba(32, 201, 151, 0.4);
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

.btn-paste:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(32, 201, 151, 0.5);
    color: white;
}

/* Tıklanabilir Çıktı Alanı */
.output-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
    transition: background-color 0.3s ease;
}

/* Dinamik Renk Sınıfları */
.output-container.state-success {
    background-color: var(--code-bg-success);
    border-color: #e8dbcc;
}
.output-container.state-success .output-header {
    background-color: var(--code-header-bg-success);
    border-color: #e8dbcc;
    color: #8b7355 !important;
}

.output-container.state-error {
    background-color: var(--code-bg-error);
    border-color: #ffcccc;
}
.output-container.state-error .output-header {
    background-color: var(--code-header-bg-error);
    border-color: #ffcccc;
    color: #dc3545 !important;
}

#output {
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    background-color: transparent; /* Wrapper'dan alacak */
    color: var(--code-text);
    padding: 25px;
    margin: 0;
    max-height: 600px;
    min-height: 300px;
    overflow-y: auto;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    transition: background-color 0.2s ease;
}

/* Cursor and Hover states dependent on the class added by JS */
#output.auto-copy-enabled {
    cursor: pointer;
}
.output-container.state-success #output.auto-copy-enabled:hover { background-color: rgba(0,0,0,0.03); }
.output-container.state-error #output.auto-copy-enabled:hover { background-color: rgba(0,0,0,0.03); }

/* Switch Style Customization */
.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

/* Action Buttons */
.action-btn {
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: translateY(-2px);
}

/* History List - Scrollbar Design */
#historyList::-webkit-scrollbar { width: 6px; }
#historyList::-webkit-scrollbar-track { background: #f1f1f1; }
#historyList::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 10px; }
#historyList::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

/* Custom Scrollbar for Output */
#output::-webkit-scrollbar { width: 8px; height: 8px; }
#output::-webkit-scrollbar-track { background: transparent; }
#output::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }
#output::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }

/* Toastify Customization */
.toastify.toast-success { background: #198754; border-radius: 8px; }
.toastify.toast-error { background: #dc3545; border-radius: 8px; }
.toastify.toast-info { background: #0dcaf0; color: #000; border-radius: 8px; }

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(32, 201, 151, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(32, 201, 151, 0); }
    100% { box-shadow: 0 0 0 0 rgba(32, 201, 151, 0); }
}

.pulse-animation {
    animation: pulse 2.5s infinite;
}

/* Örnek Butonu Stili */
.btn-example {
    font-size: 1.2rem;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-example:hover {
    transform: translateY(-2px);
    background-color: var(--border-color);
}

.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}