:root {
    --primary-color: #2563eb;
    /* More vibrant Blue */
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --accent-color: #7c3aed;
    /* Added Violet accent */
    --secondary-color: #475569;
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    /* Deeper slate for better contrast */
    --text-muted: #475569;
    --border-color: #cbd5e1;
    --success-bg: #d1fae5;
    --success-text: #064e3b;
    --shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(37, 99, 235, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    background: radial-gradient(circle at top right, #dbeafe, transparent 40%),
        radial-gradient(circle at bottom left, #ede9fe, transparent 40%),
        var(--bg-color);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

header h1 {
    font-size: 2.75rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.1));
}

#addon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: var(--primary-color) !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

#addon:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.privacy-banner {
    background: var(--success-bg);
    color: var(--success-text);
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    border-left: 4px solid #10b981;
    font-weight: 500;
}

.editor-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

select,
.btn-primary {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
}

select {
    border: 1px solid var(--border-color);
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.btn-convert {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    border: none;
    font-weight: 800;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-convert:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
}

.btn-convert:active {
    transform: translateY(0) scale(0.98);
}

.examples-section {
    margin-top: 40px;
}

.examples-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.example-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.example-card:hover {
    transform: translateY(-4px);
}

.example-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.tag-conversion {
    background: #eff6ff;
    color: #3b82f6;
}

.tag-spacing {
    background: #fdf2f8;
    color: #db2777;
}

.example-content b {
    color: var(--text-main);
}

.example-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.example-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.example-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
}

footer {
    margin-top: 32px;
    padding: 32px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.footer-links {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* TinyMCE customization overrides */
.mce-tinymce {
    border-radius: 12px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: none !important;
}

@media (max-width: 640px) {
    header {
        justify-content: center;
        text-align: center;
    }

    #addon {
        display: none !important;
    }

    .main-container {
        padding: 40px 16px;
    }
}
