/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #cbd5e1 75%, #94a3b8 100%);
    background-attachment: fixed;
    min-height: 100vh;
    font-feature-settings: 'liga' 1, 'kern' 1;
    font-variant-ligatures: common-ligatures;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 4px 32px rgba(59, 130, 246, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(calc(-100% - 450px));
    flex-shrink: 0;
}

.logo-link {
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.08);
}

.logo-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.25);
}

.nav-logo h1 {
    color: #3b82f6;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}

.nav-menu a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}


.nav-menu a:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.nav-menu a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}



/* Tools Section - First Screen - Tailwind Style */
.tools-section {
    padding: 2rem 0;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
}

.tools-section .container {
    width: 100%;
    max-width: 100%;
}

.hero-tools {
    text-align: center;
    margin-bottom: 1rem;
}

.hero-tools .hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom right, #1e293b 0%, #3b82f6 50%, #6366f1 80%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.hero-tools .hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    font-weight: 400;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.tool-card {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    border-radius: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover {
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Two Column Grid Layout - Tailwind Style */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    min-height: 650px;
}

.tool-column {
    display: flex;
    flex-direction: column;
    position: relative;
}

.input-column {
    border-right: 2px solid rgba(226, 232, 240, 0.6);
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 0%, rgba(248, 250, 252, 0.3) 100%);
}

.output-column {
    background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.02) 0%, rgba(30, 41, 59, 0.05) 100%);
    border-left: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.output-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.25rem;
    background: linear-gradient(to right, transparent 0%, rgba(59, 130, 246, 0.4) 50%, transparent 100%);
    z-index: 10;
}

/* Column Header - Tailwind Style */
.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    z-index: 20;
    backdrop-filter: blur(24px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.input-column .column-header {
    background: linear-gradient(to bottom right, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
    border-bottom-color: rgba(226, 232, 240, 0.6);
}

.output-column .column-header {
    background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
}

.column-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, rgba(59, 130, 246, 0.5) 50%, transparent 100%);
}

.column-header h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-column .column-header h3 {
    color: #1e293b;
}

.column-header h3 svg {
    width: 1.125rem;
    height: 1.125rem;
    color: #60a5fa;
    filter: drop-shadow(0 2px 4px rgba(96, 165, 250, 0.4));
}

.input-column .column-header h3 svg {
    color: #3b82f6;
}

.column-badge {
    padding: 0.375rem 0.875rem;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.9) 0%, rgba(99, 102, 241, 0.9) 100%);
    color: white;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

/* Features Overview Section */
.features-overview {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(59, 130, 246, 0.12);
}

.features-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.features-stats .stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-width: 140px;
}

.features-stats .stat:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.features-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-stats .stat-label {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.input-section textarea {
    flex: 1;
    width: 100%;
    min-height: 400px;
    padding: 2rem;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    font-family: ui-monospace, 'SF Mono', 'Cascadia Code', 'Roboto Mono', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    resize: none;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    color: #1e293b;
}

.input-section #yaml-input {
    flex: 1;
    width: 100%;
    min-height: 400px;
    border: none;
    border-radius: 0.5rem;
}

.input-section textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.input-section textarea::placeholder {
    color: #cbd5e1;
}

.input-section textarea::-webkit-scrollbar {
    width: 10px;
}

.input-section textarea::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.3);
}

.input-section textarea::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 5px;
}

.input-section textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.7);
}

.input-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-top: 2px solid rgba(226, 232, 240, 0.6);
    position: relative;
}

