* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 45px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-image {
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-item {
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 2px;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    position: relative;
}

.nav-item:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-item.active {
    background-color: rgba(255,255,255,0.2);
    font-weight: 600;
}

/* Dropdown Navigation Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}


.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 280px;
    margin-top: 8px;
    border: 1px solid rgba(0,0,0,0.1);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.nav-dropdown-item.active {
    background-color: #e3f2fd;
    color: #007bff;
    border-left: 3px solid #007bff;
}

.dropdown-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.dropdown-desc {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.3;
}

.nav-dropdown-item.active .dropdown-desc {
    color: #0056b3;
}



/* Tabs */
.tabs {
    display: flex;
    background: white;
    border-radius: 3px 3px 0 0;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.tab {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.tab:hover {
    background-color: #f8f9fa;
}

.tab.active {
    border-bottom-color: #007bff;
    color: #007bff;
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Sub Tabs */
.sub-tabs {
    display: flex;
    background: white;
    padding: 8px 15px;
    border-bottom: 1px solid #e9ecef;
    gap: 15px;
    overflow-x: auto;
}

.sub-tab {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-size: 13px;
    white-space: nowrap;
}

.sub-tab:hover {
    background-color: #f8f9fa;
}

.sub-tab.active {
    background-color: #007bff;
    color: white;
}

.sub-tab.highlight {
    background-color: #fff3cd;
    color: #856404;
    font-weight: 500;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-top: 0;
    background: white;
    border-radius: 0 0 3px 3px;
    flex: 1;
}

.tool-section {
    padding: 20px;
}

.section-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
}

.section-description {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tool-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-section {
    background: #f8f9fa;
    border-radius: 3px;
    border: 1px solid #e9ecef;
    position: relative;
}

.input-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #e9ecef;
    border-radius: 3px 3px 0 0;
    font-size: 14px;
    font-weight: 500;
}

.line-number {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
}

.json-editor {
    width: 100%;
    min-height: 400px;
    max-height: calc(100vh - 350px);
    border: none;
    border-radius: 0 0 3px 3px;
    background: white;
    transition: height 0.2s ease;
}

/* Ace Editor integration styles */
.json-editor .ace_editor {
    border: none;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.json-editor .ace_gutter {
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    color: #6c757d;
}

.json-editor .ace_gutter-cell {
    padding-left: 8px;
    padding-right: 8px;
}

.json-editor .ace_fold-widget {
    color: #6c757d;
}

.json-editor .ace_fold-widget:hover {
    color: #007bff;
}

.json-editor .ace_active-line {
    background: rgba(0, 123, 255, 0.05);
}

.json-editor .ace_cursor {
    color: #007bff;
}

.json-editor .ace_selection {
    background: rgba(0, 123, 255, 0.2);
}

/* CodeMirror will handle syntax highlighting */

.controls {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.status-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.status-icon {
    color: #28a745;
    font-weight: bold;
}

.output-actions {
    display: flex;
    gap: 8px;
}


/* Sidebar */
.sidebar {
    background: #f8f9fa;
    padding: 20px 15px;
    border-left: 1px solid #e9ecef;
}

.ad-space {
    margin-bottom: 20px;
}

.ad-placeholder {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 3px;
    text-align: center;
}

.ad-placeholder h3 {
    margin-bottom: 8px;
    font-size: 16px;
}

.ad-placeholder p {
    margin-bottom: 10px;
    font-size: 14px;
}

.ad-placeholder small {
    font-size: 11px;
    opacity: 0.8;
}

.history-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #495057;
}

.empty-history {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.empty-history p {
    font-size: 14px;
}

/* Bottom Controls */
.bottom-controls {
    background: white;
    padding: 15px;
    margin-top: 15px;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 2px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.control-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.control-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
}

.control-checkbox input {
    margin: 0;
}

.credits {
    margin-left: auto;
    font-size: 12px;
    color: #6c757d;
}

/* JSON Syntax Highlighting - Modern Theme */
.json-key {
    color: #007bff;
    font-weight: 600;
}

.json-string {
    color: #28a745;
}

.json-number {
    color: #fd7e14;
    font-weight: 500;
}

.json-boolean {
    color: #6f42c1;
    font-weight: 600;
}

.json-null {
    color: #6c757d;
    font-weight: 600;
    font-style: italic;
}

.json-punctuation {
    color: #495057;
    font-weight: 500;
}

/* JSON formatting in textarea */
.json-formatted {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    border-radius: 3px;
}

/* Error States */
.error {
    color: #dc3545;
}

.error .status-icon {
    color: #dc3545;
}

.success {
    color: #28a745;
}

/* Footer Styles */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
    padding: 30px 0 15px 0;
    flex-shrink: 0;
}

/* Footer Navigation Styles */
.footer-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.footer-nav-section {
    display: flex;
    flex-direction: column;
}

.footer-nav-title {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    width: fit-content;
}

.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav-list li {
    margin: 0;
}

.footer-nav-list a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
    padding: 2px 0;
}

.footer-nav-list a:hover {
    color: #007bff;
    text-decoration: underline;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-content p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007bff;
}

.footer-separator {
    color: #dee2e6;
    margin: 0 10px;
    font-size: 14px;
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.contact-icon {
    font-size: 12px;
}

/* Full Width Main Content */
.main-content-full {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.main-content-full .tool-section {
    width: 100%;
}

/* Options Section - Horizontal Layout */
.options-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.table-options-horizontal h3,
.quick-examples-horizontal h3,
.color-legend-horizontal h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #495057;
}

.option-group-horizontal {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.option-group-horizontal .option-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.option-group-horizontal input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.quick-examples-horizontal .example-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.quick-examples-horizontal .example-btn {
    padding: 0.5rem;
    font-size: 0.85rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.quick-examples-horizontal .example-btn:hover {
    background: #0056b3;
}

.legend-items-horizontal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legend-items-horizontal .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-items-horizontal .legend-color {
    width: 24px;
    height: 24px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.legend-items-horizontal .legend-label {
    font-size: 0.85rem;
    color: #495057;
}

/* JSON to Table specific styles */
.converter-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.converter-panel {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.panel-title {
    font-weight: 600;
    color: #495057;
}

.panel-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.panel-info {
    font-size: 0.85rem;
    color: #6c757d;
}

.btn-icon {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

/* Fullscreen Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    overflow: auto;
}

.fullscreen-modal.active {
    display: block;
}

.fullscreen-modal-header {
    background: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10001;
}

.fullscreen-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.fullscreen-modal-header .btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem;
}

.fullscreen-modal-header .btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.fullscreen-table-output {
    padding: 2rem;
    background: white;
    margin: 2rem;
    border-radius: 8px;
    min-height: calc(100vh - 200px);
    overflow: auto;
}

.json-editor.input-editor {
    height: 400px;
}

.table-output-container {
    height: 400px;
    overflow: auto;
    padding: 1rem;
}

.table-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.converter-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Generated tables */
.json-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
}

.json-table th,
.json-table td {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    text-align: left;
}

.json-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .converter-layout {
        grid-template-columns: 1fr;
    }
    
    .options-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quick-examples-horizontal .example-buttons {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        border-left: none;
        border-top: 1px solid #e9ecef;
    }
    
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logo {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .nav {
        justify-content: center;
    }
    
    .control-group {
        justify-content: center;
    }
    
    .controls {
        gap: 4px;
        justify-content: center;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .credits {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }
    
    .footer-navigation {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .footer-nav-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .footer-nav-list a {
        font-size: 13px;
        padding: 1px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-links {
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .tool-section {
        padding: 20px 15px;
    }
    
    .nav {
        gap: 10px;
    }
    
    .nav-item {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .controls {
        gap: 3px;
    }
    
    .btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .footer {
        padding: 20px 0 12px 0;
        margin-top: 20px;
    }

    .footer-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .footer-nav-title {
        font-size: 14px;
        margin-bottom: 10px;
        text-align: center;
    }

    .footer-nav-list {
        text-align: center;
        gap: 6px;
    }

    .footer-nav-list a {
        font-size: 12px;
    }

    .footer-content p,
    .footer-links a {
        font-size: 13px;
    }

    .footer-links {
        gap: 12px;
    }
}

/* Database to CSV Converter Layout */
.db-converter-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Compact Database Input/Output styles */
.db-input-compact, .csv-output-compact {
    width: 100%;
    height: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    resize: vertical;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.4;
}

.db-input-compact:focus, .csv-output-compact:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.csv-output-compact {
    background-color: #fff;
}

/* Center Controls and Options */
.converter-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Converter Options - Horizontal Layout */
.converter-options {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
}

.option-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #007bff;
}

.delimiter-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    color: #333;
    cursor: pointer;
}

.delimiter-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.custom-delimiter {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: monospace;
    width: 120px;
    margin-left: 10px;
}

.custom-delimiter:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Converter Controls - Centered */
.converter-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .db-input-compact, .csv-output-compact {
        height: 300px;
        font-size: 12px;
    }
    
    .converter-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .sample-buttons-main {
        gap: 0.5rem;
    }
    
    .sample-btn-main {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .converter-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .converter-controls .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* =====================================================
   DATABASE TO CSV PAGE STYLES - SEO ENHANCEMENT
   ===================================================== */

/* Main Sample Data Section */
.sample-data-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sample-title {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.sample-buttons-main {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.sample-btn-main {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    box-shadow: 0 2px 6px rgba(0,123,255,0.2);
    min-width: 100px;
}

.sample-btn-main:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,123,255,0.3);
}

/* Compact sample button style */
.sample-btn-compact {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    box-shadow: 0 1px 3px rgba(0,123,255,0.2);
    min-width: 80px;
}

.sample-btn-compact:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,123,255,0.3);
}

.sample-btn-compact .sample-icon {
    font-size: 0.9rem;
}

.sample-btn-compact .sample-name {
    font-size: 0.7rem;
}

/* Flex sample data layout */
.sample-data-flex {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.sample-title-flex {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.sample-buttons-flex {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sample-btn-flex {
    background: #ffffff;
    color: #6c757d;
    border: 2px solid #dee2e6;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 85px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sample-btn-flex:hover {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.sample-btn-flex .sample-icon {
    font-size: 0.9rem;
}

.sample-btn-flex .sample-name {
    font-size: 0.7rem;
    font-weight: 600;
}

.sample-icon {
    font-size: 1rem;
}

.sample-name {
    font-weight: 600;
}

/* Tool Header Enhancement */
.tool-header {
    margin-bottom: 2rem;
}

.tool-header .section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.tool-header .section-description {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 900px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefit-content h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.benefit-content p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* SEO Content Sections */
.seo-content {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.content-section {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.content-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.content-section h3 {
    color: #495057;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.content-section p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Usage Steps */
.usage-steps {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.usage-steps li {
    counter-increment: step-counter;
    position: relative;
    padding: 1rem 0 1rem 3rem;
    margin-bottom: 1rem;
    border-left: 2px solid #e9ecef;
}

.usage-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: -1rem;
    top: 1rem;
    background: #007bff;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.usage-steps li strong {
    color: #2c3e50;
}

/* Database Formats */
.database-formats {
    display: grid;
    gap: 2rem;
    margin-top: 1rem;
}

.format-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.format-item h3 {
    color: #28a745;
    margin-bottom: 1rem;
}

.format-example {
    margin-top: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.format-example strong {
    color: #495057;
    display: block;
    margin-bottom: 0.5rem;
}

.format-example pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.feature-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-item p {
    margin: 0;
    font-size: 0.9rem;
}

/* Use Cases */
.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.use-case {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.use-case h3 {
    color: #17a2b8;
    margin-bottom: 1rem;
}

/* FAQ Items */
.faq-items {
    margin-top: 1rem;
}

.faq-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #ffc107;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.faq-item h3 {
    color: #495057;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.faq-item p {
    margin: 0;
    color: #6c757d;
}

/* Responsive Design for SEO Content */
@media (max-width: 768px) {
    .tool-header .section-title {
        font-size: 2rem;
    }
    
    .tool-header .section-description {
        font-size: 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        padding: 1rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .use-cases {
        grid-template-columns: 1fr;
    }
    
    .database-formats {
        gap: 1rem;
    }
    
    .format-item {
        padding: 1rem;
    }
}

/* =====================================================
   DATABASE TO CSV SIDEBAR STYLES
   ===================================================== */

/* Sidebar Layout */
.sidebar {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar-card {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.sidebar-card:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Quick Steps */
.quick-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem;
    background: #f8f9fa;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.step-item:hover {
    background: #e9ecef;
}

.step-number {
    background: #007bff;
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-text {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Format List */
.format-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.format-list .format-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: none;
    transition: all 0.3s ease;
}

.format-list .format-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.format-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.format-info strong {
    color: #2c3e50;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.2rem;
}

.format-info small {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-list li {
    color: #495057;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f3f4;
    line-height: 1.4;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Sample Buttons */
.sample-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.sample-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sample-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.sample-note {
    color: #6c757d;
    font-size: 0.8rem;
    font-style: italic;
    text-align: center;
    display: block;
}

/* Tips List */
.tips-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tip-item {
    background: #f8f9fa;
    padding: 0.6rem;
    border-radius: 4px;
    border-left: 3px solid #28a745;
    font-size: 0.85rem;
    line-height: 1.3;
}

.tip-item strong {
    color: #28a745;
    font-weight: 600;
}

/* Related Tools */
.related-tools {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tool-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem;
    background: #f8f9fa;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tool-link:hover {
    background: #e9ecef;
    text-decoration: none;
    color: inherit;
    transform: translateX(3px);
    border-color: #007bff;
}

.tool-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tool-info strong {
    color: #2c3e50;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.2rem;
}

.tool-info small {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.3;
}

/* SEO Content Section Full Width */
.seo-content-section {
    background: #f8f9fa;
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.seo-content-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive Design for Sidebar */
@media (max-width: 1024px) {
    .sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .sidebar-card {
        padding: 1rem;
    }
    
    .sample-buttons {
        grid-template-columns: 1fr;
    }
    
    .sample-data-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .sample-buttons-flex {
        gap: 0.4rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        padding: 1rem;
    }
    
    .sidebar-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .sidebar-title {
        font-size: 1rem;
    }
    
    .quick-steps {
        gap: 0.6rem;
    }
    
    .step-item {
        padding: 0.4rem;
    }
    
    .step-text {
        font-size: 0.8rem;
    }
    
    .format-list .format-item {
        padding: 0.6rem;
    }
    
    .tip-item {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
} 