/*==================================================
 AI SQL Assistant
 Developed by Sunil Kumar
 Version : 1.0
 Part 1 : Foundation + Navbar + Hero + Search
==================================================*/




/*==================================
 Google Font
==================================*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');


/*==================================
 CSS Variables
==================================*/

:root{

    --primary:#2563EB;
    --primary-dark:#1D4ED8;
    --secondary:#3B82F6;
    --accent:#06B6D4;

    --success:#10B981;
    --warning:#F59E0B;
    --danger:#EF4444;

    --bg:#F8FAFC;
    --card:#FFFFFF;

    --text:#1E293B;
    --text-light:#64748B;

    --border:#E2E8F0;

    --radius:18px;

    --shadow-sm:0 4px 10px rgba(0,0,0,.05);

    --shadow-md:0 12px 35px rgba(0,0,0,.08);

    --shadow-lg:0 20px 60px rgba(37,99,235,.15);

    --transition:.30s ease;

}


/*==================================
 Reset
==================================*/

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    background:var(--bg);

    color:var(--text);

    font-family:'Inter',sans-serif;

    overflow-x:hidden;

    line-height:1.6;

}


/*==================================
 Scrollbar
==================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#edf2f7;

}

::-webkit-scrollbar-thumb{

    background:#94a3b8;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary);

}


/*==================================
 Selection
==================================*/

::selection{

    background:var(--primary);

    color:#fff;

}


/*==================================
 Links
==================================*/

a{

    text-decoration:none;

    transition:var(--transition);

}

a:hover{

    color:var(--primary);

}


/*==================================
 Images
==================================*/

img{

    max-width:100%;

    display:block;

}


/*==================================
 Container
==================================*/

.container{

    max-width:1280px;

}


/*==================================
 Navbar
==================================*/

.navbar{

    background:#fff;

    border-bottom:1px solid var(--border);

    padding:15px 0;

    transition:.3s;

}

.navbar-brand{

    font-size:1.4rem;

    font-weight:800;

    color:var(--primary);

}

.navbar-brand i{

    margin-right:8px;

}

.nav-link{

    color:var(--text);

    font-weight:600;

    margin-left:12px;

    transition:.3s;

}

.nav-link:hover{

    color:var(--primary);

}

.nav-link.active{

    color:var(--primary);

}


/*==================================
 Hero Section
==================================*/

.hero{

    padding:80px 0;

    position:relative;

    overflow:hidden;

}


/*==================================
 Hero Background
==================================*/

.hero::before{

    content:"";

    position:absolute;

    width:500px;

    height:500px;

    background:rgba(37,99,235,.08);

    border-radius:50%;

    top:-250px;

    left:-150px;

    filter:blur(60px);

}

.hero::after{

    content:"";

    position:absolute;

    width:450px;

    height:450px;

    background:rgba(6,182,212,.08);

    border-radius:50%;

    right:-150px;

    bottom:-180px;

    filter:blur(70px);

}


/*==================================
 Hero Text
==================================*/

.hero-title{

    font-size:3rem;

    font-weight:800;

    margin-bottom:20px;

    color:var(--text);

}

.hero-subtitle{

    font-size:1.15rem;

    color:var(--text-light);

    max-width:850px;

    margin:auto;

}


/*==================================
 Search Area
==================================*/

.search-box{

    margin-top:35px;

}

.search-box textarea{

    width:100%;

    min-height:150px;

    border-radius:20px;

    border:2px solid var(--border);

    padding:22px;

    font-size:17px;

    resize:none;

    transition:.3s;

    box-shadow:var(--shadow-sm);

}

.search-box textarea:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:0 0 0 5px rgba(37,99,235,.12);

}


/*==================================
 Placeholder
==================================*/

textarea::placeholder{

    color:#94A3B8;

}


/*==================================
 Generate Button
==================================*/