.input-actions::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, rgba(59, 130, 246, 0.3) 50%, transparent 100%);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn svg {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Specific Button Colors */
.btn-validate {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-validate:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-format {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-format:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-convert {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-convert:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: rgba(248, 250, 252, 0.95);
    color: #64748b;
    border: 2px solid rgba(226, 232, 240, 0.8);
    grid-column: 1 / -1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: rgba(241, 245, 249, 0.95);
    color: #475569;
    border-color: rgba(203, 213, 225, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-primary.highlighted {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    }
    50% { 
        box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
        transform: translateY(-1px);
    }
}

.output-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    background-color: transparent;
    height: 100%;
    position: relative;
}

.result-box {
    flex: 1;
    padding: 0;
    border-radius: 0;
    font-family: ui-monospace, 'SF Mono', 'Cascadia Code', 'Roboto Mono', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: rgba(255, 255, 255, 0.98);
    border: none;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.result-box:empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 0.9375rem;
    min-height: 100%;
    background: linear-gradient(to bottom right, rgba(248, 250, 252, 0.5) 0%, rgba(241, 245, 249, 0.5) 100%);
    position: relative;
}

.result-box:empty::before {
    content: '✨ Result will appear here...';
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 2rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 2px dashed rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Custom Scrollbar for Result Box */
.result-box::-webkit-scrollbar {
    width: 8px;
}

.result-box::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
    border-radius: 0;
}

.result-box::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
    border: 1px solid transparent;
    background-clip: padding-box;
}

.result-box::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.5);
    background-clip: padding-box;
}

/* Custom Scrollbar for Textarea */
.input-section textarea::-webkit-scrollbar {
    width: 10px;
}

.input-section textarea::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.2);
    border-radius: 5px;
}

.input-section textarea::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.input-section textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.6);
    background-clip: padding-box;
}

/* Warning State */
.result-box.warning {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.95) 0%, rgba(254, 243, 199, 0.95) 100%);
}

.result-box.warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

/* Info State */
.result-box.info {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(219, 234, 254, 0.95) 100%);
}

.result-box.info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

/* Result Box Content Styling */
.result-box.success,
.result-box.error,
.result-box.warning,
.result-box.info {
    padding: 1.5rem 1.5rem 1.5rem 2rem;
}

.result-box.success {
    color: #065f46;
}

.result-box.error {
    color: #991b1b;
}

.result-box.warning {
    color: #92400e;
}

.result-box.info {
    color: #1e40af;
}

/* Info Section */
.info-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    padding: 6rem 0;
    border-top: 1px solid rgba(59, 130, 246, 0.12);
    position: relative;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 214, 160, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.info-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1e293b;
    text-align: center;
}

.info-content {
    max-width: 800px;
    margin: 0 auto;
}

.info-content p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.info-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 2rem 0 1rem 0;
}

.info-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-content li {
    margin-bottom: 0.5rem;
    color: #64748b;
    line-height: 1.6;
}

.info-content strong {
    color: #1e293b;
    font-weight: 600;
}

/* Features Section */
.features-section {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 6rem 0;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 35%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 75% 65%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 50% 20%, rgba(6, 214, 160, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.features-section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 2.5rem 1.5rem;
    border-radius: 18px;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.feature-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.feature-icon img {
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.2));
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon img {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Enhanced Features Styles */
.features-hero {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.features-hero h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.features-subtitle {
    font-size: 1.3rem;
    color: #64748b;
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    font-weight: 400;
}

.features-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.25);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.features-content {
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.features-content h3 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: #1e293b;
}

.feature-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.feature-benefits {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    position: relative;
    z-index: 1;
}

.feature-benefits li {
    color: #475569;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.feature-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
}

.features-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(226, 232, 240, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}

.features-cta h3 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-cta p {
    font-size: 1.15rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
}

/* Resource Sections */
.resource-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    padding: 6rem 0;
    border-top: 1px solid rgba(59, 130, 246, 0.12);
    position: relative;
}

.resource-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.resource-section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.resource-content {
    position: relative;
    z-index: 1;
}

/* Syntax Guide Styles */
.syntax-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.syntax-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.syntax-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 50px rgba(59, 130, 246, 0.15);
}

.syntax-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.syntax-card h3 img {
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}

