.disabled-card {
    opacity: 0.55;
    filter: grayscale(0.2);
    pointer-events: none;
}

.disabled-link {
    cursor: not-allowed;
}

/* App Footer Pill */
.app-footer-wrapper {
    display: flex;
    justify-content: center;
}

.app-footer-pill {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 10px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.app-footer-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 0;
    background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 40%, #06b6d4 100%);
}

.footer-emoji {
    font-size: 18px;
}

.footer-text {
    font-weight: 600;
    color: #333;
}

/* Code font: Geist Mono */
pre#nlp-code, code, pre, .code, .result-card pre {
    font-family: 'Geist Mono', 'GeistMono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    font-variation-settings: "wght" 500;
}
.btn.btn-primary#examplesBtnTop {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(49,130,206,0.25);
}

.btn.btn-primary#examplesBtnTop:hover {
    transform: translateY(-1px);
}
.examples-trigger .btn {
    border-radius: 14px;
    padding: 10px 16px;
}

.examples-modal .modal-content {
    border-radius: 16px;
}

.examples-list .example-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
}

.examples-list .example-item:hover {
    border-color: #7c3aed;
    box-shadow: 0 8px 24px rgba(124,58,237,0.12);
}

.dataset-switch .btn {
    border-radius: 999px;
}
.dataset-switch .btn.active {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    color: #fff;
}