.btn-primary{

    background:linear-gradient(135deg,#2563EB,#3B82F6);

    border:none;

    border-radius:50px;

    padding:14px 35px;

    font-size:17px;

    font-weight:700;

    transition:.35s;

    box-shadow:var(--shadow-md);

}

.btn-primary:hover{

    transform:translateY(-3px);

    box-shadow:var(--shadow-lg);

}

.btn-primary i{

    margin-right:8px;

}


/*==================================
 Search Result Container
==================================*/

.search-results{

    margin-top:30px;

    background:#fff;

    border-radius:18px;

    border:1px solid var(--border);

    overflow:hidden;

    display:none;

    box-shadow:var(--shadow-sm);

}


/*==================================
 Section Title
==================================*/

.section-title{

    font-size:2rem;

    font-weight:800;

    margin-bottom:20px;

}


/*==================================
 Badge
==================================*/

.badge-ai{

    background:#E0F2FE;

    color:#0369A1;

    padding:8px 15px;

    border-radius:50px;

    font-weight:600;

}


/*==================================
 Card Base
==================================*/

.sql-card{

    background:var(--card);

    border:none;

    border-radius:20px;

    padding:24px;

    box-shadow:var(--shadow-sm);

    transition:.35s;

    height:100%;

}

.sql-card:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow-lg);

}


/*==================================
 Card Title
==================================*/

.card-title{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:1.1rem;

    font-weight:700;

    color:var(--primary);

    margin-bottom:18px;

}

.card-title i{

    width:42px;

    height:42px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:rgba(37,99,235,.08);

}


/*==================================
 Divider
==================================*/

.divider{

    width:100%;

    height:1px;

    background:var(--border);

    margin:15px 0;

}


/*==================================
 Utility
==================================*/

.hidden{

    display:none!important;

}

.text-primary-custom{

    color:var(--primary);

}

.text-muted-custom{

    color:var(--text-light);

}

.rounded-xl{

    border-radius:20px;

}

.shadow-custom{

    box-shadow:var(--shadow-md);

}

.mt-40{

    margin-top:40px;

}

.mb-40{

    margin-bottom:40px;

}


/*==================================
 Fade Animation
==================================*/

.fade-in{

    animation:fadeIn .5s ease;

}

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*==================================================
 AI SQL Assistant
 Part 2 : Search + SQL Editor + Tables + Cards
==================================================*/


/*==================================
 Search Result Items
==================================*/

.search-results{

    max-height:420px;

    overflow-y:auto;

}

.search-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 22px;

    border-bottom:1px solid var(--border);

    cursor:pointer;

    transition:.30s;

    background:#fff;

}

.search-item:last-child{

    border-bottom:none;

}

.search-item:hover{

    background:#EFF6FF;

    transform:translateX(6px);

}

.search-left{

    flex:1;

}

.search-left strong{

    display:block;

    font-size:16px;

    color:var(--text);

    margin-bottom:5px;

}

.search-left small{

    color:var(--text-light);

    font-size:13px;

}

.search-score{

    min-width:70px;

    text-align:center;

    background:#DBEAFE;

    color:var(--primary);

    padding:6px 14px;

    border-radius:30px;

    font-size:13px;

    font-weight:700;

}


/*==================================
 SQL Code Block
==================================*/

#sqlBox,
#alternativeSQL{

    background:#0F172A;

    color:#E2E8F0;

    padding:24px;

    border-radius:18px;

    font-size:15px;

    line-height:1.8;

    overflow:auto;

    min-height:260px;

    white-space:pre-wrap;

    border:1px solid #1E293B;

    font-family:
    Consolas,
    Monaco,
    monospace;

    position:relative;

}

#sqlBox::-webkit-scrollbar,
#alternativeSQL::-webkit-scrollbar{

    height:8px;

}

#sqlBox::-webkit-scrollbar-thumb,
#alternativeSQL::-webkit-scrollbar-thumb{

    background:#475569;

}


/*==================================
 Copy Button (Future)
==================================*/

.copy-btn{

    position:absolute;

    top:15px;

    right:15px;

}


/*==================================
 Explanation
==================================*/

#explanation{

    font-size:15px;

    color:var(--text);

    line-height:1.8;

}


/*==================================
 Breakdown
==================================*/