.code-example {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.code-example pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-example code {
    font-family: ui-monospace, 'SF Mono', 'Cascadia Code', 'Roboto Mono', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e2e8f0;
}

/* Best Practices Styles */
.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.practice-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.practice-card:hover::before {
    opacity: 1;
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 60px rgba(59, 130, 246, 0.2);
}

.practice-icon {
    margin-bottom: 1.5rem;
    text-align: center;
}

.practice-icon img {
    filter: drop-shadow(0 2px 6px rgba(59, 130, 246, 0.2));
    transition: transform 0.3s ease;
}

.practice-card:hover .practice-icon img {
    transform: scale(1.1);
}

.practice-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.practice-card p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.example {
    background: rgba(248, 250, 252, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    margin-top: 1rem;
}

.example strong {
    color: #1e293b;
    font-weight: 600;
    display: block;
    margin-bottom: 0.8rem;
}

.example pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 0;
    font-family: ui-monospace, 'SF Mono', 'Cascadia Code', 'Roboto Mono', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

.example ul {
    margin: 0.5rem 0 0 1.5rem;
    color: #64748b;
}

.example ul li {
    margin-bottom: 0.3rem;
}

/* Examples Section */
.example-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
    border-bottom: 2px solid rgba(59, 130, 246, 0.1);
    padding-bottom: 1rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tab-btn img {
    filter: drop-shadow(0 1px 2px rgba(59, 130, 246, 0.2));
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    transform: translateY(-2px);
}

.tab-btn:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-color: #3b82f6;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.tab-btn.active img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.example-content {
    margin-top: 2rem;
    position: relative;
}

.tab-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
}

.tab-panel.active {
    display: block;
    animation: fadeInSmooth 0.3s ease forwards;
}

@keyframes fadeInSmooth {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.example-card-single {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}

.example-card-single::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
}

.example-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.example-header img {
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.2));
    align-self: center;
}

.example-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.example-header p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .example-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    
    .example-card-single {
        padding: 2rem;
    }
    
    .example-header h3 {
        font-size: 1.3rem;
    }
    
    .example-header p {
        font-size: 0.9rem;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: white;
    padding: 4rem 0 2rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        justify-content: center;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-logo {
        position: static;
        transform: none;
    }
    
    .nav-menu {
        gap: 1.2rem;
        padding: 0.5rem 1.2rem;
        border-radius: 30px;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .nav-logo h1 {
        font-size: 1.4rem;
    }
    
    .logo-link {
        padding: 0.6rem 1rem;
    }
    
    .hero-tools .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tools .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .features-stats .stat {
        max-width: 200px;
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .input-column {
        border-right: none;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    }
    
    .column-header {
        padding: 1rem 1.5rem;
    }
    
    .input-section textarea {
        min-height: 300px;
    }
    
    .input-actions {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        padding: 1rem 1.5rem;
    }
    
    .btn-secondary {
        grid-column: 1;
    }
    
    .output-section {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-tools .hero-title {
        font-size: 2rem;
    }
    
    .tools-section {
        padding: 2rem 0;
    }
    
    .info-section {
        padding: 2rem 0;
    }
    
    .features-section {
        padding: 2rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .column-header h3 {
        font-size: 0.875rem;
    }
    
    .column-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .input-section textarea {
        min-height: 250px;
        padding: 1.25rem;
        font-size: 13px;
    }
    
    .output-section {
        padding: 1.25rem;
    }
    
    .btn {
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
    }
    
    .resource-section h2 {
        font-size: 2.5rem;
    }
    
    .syntax-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .practices-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .syntax-card,
    .practice-card {
        padding: 2rem 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Copy Button */
.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background: rgba(59, 130, 246, 1);
    color: white;
    border-color: rgba(59, 130, 246, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.result-box:hover .copy-btn {
    opacity: 1;
}

.copy-btn:active {
    transform: translateY(0);
}

/* Enhanced Result Display Styles */
.result-success, .result-error {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.result-success {
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.result-error {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.03) 0%, rgba(30, 41, 59, 0.05) 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    backdrop-filter: blur(10px);
}

.result-success .result-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.03) 100%);
    border-bottom-color: rgba(16, 185, 129, 0.2);
}

.result-error .result-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.03) 100%);
    border-bottom-color: rgba(239, 68, 68, 0.2);
}

.result-icon {
    font-size: 2rem;
    line-height: 1;
}

.result-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.result-message {
    color: #475569;
    font-size: 0.95rem;
    padding: 1.5rem 2rem;
    line-height: 1.7;
    background: transparent;
    flex: 1;
    overflow-y: auto;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.5) 0%, rgba(241, 245, 249, 0.5) 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    border-top: 1px solid rgba(226, 232, 240, 0.3);
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.formatted-code {
    margin: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
    position: relative;
    border-radius: 0;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.formatted-code pre {
    margin: 0;
    padding: 2rem;
    overflow-x: auto;
    max-height: 100%;
}

.formatted-code pre::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.formatted-code pre::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0;
}

.formatted-code pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.formatted-code pre::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
    background-clip: padding-box;
}

.formatted-code code {
    font-family: ui-monospace, 'SF Mono', 'Cascadia Code', 'Roboto Mono', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #e2e8f0;
}

.conversion-tip {
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.7) 0%, rgba(239, 246, 255, 0.7) 100%);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    padding: 1.5rem 2rem;
    color: #1e40af;
    font-size: 0.9rem;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 8px rgba(59, 130, 246, 0.05);
}