.examples-list .section-title {
    font-weight: 700;
    margin: 12px 0 8px 0;
}
.result-card {
    border: 1px solid #e2e8f0;
    border-left: 6px solid #7c3aed; /* purple accent like screenshot */
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.result-info {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 1px solid #e2e8f0;
    border-left: 6px solid #7c3aed;
    border-radius: 12px;
    padding: 10px 12px;
}
/* Smart CSV/Excel Assistant Styles */
body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e0 100%);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.3) 0%, transparent 70%),
                radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.container-fluid {
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(18px);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.brand-title {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 800;
}

.brand-subtitle {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
}

/* Documentation Link - Make it more visible */
.documentation-link {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.documentation-link:hover {
    background: linear-gradient(135deg, #2b6cb0, #3182ce);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
    color: white !important;
    text-decoration: none;
}

.documentation-link i {
    color: white;
    margin-right: 8px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #8e54e9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

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

/* Glass Effect */
.bg-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* File Type Icons */
.file-type-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Summary Cards (like in the image) */
.summary-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.summary-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.summary-content {
    min-height: 80px;
}

.summary-item {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding: 4px 0;
    line-height: 1.4;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-item strong {
    color: #2d3748;
    font-weight: 600;
}

/* Button Styles */
.btn {
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: none;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    color: #fff;
    box-shadow: 0 8px 20px rgba(49, 130, 206, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2b6cb0, #3182ce);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(49, 130, 206, 0.4);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: #fff;
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(72, 187, 120, 0.4);
    color: #fff;
}

/* Form Controls */
.form-control {
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: #2d3748;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 1);
}

.form-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 16px;
    margin-bottom: 8px;
}

/* Enhanced Textarea */
.query-input-wrapper {
    position: relative !important;
    margin-bottom: 1.5rem !important;
}

.enhanced-textarea {
    border-radius: 15px !important;
    border: 2px solid #e3f2fd !important;
    padding: 20px !important;
    padding-right: 60px !important;
    padding-bottom: 50px !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    transition: all 0.3s ease !important;
    resize: vertical !important;
    min-height: 140px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
}

.enhanced-textarea:focus {
    border-color: #2196F3 !important;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25), 0 4px 20px rgba(33, 150, 243, 0.1) !important;
    outline: none !important;
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%) !important;
}

.enhanced-textarea::placeholder {
    color: #6c757d !important;
    font-style: normal !important;
    font-weight: 400 !important;
    opacity: 0.8 !important;
}

/* Clear Button */
.clear-btn {
    background: rgba(220, 53, 69, 0.1) !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
    color: #dc3545 !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
}

/* Put the close (clear) button inside the top-right of the textarea */
.query-input-wrapper .textarea-clear-btn {
    position: absolute !important;
    top: 12px !important;
    right: 16px !important;
    z-index: 3 !important;
}

.clear-btn:hover {
    background: rgba(220, 53, 69, 0.2) !important;
    border-color: #dc3545 !important;
    color: #dc3545 !important;
    transform: scale(1.1) !important;
}

/* Textarea Info */
.textarea-info {
    position: absolute !important;
    bottom: 12px !important;
    left: 20px !important;
    right: 60px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(240, 248, 255, 0.85) !important;
    color: #0b5ed7 !important;
    padding: 6px 12px !important;
    border-radius: 16px !important;
    border: 1px solid #cfe2ff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}

/* Beautify the query input like SQL assistant */
.query-input-wrapper {
    position: relative !important;
    border-radius: 16px !important;
}

.enhanced-textarea {
    border: 1px solid #e6edf7 !important;
    box-shadow: 0 8px 30px rgba(39, 94, 254, 0.06) !important;
}

.enhanced-textarea:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 2px rgba(124,58,237,0.15), 0 12px 32px rgba(17,24,39,0.06) !important;
}

/* Query Button */
.query-button-enhanced {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 40px !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3) !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    min-width: 200px !important;
    position: relative !important;
    overflow: hidden !important;
    color: white !important;
}

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

.query-button-enhanced:hover::before {
    left: 100% !important;
}

.query-button-enhanced:hover {
    background: linear-gradient(135deg, #20c997, #28a745) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4) !important;
    color: white !important;
}

/* Loader Styles */
.upload-loader, .query-loader {
    margin: 2rem auto !important;
    text-align: center !important;
    width: 100% !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 200px !important;
    flex-direction: column !important; /* stack spinner, dots, text vertically */
    gap: 0.5rem !important;
}

.upload-loader.show, .query-loader.show {
    display: flex !important;
}

/* SQL Loader */
.sql-loader {
    perspective: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.sql-cube {
    position: relative;
    width: 60px;
    height: 60px;
    transform-style: preserve-3d;
    animation: sql-cube-rotate 3s infinite linear;
}

.sql-face {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.sql-front { transform: rotateY(0deg) translateZ(30px); }
.sql-back { transform: rotateY(180deg) translateZ(30px); }
.sql-right { transform: rotateY(90deg) translateZ(30px); }
.sql-left { transform: rotateY(-90deg) translateZ(30px); }
.sql-top { transform: rotateX(90deg) translateZ(30px); }
.sql-bottom { transform: rotateX(-90deg) translateZ(30px); }

@keyframes sql-cube-rotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    25% { transform: rotateX(90deg) rotateY(0deg); }
    50% { transform: rotateX(90deg) rotateY(90deg); }
    75% { transform: rotateX(0deg) rotateY(90deg); }
    100% { transform: rotateX(0deg) rotateY(0deg); }
}

/* Loading Dots */
.loading-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.loading-text {
    color: #667eea;
    font-weight: 500;
    font-size: 1rem;
}

.dot {
    color: #667eea;
    font-weight: 700;
    font-size: 1.2rem;
    animation: dot-bounce 1.5s infinite;
}

.dot-1 { animation-delay: 0s; }
.dot-2 { animation-delay: 0.2s; }
.dot-3 { animation-delay: 0.4s; }

@keyframes dot-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-10px); opacity: 1; }
}

/* Streaming Progress */
.streaming-progress-container {
    margin: 2rem 0;
}

.streaming-steps {
    margin-top: 1.5rem;
}

.step-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 4px solid #e9ecef;
    transition: all 0.3s ease;
}

.step-item.step-active {
    background: #e3f2fd;
    border-left-color: #2196f3;
    transform: translateX(5px);
}

.step-item.step-completed {
    background: #e8f5e8;
    border-left-color: #4caf50;
}

.step-icon {
    margin-right: 0.75rem;
    font-size: 1rem;
}

.step-text {
    font-weight: 500;
    color: #495057;
}

.step-active .step-text {
    color: #1976d2;
    font-weight: 600;
}

.step-completed .step-text {
    color: #2e7d32;
    font-weight: 600;
}

/* SQL Cube Container */
.sql-cube-container {
    margin-top: 2rem;
}

.cube-label {
    margin-top: 1rem;
}

.cube-label .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Response Container */
.response-container {
    animation: fadeInUp 0.5s ease-out;
}

.response-container .card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.response-container .card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 2px solid #667eea;
    padding: 15px 20px;
    position: relative;
}

.response-container .card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.response-container .card-body {
    padding: 20px;
}

/* Analysis Content */
.analysis-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    line-height: 1.6;
    color: #495057;
}

/* NLP Result Cards - side border, rounded corners, soft shadow */
#nlp-result .card {
    border-radius: 14px;
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden;
}

#nlp-result .card-header {
    background: #f8f9fb;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

#nlp-result .card-body {
    border-left: 4px solid #7c3aed; /* purple accent like screenshot */
    background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
}

#nlp-code {
    background: #f6f7fb;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 14px;
}

/* Table Styles */
.table {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.table th {
    background: linear-gradient(135deg, #f7fafc, #edf2f7) !important;
    color: #2d3748 !important;
    font-weight: 700;
    border: none;
    padding: 16px;
    font-size: 14px;
    letter-spacing: 0.025em;
}

.table td {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #4a5568 !important;
    vertical-align: middle;
    border: 1px solid rgba(226, 232, 240, 0.6);
    padding: 16px;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 12px;
    padding: 18px 24px;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    font-weight: 500;
}

.alert-info {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1), rgba(49, 130, 206, 0.05));
    border-left-color: #4299e1;
    color: #2c5282;
}