#breakdown{

    display:flex;

    flex-direction:column;

    gap:12px;

}

.breakdown-item{

    background:#F8FAFC;

    border-left:5px solid var(--primary);

    padding:14px 18px;

    border-radius:12px;

}

.breakdown-item strong{

    display:block;

    color:var(--primary);

    margin-bottom:6px;

}


/*==================================
 Business Card
==================================*/

#businessCase{

    font-size:15px;

    line-height:1.8;

    color:var(--text);

}


/*==================================
 Tables
==================================*/

.table-responsive{

.table-responsive {
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow-x: auto; /* Fix: Allow horizontal scrolling */
    max-width: 100%;   /* Fix: Keep scrollbar contained inside the card */
}



}

.table{

    margin-bottom:0;

}

.table thead{

    background:linear-gradient(
    135deg,
    var(--primary),
    var(--secondary));

    color:#fff;

}

.table thead th{

    border:none;

    padding:15px;

    font-weight:700;

}

.table tbody td{

    padding:14px;

    vertical-align:middle;

    border-color:#EDF2F7;

}

.table tbody tr{

    transition:.25s;

}

.table tbody tr:hover{

    background:#EFF6FF;

}


/*==================================
 Output Table
==================================*/

#outputTable table{

    width:100%;

}


/*==================================
 Sample Table
==================================*/

#sampleTable table{

    width:100%;

}


/*==================================
 Tips
==================================*/

#tipsList{

    list-style:none;

    padding:0;

    margin:0;

}

#tipsList li{

    margin-bottom:12px;

    background:#ECFDF5;

    border-left:5px solid var(--success);

    border-radius:12px;

    padding:14px 18px;

    color:#065F46;

    font-weight:500;

}

#tipsList li::before{

    content:"✔ ";

    font-weight:700;

}


/*==================================
 Errors
==================================*/

#errorList{

    list-style:none;

    padding:0;

    margin:0;

}

#errorList li{

    margin-bottom:12px;

    background:#FEF2F2;

    border-left:5px solid var(--danger);

    border-radius:12px;

    padding:14px 18px;

    color:#991B1B;

    font-weight:500;

}

#errorList li::before{

    content:"✖ ";

}


/*==================================
 Interview Questions
==================================*/

#interviewQuestions{

    list-style:none;

    padding:0;

}

#interviewQuestions li{

    padding:15px 18px;

    margin-bottom:10px;

    background:#F8FAFC;

    border-radius:12px;

    border:1px solid var(--border);

    cursor:pointer;

    transition:.30s;

}

#interviewQuestions li:hover{

    background:#EFF6FF;

    border-color:var(--primary);

}


/*==================================
 SQL Badges
==================================*/

.db-badges{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin-top:20px;

}

.db-badge{

    padding:10px 18px;

    border-radius:30px;

    background:#DBEAFE;

    color:var(--primary);

    font-size:14px;

    font-weight:700;

    cursor:pointer;

    transition:.30s;

}

.db-badge:hover{

    background:var(--primary);

    color:#fff;

}


/*==================================
 Loading Skeleton
==================================*/