.conversion-tip strong {
    font-weight: 600;
}

.suggestion-text {
    color: #2563eb;
    font-style: normal;
    font-weight: 500;
}

/* Enhanced Result Header Styles */
.result-header-text {
    flex: 1;
}

.result-header-text h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
}

.result-header-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 400;
}

.result-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.result-icon-wrapper.error-icon {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
}

/* Error Stats Bar */
.error-stats {
    display: flex;
    gap: 1.25rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    margin: 1.25rem 0;
}

.stat-item-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-item-inline svg {
    flex-shrink: 0;
}

.stat-item-inline.error-stat {
    color: #dc2626;
}

.stat-item-inline.warning-stat {
    color: #f59e0b;
}

/* Validation Issues Container */
.validation-issues {
    background: rgba(255, 255, 255, 0.95);
}

/* Issues Header */
.issues-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.04) 0%, rgba(30, 41, 59, 0.06) 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    backdrop-filter: blur(10px);
}

.issues-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.issues-header svg {
    flex-shrink: 0;
}

.issues-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
}

/* Error List Container */
.error-list, .warnings-section {
    background: transparent;
    overflow: hidden;
    flex: 1;
    overflow-y: auto;
}

.warnings-section {
    border-top: 1px solid rgba(226, 232, 240, 0.3);
}

/* Error Item Styles */
.error-item, .warning-item {
    position: relative;
    padding: 1.75rem 2rem 1.75rem 2.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out forwards;
    opacity: 0;
    margin: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-item:last-child, .warning-item:last-child {
    border-bottom: none;
}

.error-item:hover, .warning-item:hover {
    background: rgba(248, 250, 252, 1);
    transform: translateX(2px);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
}

.error-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
    transition: width 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.error-item:hover::before {
    width: 5px;
}

.warning-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
    transition: width 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.warning-item:hover::before {
    width: 5px;
}

/* Error Item Header */
.error-item-header, .warning-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.error-badge, .warning-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.error-number, .warning-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 0.6rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-type, .warning-type {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.error-type {
    background: linear-gradient(135deg, rgba(254, 202, 202, 0.95) 0%, rgba(252, 165, 165, 0.95) 100%);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.warning-type {
    background: linear-gradient(135deg, rgba(254, 215, 170, 0.95) 0%, rgba(253, 186, 116, 0.95) 100%);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.error-location, .warning-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    font-family: ui-monospace, 'SF Mono', 'Cascadia Code', 'Roboto Mono', monospace;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.error-location svg, .warning-location svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Error Content */
.error-content, .warning-content {
    padding-left: 0.5rem;
}

.error-message, .warning-message {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.error-message svg, .warning-message svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: #ef4444;
}

.warning-message svg {
    color: #f59e0b;
}

.error-message p, .warning-message p {
    margin: 0;
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

/* Suggestion Box */
.error-suggestion, .warning-suggestion {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.9) 0%, rgba(191, 219, 254, 0.9) 100%);
    border: 1px solid rgba(147, 197, 253, 0.6);
    border-radius: 10px;
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    margin-top: 0.5rem;
}

.error-suggestion svg, .warning-suggestion svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: #3b82f6;
}

.error-suggestion p, .warning-suggestion p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.error-suggestion strong, .warning-suggestion strong {
    font-weight: 600;
    color: #1e40af;
}

.warning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warning-list li {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.9) 0%, rgba(254, 243, 199, 0.9) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.1);
}

