:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
}

/*body {
    background-color: #f8f9fa;
    padding-top: 20px;
    padding-bottom: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}*/

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2.5rem 0;
    border-radius: 0.75rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.code-container {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.code-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.code-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #34495e;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.CodeMirror {
    height: 400px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.btn-format {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    color: white;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.3);
}

.btn-format:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f639e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(52, 152, 219, 0.4);
    color: white;
}

.options-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    padding: 1.75rem;
    transition: transform 0.3s ease;
}

.options-card:hover {
    transform: translateY(-5px);
}

.footer {
    margin-top: 3.5rem;
    text-align: center;
    color: #6c757d;
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
}

.char-count {
    font-size: 0.85rem;
    color: #bdc3c7;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-select:focus, .form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.example-code {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 0.25rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.tool-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tool-icon {
    font-size: 1.75rem;
}

.feature-badge {
    background-color: var(--accent-color);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.stats-card {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.9rem;
    opacity: 0.9;
}