.skeleton{

    width:100%;

    height:20px;

    border-radius:8px;

    margin-bottom:12px;

    background:
    linear-gradient(
    90deg,
    #f1f5f9 25%,
    #e2e8f0 50%,
    #f1f5f9 75%);

    background-size:300% 100%;

    animation:skeleton 1.4s infinite;

}

@keyframes skeleton{

    0%{

        background-position:100% 0;

    }

    100%{

        background-position:-100% 0;

    }

}


/*==================================
 Empty State
==================================*/

.empty-state{

    text-align:center;

    padding:50px 25px;

    color:var(--text-light);

}

.empty-state i{

    font-size:60px;

    color:var(--primary);

    margin-bottom:20px;

}

.empty-state h4{

    font-weight:700;

    margin-bottom:10px;

}


/*==================================
 Glass Effect
==================================*/

.glass{

    backdrop-filter:blur(12px);

    background:rgba(255,255,255,.75);

    border:1px solid rgba(255,255,255,.40);

}
/*==================================================
 AI SQL Assistant
 Part 3 : Footer + Buttons + Animations + Utilities
==================================================*/


/*==================================
 Footer
==================================*/

.footer{

    margin-top:80px;

    padding:60px 0;

    background:linear-gradient(
    135deg,
    #0F172A,
    #1E293B);

    color:#fff;

    position:relative;

    overflow:hidden;

}

.footer::before{

    content:"";

    position:absolute;

    width:350px;

    height:350px;

    background:rgba(255,255,255,.04);

    border-radius:50%;

    top:-150px;

    right:-120px;

}

.footer h5{

    font-size:24px;

    font-weight:800;

    margin-bottom:15px;

}

.footer p{

    color:#CBD5E1;

    margin-bottom:10px;

}

.footer small{

    color:#94A3B8;

}


/*==================================
 Section Spacing
==================================*/

.section-padding{

    padding:70px 0;

}

.section-gap{

    margin-top:50px;

}


/*==================================
 AI Button
==================================*/

.ai-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:14px 28px;

    border:none;

    border-radius:50px;

    font-weight:700;

    cursor:pointer;

    transition:.3s;

}

.ai-btn:hover{

    transform:translateY(-3px);

}

.ai-btn-primary{

    background:linear-gradient(
    135deg,
    var(--primary),
    var(--secondary));

    color:#fff;

}

.ai-btn-success{

    background:linear-gradient(
    135deg,
    var(--success),
    #22C55E);

    color:#fff;

}

.ai-btn-danger{

    background:linear-gradient(
    135deg,
    var(--danger),
    #DC2626);

    color:#fff;

}


/*==================================
 Copy SQL Button
==================================*/

.copy-sql{

    position:absolute;

    top:18px;

    right:18px;

    width:42px;

    height:42px;

    border:none;

    border-radius:10px;

    background:#1E293B;

    color:#fff;

    cursor:pointer;

    transition:.3s;

}

.copy-sql:hover{

    background:var(--primary);

}


/*==================================
 Floating Action Button
==================================*/

.fab{

    position:fixed;

    bottom:30px;

    right:30px;

    width:58px;

    height:58px;

    border-radius:50%;

    border:none;

    background:var(--primary);

    color:#fff;

    font-size:22px;

    cursor:pointer;

    box-shadow:var(--shadow-lg);

    transition:.35s;

    z-index:999;

}

.fab:hover{

    transform:translateY(-5px) scale(1.08);

}


/*==================================
 Scroll To Top
==================================*/

.scroll-top{

    display:none;

}


/*==================================
 Toast Message
==================================*/

.toast-msg{

    position:fixed;

    top:30px;

    right:30px;

    background:#fff;

    color:var(--text);

    padding:18px 22px;

    border-radius:14px;

    box-shadow:var(--shadow-lg);

    border-left:5px solid var(--success);

    z-index:9999;

    animation:slideIn .35s ease;

}

@keyframes slideIn{

    from{

        opacity:0;

        transform:translateX(80px);

    }

    to{

        opacity:1;

        transform:translateX(0);

    }

}


/*==================================
 Loading Button
==================================*/

.btn-loading{

    pointer-events:none;

    opacity:.8;

}

.btn-loading::after{

    content:"";

    width:18px;

    height:18px;

    border:3px solid rgba(255,255,255,.4);

    border-top:3px solid #fff;

    border-radius:50%;

    margin-left:10px;

    display:inline-block;

    animation:spin .7s linear infinite;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}


/*==================================
 Card Hover Glow
==================================*/

.sql-card{

    position:relative;

}

.sql-card::before{

    content:"";

    position:absolute;

    inset:0;

    border-radius:20px;

    background:linear-gradient(
    135deg,
    rgba(37,99,235,.05),
    rgba(6,182,212,.05));

    opacity:0;

    transition:.3s;

}

.sql-card:hover::before{

    opacity:1;

}


/*==================================
 Hover Scale
==================================*/

.hover-scale{

    transition:.3s;

}

.hover-scale:hover{

    transform:scale(1.03);

}


/*==================================
 Fade Up
==================================*/

.fade-up{

    animation:fadeUp .6s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(30px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}


/*==================================
 Zoom In
==================================*/

.zoom-in{

    animation:zoomIn .4s ease;

}

@keyframes zoomIn{

    from{

        transform:scale(.85);

        opacity:0;

    }

    to{

        transform:scale(1);

        opacity:1;

    }

}


/*==================================
 Pulse
==================================*/

.pulse{

    animation:pulse 1.8s infinite;

}

@keyframes pulse{

    0%{

        box-shadow:0 0 0 0 rgba(37,99,235,.5);

    }

    70%{

        box-shadow:0 0 0 18px rgba(37,99,235,0);

    }

    100%{

        box-shadow:0 0 0 0 rgba(37,99,235,0);

    }

}


/*==================================
 AI Typing Cursor
==================================*/

.typing::after{

    content:"|";

    margin-left:2px;

    color:var(--primary);

    animation:blink .8s infinite;

}

@keyframes blink{

    50%{

        opacity:0;

    }

}


/*==================================
 Icon Circle
==================================*/

.icon-circle{

    width:50px;

    height:50px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:#DBEAFE;

    color:var(--primary);

    font-size:20px;

}


/*==================================
 Utility Classes
==================================*/

.text-center{

    text-align:center;

}

.text-right{

    text-align:right;

}

.fw-600{

    font-weight:600;

}

.fw-700{

    font-weight:700;

}

.fw-800{

    font-weight:800;

}

.w-100{

    width:100%;

}

.h-100{

    height:100%;

}

.cursor{

    cursor:pointer;

}

.border-radius{

    border-radius:20px;

}

.shadow-hover:hover{

    box-shadow:var(--shadow-lg);

}

.transition{

    transition:.3s;

}


/*==================================
 Status Badges
==================================*/

.badge-success{

    background:#DCFCE7;

    color:#166534;

}

.badge-warning{

    background:#FEF3C7;

    color:#92400E;

}

.badge-danger{

    background:#FEE2E2;

    color:#991B1B;

}


/*==================================
 Glass Card
==================================*/

.glass-card{

    background:rgba(255,255,255,.7);

    backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.4);

}


/*==================================
 End Part 3
==================================*/
/*==================================================
 AI SQL Assistant
 Part 4 : Responsive + Dark Mode + Print + Final
 Version 1.0
==================================================*/


/*==================================
 Responsive
==================================*/

@media (max-width:1200px){

.container{

max-width:95%;

}

}


@media (max-width:992px){

.hero{

padding:60px 0;

}

.hero-title{

font-size:2.4rem;

}

.hero-subtitle{

font-size:16px;

}

.search-box textarea{

min-height:130px;

}

.sql-card{

padding:20px;

}

.navbar-nav{

margin-top:20px;

text-align:center;

}

.nav-link{

margin:8px 0;

}

}


@media (max-width:768px){

.hero-title{

font-size:2rem;

}

.hero-subtitle{

font-size:15px;

}

.btn-primary{

width:100%;

}

.ai-btn{

width:100%;

}

.search-item{

flex-direction:column;

align-items:flex-start;

gap:12px;

}

.search-score{

margin-top:8px;

}

.card-title{

font-size:17px;

}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    margin-bottom: 0;
    min-width: 600px; /* Forces horizontal scroll when card is narrow */
}

#sqlBox,
#alternativeSQL{

font-size:14px;

padding:18px;

}

.footer{

padding:45px 0;

}

.footer h5{

font-size:22px;

}

}


@media (max-width:576px){

.hero{

padding:45px 0;

}

.hero-title{

font-size:1.7rem;

}

.hero-subtitle{

font-size:14px;

}

.search-box textarea{

min-height:120px;

padding:18px;

font-size:15px;

}

.card-title{

font-size:16px;

}

.sql-card{

padding:18px;

border-radius:16px;

}

.table thead th{

padding:12px;

font-size:13px;

}

.table tbody td{

padding:12px;

font-size:13px;

}

.fab{

width:50px;

height:50px;

font-size:18px;

bottom:20px;

right:20px;

}

.footer h5{

font-size:20px;

}

.footer p{

font-size:14px;

}

}


/*==================================
 Dark Mode
==================================*/

body.dark{

background:#020617;

color:#E2E8F0;

}

body.dark .navbar{

background:#0F172A;

border-color:#1E293B;

}

body.dark .navbar-brand{

color:#60A5FA;

}

body.dark .nav-link{

color:#CBD5E1;

}

body.dark .nav-link:hover{

color:#60A5FA;

}

body.dark .sql-card{

background:#0F172A;

color:#E2E8F0;

}

body.dark .card-title{

color:#60A5FA;

}

body.dark textarea{

background:#0F172A;

color:#E2E8F0;

border-color:#334155;

}

body.dark textarea::placeholder{

color:#94A3B8;

}

body.dark .search-results{

background:#0F172A;

border-color:#334155;

}

body.dark .search-item{

background:#0F172A;

border-color:#1E293B;

}

body.dark .search-item:hover{

background:#172554;

}

body.dark .search-left strong{

color:#F8FAFC;

}

body.dark .search-left small{

color:#94A3B8;

}

body.dark .table{

color:#E2E8F0;

}

body.dark .table tbody tr:hover{

background:#172554;

}

body.dark #sqlBox,
body.dark #alternativeSQL{

background:#020617;

border-color:#1E293B;

}