.warning-list li strong {
    color: #92400e;
}

.warning-list li em {
    color: #1e40af;
    font-style: italic;
}

/* Tutorial Styles */
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tutorial-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.tutorial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.tutorial-card h3 {
    margin: 0 0 1rem 0;
    color: #1e293b;
    font-size: 1.25rem;
}

.tutorial-card h3 a {
    color: inherit;
    text-decoration: none;
}

.tutorial-card h3 a:hover {
    color: #3b82f6;
}

.tutorial-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.tutorial-topics {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.tutorial-topics li {
    padding: 0.25rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

.tutorial-progress {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-title {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.tutorial-cta {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    border-radius: 12px;
    padding: 0.5rem;
    text-align: center;
    margin: 1rem 0;
}

.tutorial-cta h2 {
    margin: 0 0 1rem 0;
    font-size: 2rem;
}

.tutorial-cta p {
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.tutorial-header {
    margin-bottom: 2rem;
}

.breadcrumb {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.tutorial-intro {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.tutorial-content {
    max-width: 1080px;
    margin: 0 auto;
}

.tutorial-section {
    margin-bottom: 3rem;
}

.tutorial-section h2 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.tutorial-section h3 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.tutorial-section h4 {
    color: #4b5563;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.code-example {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.code-example h3 {
    background: #1e293b;
    color: white;
    margin: 0;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.code-example pre {
    margin: 0;
    padding: 1.5rem;
    background: #1e293b;
    color: #e2e8f0;
    overflow-x: auto;
    font-family: ui-monospace, 'SF Mono', 'Cascadia Code', 'Roboto Mono', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.highlight-box, .best-practices-box, .warning-box, .important-box {
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.best-practices-box {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 1px solid #86efac;
    color: #166534;
}

.warning-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fbbf24;
    color: #92400e;
}

.important-box {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    border: 1px solid #f9a8d4;
    color: #be185d;
}

.practice-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.practice-box h3 {
    margin: 0 0 1rem 0;
    color: #1e293b;
}

.practice-box details {
    margin-top: 1rem;
}

.practice-box summary {
    cursor: pointer;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.practice-box summary:hover {
    color: #2563eb;
}

.tutorial-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e2e8f0;
}

.data-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.data-type-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.data-type-card h3 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
}

.data-type-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.ide-support {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.ide-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.ide-card h3 {
    margin: 0 0 1rem 0;
    color: #1e293b;
}

.ide-card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.ide-card li {
    margin: 0.5rem 0;
    color: #64748b;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tool-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    text-align: left;
}

.tool-card h3 {
    margin: 0 0 1rem 0;
    color: #1e293b;
}

.tool-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.tool-card li {
    padding: 0.25rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

.troubleshooting-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.issue {
    margin: 1.5rem 0;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #3b82f6;
}

.issue h4 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
}

.issue p {
    margin: 0.5rem 0;
    color: #64748b;
}

/* Responsive adjustments for tutorial pages */
@media (max-width: 768px) {
    .tutorial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tutorial-card {
        padding: 1.5rem;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step {
        flex-direction: row;
        text-align: left;
        min-width: auto;
    }
    
    .step-number {
        margin-right: 1rem;
        margin-bottom: 0;
    }
    
    .tutorial-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .data-types-grid,
    .ide-support,
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