.alert-success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(56, 161, 105, 0.05));
    border-left-color: #48bb78;
    color: #22543d;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.1), rgba(221, 107, 32, 0.05));
    border-left-color: #ed8936;
    color: #744210;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.1), rgba(229, 62, 62, 0.05));
    border-left-color: #f56565;
    color: #742a2a;
}

/* Modal Styles */
.enhanced-modal {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.enhanced-modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px 20px 0 0;
    padding: 25px 35px;
    border: none;
    position: relative;
    overflow: hidden;
}

.enhanced-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

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

.modal-header-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.modal-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.modal-icon {
    font-size: 24px;
    color: #fff;
}

.enhanced-modal-title {
    color: white !important;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 400;
}

.enhanced-close-btn {
    position: relative;
    z-index: 3;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: 1 / 1 !important;
}

.enhanced-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.enhanced-close-btn i {
    line-height: 1 !important;
    font-size: 18px !important;
}

.enhanced-modal-body {
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    max-height: 70vh;
    overflow-y: auto;
}

.enhanced-modal-body::-webkit-scrollbar {
    width: 8px;
}

.enhanced-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.enhanced-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
}

/* Enhanced Cards */
.enhanced-card {
    background: #fff;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.enhanced-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 1px 8px rgba(0, 0, 0, 0.15);
}

.enhanced-card-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 20px 25px;
    border: none;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.enhanced-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 4s infinite;
}

.card-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.card-icon {
    font-size: 20px;
    color: #fff;
}

.card-title {
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.card-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

.enhanced-card-body {
    padding: 25px;
    background: #fff;
}

/* Feature Sections */
.feature-section-title {
    color: #667eea;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-list li:hover {
    background: rgba(102, 126, 234, 0.05);
    padding-left: 10px;
    border-radius: 5px;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 20px;
    color: #667eea;
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-item span {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.feature-highlight {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    border: none;
}

/* Workflow Steps */
.workflow-steps {
    list-style: none;
    padding: 0;
}

.workflow-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.workflow-step:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step-description {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Benefit Lists */
.benefit-list {
    list-style: none;
    padding: 0;
}

.benefit-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.benefit-list li:hover {
    color: #667eea;
    transform: translateX(5px);
}

.benefit-list i {
    color: #28a745;
    margin-right: 10px;
}

/* Modal Footer */
.enhanced-modal-footer {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    border: none;
    padding: 20px 30px;
    border-radius: 0 0 20px 20px;
}

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

.footer-info {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.btn-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* Progress Container */
.progress-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #8e54e9);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Text Utilities */
.text-primary-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Spinning Animation */
.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-size: 1.5rem;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .card {
        margin-bottom: 25px;
        border-radius: 16px;
    }
    
    .btn, .form-control {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .enhanced-textarea {
        min-height: 100px;
        padding: 12px 15px;
    }
    
    .sql-loader {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    h1, h2, h3, h4, h5, h6 {
        font-size: 1.3rem;
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
    
    .btn, .form-control {
        font-size: 0.95rem;
        padding: 10px 16px;
    }
    
    .enhanced-textarea {
        font-size: 0.95rem;
    }
}

.stat-content {
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #2d3748;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Rich Data Table */
.rich-data-table {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.rich-data-table .table {
    margin: 0;
    border: none;
}

.rich-data-table .table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #2d3748;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.rich-data-table .table tbody tr {
    transition: all 0.2s ease;
}

.rich-data-table .table tbody tr:hover {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.rich-data-table .table tbody td {
    padding: 0.75rem;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    color: #4a5568;
    font-size: 0.875rem;
    vertical-align: middle;
}
/* DataTables polish */
.dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    padding: 4px 8px;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    padding: 4px 10px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: linear-gradient(135deg, #3182ce, #2b6cb0) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.dt-top label, .dt-bottom {
    gap: 0.5rem;
}

.dt-top .dataTables_filter {
    margin-left: auto;
}

.rich-data-table .table tbody tr:last-child td {
    border-bottom: none;
}

/* Column Details - Clean List */
.column-list {
    /* Show as two columns, no internal scroll */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
    max-height: none;
    overflow: visible;
    padding: 0.25rem 0.25rem 0.5rem 0.25rem;
}

.column-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.column-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.column-item:last-child {
    border-bottom: 1px solid #eef2f7;
}

.column-name {
    font-weight: 500;
    color: #2d3748;
    font-size: 0.875rem;
}

.column-type {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Sample Data Container */
.sample-data-container {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.sample-data-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.sample-data-header h6 {
    margin: 0;
    color: #2d3748;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-icon {
        font-size: 1rem;
    }
}

/* Compact Stats Cards - Professional & Clean Design */
.stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    border-color: #cbd5e0;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.stat-icon {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #667eea;
    opacity: 0.8;
}

.stat-content {
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #2d3748;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