body.dark .footer{

background:#020617;

}


/*==================================
 Print
==================================*/

@media print{

.navbar,

.hero,

.footer,

.btn,

.fab,

.search-results{

display:none !important;

}

body{

background:#FFFFFF;

color:#000000;

}

.sql-card{

box-shadow:none;

border:1px solid #D1D5DB;

page-break-inside:avoid;

margin-bottom:20px;

}

#sqlBox,
#alternativeSQL{

background:#FFFFFF;

color:#000000;

border:1px solid #CCCCCC;

}

}


/*==================================
 Tables
==================================*/

.table-responsive{

overflow-x:auto;

-webkit-overflow-scrolling:touch;

}

table{

min-width:650px;

}


/*==================================
 Focus Accessibility
==================================*/

button:focus,
textarea:focus,
input:focus,
select:focus{

outline:none;

box-shadow:0 0 0 4px rgba(37,99,235,.20);

}


/*==================================
 Smooth Image
==================================*/

img{

transition:.35s;

}

img:hover{

transform:scale(1.02);

}


/*==================================
 Link Animation
==================================*/

a{

position:relative;

}

a::after{

content:"";

position:absolute;

left:0;

bottom:-2px;

width:0;

height:2px;

background:var(--primary);

transition:.3s;

}

a:hover::after{

width:100%;

}


/*==================================
 Code Selection
==================================*/

pre::selection{

background:#2563EB;

color:#FFFFFF;

}


/*==================================
 Disable Textarea Resize
==================================*/

textarea{

resize:none;

}


/*==================================
 Loading Overlay
==================================*/

.loading-overlay{

position:fixed;

top:0;

left:0;

width:100%;

height:100%;

display:flex;

justify-content:center;

align-items:center;

background:rgba(255,255,255,.80);

backdrop-filter:blur(6px);

z-index:99999;

}

.loading-spinner{

width:60px;

height:60px;

border:6px solid #E2E8F0;

border-top:6px solid var(--primary);

border-radius:50%;

animation:spin .8s linear infinite;

}


/*==================================
 Glass Hover
==================================*/

.glass-card:hover{

background:rgba(255,255,255,.9);

}


/*==================================
 Badge Hover
==================================*/

.db-badge:hover{

transform:translateY(-3px);

box-shadow:0 10px 20px rgba(37,99,235,.20);

}


/*==================================
 SQL Block Hover
==================================*/

#sqlBox:hover,
#alternativeSQL:hover{

box-shadow:0 0 25px rgba(37,99,235,.20);

}


/*==================================
 Card Border Animation
==================================*/

.sql-card{

overflow:hidden;

}

.sql-card::after{

content:"";

position:absolute;

top:0;

left:-100%;

width:100%;

height:3px;

background:linear-gradient(90deg,
transparent,
#3B82F6,
transparent);

transition:.8s;

}

.sql-card:hover::after{

left:100%;

}


/*==================================
 Footer Social Icons
==================================*/

.footer-social{

display:flex;

justify-content:center;

gap:15px;

margin-top:20px;

}

.footer-social a{

width:42px;

height:42px;

display:flex;

align-items:center;

justify-content:center;

border-radius:50%;

background:rgba(255,255,255,.10);

color:#FFFFFF;

transition:.3s;

}

.footer-social a:hover{

background:var(--primary);

transform:translateY(-5px);

}


/*==================================
 Version Badge
==================================*/

.version{

display:inline-block;

padding:6px 15px;

border-radius:30px;

background:#DBEAFE;

color:var(--primary);

font-size:12px;

font-weight:700;

}


/*==================================
 Final Utility
==================================*/

.opacity-0{

opacity:0;

}

.opacity-1{

opacity:1;

}

.pointer{

cursor:pointer;

}

.user-select-none{

user-select:none;

}

.d-flex-center{

display:flex;

align-items:center;

justify-content:center;

}

.min-vh-100{

min-height:100vh;

}

/*==================================
 SQL Code Header
==================================*/

.code-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:#0F172A;

    color:#fff;

    padding:12px 18px;

    border-radius:18px 18px 0 0;

    font-weight:700;

}

/*==================================
 Copy SQL Button
==================================*/

.copy-code-btn {

    display: flex;

    align-items: center;

    gap: 6px;

    border: none;

    background: #2563EB;

    color: #ffffff;

    padding: 7px 16px;

    border-radius: 20px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;

}


.copy-code-btn:hover {

    background: #1D4ED8;

    transform: translateY(-2px);

}


.copy-code-btn:active {

    transform: translateY(0);

}



/*==================================
 SQL Box
==================================*/

#sqlBox {

    border-radius: 0 0 18px 18px;

    margin: 0;

    overflow-x: auto;

    font-family: "Consolas", "Courier New", monospace;

    font-size: 14px;

    line-height: 1.6;

}



/*==================================
 SQL Code Header
==================================*/

.code-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    background: #0F172A;

    color: #ffffff;

    padding: 12px 18px;

    border-radius: 18px 18px 0 0;

    font-weight: 700;

}



/*==================================
 SQL Code Container
==================================*/

.sql-container {

    background: #111827;

    color: #e5e7eb;

    border-radius: 18px;

    overflow: hidden;

}



/*==================================
 SQL Code Text
==================================*/

#sqlBox pre {

    margin: 0;

    padding: 18px;

    background: #111827;

    color: #f8fafc;

    white-space: pre-wrap;

}


/*==================================
 Privacy & Safety Disclaimer
==================================*/
.privacy-disclaimer {
    background: rgba(230,230,250);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 16px 20px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.privacy-disclaimer:hover {
    background: rgba(204,204,255);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.disclaimer-header {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers icon + header horizontally */
    gap: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.disclaimer-header i {
    color: var(--primary);
    font-size: 1.1rem;
}

.disclaimer-body {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.disclaimer-body strong {
    color: var(--text);
    font-weight: 600;
}

/*==================================
 2-Line Support & Suggestion Box
==================================*/
.suggestion-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.suggestion-card:hover {
    background: rgba(24, 34, 53, 0.75);
    border-color: rgba(255, 255, 255, 0.15);
}

.suggestion-card a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.suggestion-card a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.support-input-sm {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.875rem;
    transition: var(--transition);
}

.support-input-sm:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 12px var(--primary-glow) !important;
    outline: none;
}

.support-input-sm::placeholder {
    color: #475569;
}


/*==================================
 THE END
 AI SQL Assistant CSS
 Developed by Sunil Kumar
==================================*/
