/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#050816;
    font-family:'Inter',sans-serif;
    color:white;
    overflow-x:hidden;
}

/* Background Glow */

body::before{
    content:'';
    position:fixed;
    width:700px;
    height:700px;
    background:radial-gradient(circle,#8b5cf6 0%,transparent 70%);
    top:-200px;
    right:-150px;
    opacity:.18;
    z-index:-1;
}

body::after{
    content:'';
    position:fixed;
    width:600px;
    height:600px;
    background:radial-gradient(circle,#ff00cc 0%,transparent 70%);
    bottom:-250px;
    left:-200px;
    opacity:.14;
    z-index:-1;
}

/* Layout */

.main-wrapper{
    display:flex;
    min-height:100vh;
}

/* Sidebar */

/* ===================================
   RESPONSIVE SIDEBAR
=================================== */

/* Mobile Menu Button */

.mobile-menu-btn{
    position:fixed;
    top:20px;
    left:20px;
    width:50px;
    height:50px;
    border:none;
    border-radius:5px;
    background:linear-gradient(135deg,#7c3aed,#ff00cc);
    color:white;
    font-size:22px;
    z-index:1200;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 30px rgba(124,58,237,.4);
}

/* Overlay */

.sidebar-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    backdrop-filter:blur(5px);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:1090;
}

.show-overlay{
    opacity:1;
    visibility:visible;
}

/* Sidebar Close */

.sidebar-close{
    position:absolute;
    top:20px;
    right:20px;
    width:42px;
    height:42px;
    border:none;
    border-radius:12px;
    background:rgba(255,255,255,.08);
    color:white;
    font-size:18px;
}

/* Desktop */

@media (min-width: 992px){

    .mobile-menu-btn{
        display:none;
    }

    .sidebar{
        transform:none !important;
    }
}

/* Mobile Sidebar */

@media (max-width: 991px){

    .sidebar{
        position:fixed;
        left:0;
        top:0;
        width:300px;
        height:100vh;
        z-index:1100;
        transform:translateX(-100%);
        transition:.35s ease;
        overflow-y:auto;
        padding-top:80px;
        background:#090d1f;
    }

    .show-sidebar{
        transform:translateX(0);
    }

    .content-area{
         width:100%;
        margin-left:0;
        
    }

    .sidebar-menu{
        display:flex;
        flex-direction:column;
    }

    .sidebar-menu a{
        width:100%;
    }

    .sidebar-box{
        margin-bottom:40px;
    }
}

/* Small Mobile */

@media (max-width: 991px){

    .sidebar{
        position:fixed;
        left:0;
        top:0;
        width:300px;
        height:100vh;
        z-index:1100;
        transform:translateX(-100%);
        transition:.35s ease;
        overflow-y:auto;
        padding-top:80px;
        background:#090d1f;
    }

    .show-sidebar{
        transform:translateX(0);
    }

    .content-area{
        width:100%;
        margin-left:0;
        padding:15px;
    }

   

    .sidebar-menu{
        display:flex;
        flex-direction:column;
    }

    .sidebar-menu a{
        width:100%;
    }

    .sidebar-box{
        margin-bottom:40px;
    }
}
/* Extra Small */

@media (max-width: 400px){

    .sidebar{
        width:250px;
    }

    .logo h3{
        font-size:20px;
    }

    .sidebar-menu a{
        padding:12px 14px;
        font-size:14px;
    }
}
.sidebar{
    width:280px;
    background:rgba(10,13,30,.95);
    border-right:1px solid rgba(255,255,255,.08);
    padding:30px 20px;
    position:sticky;
    top:0;
    height:100vh;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:45px;
}

.logo-icon{
    width:45px;
    height:45px;
    border-radius:14px;
    background:linear-gradient(135deg,#ff00cc,#7c3aed);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:20px;
}

.logo h3{
    font-family:'Poppins',sans-serif;
    font-weight:700;
    margin:0;
}

.menu-title{
    color:#8b8fa3;
    font-size:12px;
    letter-spacing:1px;
    margin-bottom:15px;
}

.sidebar-menu li{
    margin-bottom:10px;
}

.sidebar-menu a{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:#cfcfe7;
    padding:14px 18px;
    border-radius:5px;
    transition:.3s;
    font-weight:500;
}

.sidebar-menu a:hover,
.sidebar-menu a.active{
    background:linear-gradient(90deg,rgba(168,85,247,.25),rgba(255,0,204,.15));
    color:white;
    /* border:1px solid rgba(255,255,255,.06); */
}

.sidebar-box{
    margin-top:60px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.06);
    border-radius:24px;
    padding:25px;
}

.sidebar-box h6{
    margin-bottom:0;
}

.custom-progress{
    height:8px;
    background:#1a1f35;
    border-radius:50px;
}

.progress-bar{
    width:11%;
    background:linear-gradient(90deg,#ff00cc,#8b5cf6);
    border-radius:50px;
}

.upgrade-btn{
    width:100%;
    border:none;
    background:linear-gradient(135deg,#7c3aed,#ff00cc);
    color:white;
    padding:12px;
    border-radius:5px;
    font-weight:600;
}

/* Content */

.content-area{
    flex:1;
    padding:35px;
}

/* Topbar */

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:35px;
    gap:20px;
}

.page-title{
    font-size:38px;
    font-weight:700;
    margin-bottom:8px;
}

.page-subtitle{
    color:#8f93b2;
    margin:0;
}

.topbar-right{
    display:flex;
    gap:15px;
}

.import-btn{
    background:transparent;
    border:1px solid rgba(255,255,255,.1);
    color:white;
    padding:14px 22px;
    border-radius:5px;
}

.generate-btn{
    background:linear-gradient(135deg,#7c3aed,#ff00cc);
    color:white;
    border:none;
    padding:14px 24px;
    border-radius:5px;
    font-weight:600;
}

/* Cards */

.dashboard-card{
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.08);
    border-radius:5px;
    padding:28px;
    backdrop-filter:blur(20px);
    box-shadow:0 0 40px rgba(124,58,237,.08);
}

.card-header-custom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.card-header-custom p{
    color:#8f93b2;
    margin-top:5px;
    margin-bottom:0;
}

.format-btn{
    border:1px solid rgba(255,255,255,.08);
    background:transparent;
    color:white;
    border-radius:12px;
    padding:10px 18px;
}

/* Editor */

.editor-box{
    background:#090d1f;
    border:1px solid rgba(255,255,255,.08);
    border-radius:22px;
    padding:25px;
    min-height:500px;
    overflow:auto;
}

.editor-box pre{
    color:#d4d4d4;
    font-size:14px;
    line-height:1.8;
}

.editor-footer{
    display:flex;
    justify-content:space-between;
    margin-top:18px;
    color:#8f93b2;
}

.valid-json{
    color:#2dd4bf;
}

/* Select */

.custom-select{
    background:#0c1023;
    border:1px solid rgba(255,255,255,.08);
    color:white;
    border-radius:14px;
    padding:14px;
}

.custom-select:focus{
    background:#0c1023;
    color:white;
    box-shadow:none;
    border-color:#7c3aed;
}

/* Options */

.option-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.option-card{
    border:1px solid rgba(255,255,255,.08);
    border-radius:5px;
    padding:5px 10px;
    display:flex;
    gap:15px;
    align-items:flex-start;
    transition:.3s;
    cursor:pointer;
}

.option-card:hover{
    border-color:#7c3aed;
}

.active-option{
    background:rgba(168,85,247,.12);
    border-color:#a855f7;
}

.radio-circle{
    width:18px;
    height:18px;
    border:2px solid #8b8fa3;
    border-radius:50%;
    margin-top:3px;
}

.active-circle{
    border:5px solid #d946ef;
}

.option-card h6{
    margin-bottom:6px;
}

.option-card p{
    color:#8f93b2;
    margin:0;
    font-size:14px;
}

/* Route */

.route-options{
    display:flex;
    gap:18px;
}

.route-card{
    flex:1;
    border:1px solid rgba(255,255,255,.08);
    border-radius:5px;
    padding:5px 10px;
    transition:.3s;
    cursor:pointer;
}

.route-card i{
    font-size:28px;
    margin-bottom:15px;
    display:block;
    color:#c084fc;
}

.route-card p{
    color:#8f93b2;
    margin:0;
}

.active-route{
    border-color:#d946ef;
    background:rgba(217,70,239,.1);
}

/* Features */

.feature-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.feature-item:last-child{
    margin-bottom:0;
}

.feature-item p{
    color:#8f93b2;
    margin:5px 0 0;
    font-size:14px;
}

.custom-switch{
    width:55px;
    height:28px;
    background-color:#1d2238;
    border:none;
}

.custom-switch:checked{
    background-color:#c026d3;
}

/* Summary */

.summary-item{
    display:flex;
    justify-content:space-between;
    margin-bottom:18px;
    color:#cfd3ea;
}

/* Responsive */

@media(max-width:1200px){

    .sidebar{
        width:240px;
    }

    .option-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:991px){

    .main-wrapper{
        flex-direction:column;
    }


    .topbar{
        flex-direction:column;
        align-items:flex-start;
    }

    .route-options{
        flex-direction:column;
    }
}

@media(max-width:768px){

    .content-area{
        padding:5px;
    }

    .page-title{
        font-size:28px;
    }

    .topbar-right{
        width:100%;
        flex-direction:column;
    }

    .topbar-right button{
        width:100%;
    }
}


/* =========================
   RESPONSIVE DESIGN
========================= */

/* Large Laptop */
@media (max-width: 1400px) {

    .sidebar{
        width:250px;
    }

    .page-title{
        font-size:34px;
    }

    .dashboard-card{
        padding:24px;
    }

    .editor-box{
        min-height:450px;
    }
}


/* Laptop */
@media (max-width: 1200px) {

    .sidebar{
        width:220px;
        padding:25px 15px;
    }

    .content-area{
        padding:25px;
    }

    .option-grid{
        grid-template-columns:1fr;
    }

    .route-options{
        flex-direction:column;
    }

    .topbar{
        flex-direction:column;
        align-items:flex-start;
    }

    .topbar-right{
        width:100%;
        margin-top:20px;
    }

    .topbar-right button{
        flex:1;
    }

    .page-title{
        font-size:30px;
    }
}


/* Tablet */
@media (max-width: 991px) {

    .main-wrapper{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
        height:auto;
        position:relative;
        border-right:none;
        border-bottom:1px solid rgba(255,255,255,.08);
    }

    .sidebar-menu{
        display:flex;
        flex-wrap:wrap;
        gap:10px;
    }

    .sidebar-menu li{
        margin-bottom:0;
    }

    .sidebar-menu a{
        padding:12px 18px;
    }

    .sidebar-box{
        margin-top:30px;
    }

    .content-area{
        width:100%;
        padding:5px;
    }

    .editor-box{
        min-height:400px;
    }

    .page-title{
        font-size:28px;
    }

    .dashboard-card{
        border-radius:5px;
    }
}


/* Small Tablet */
@media (max-width: 768px) {

    .content-area{
        padding:18px;
    }

    .topbar{
        gap:15px;
        margin-bottom:25px;
    }

    .page-title{
        font-size:25px;
    }

    .page-subtitle{
        font-size:14px;
    }

    .topbar-right{
        flex-direction:column;
        width:100%;
    }

    .topbar-right button{
        width:100%;
    }

    .card-header-custom{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .dashboard-card{
        padding:5px;
    }

    .editor-box{
        padding:18px;
        min-height:350px;
    }

    .editor-box pre{
        font-size:13px;
        line-height:1.6;
    }

    .feature-item{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .summary-item{
        font-size:14px;
    }

    .route-card,
    .option-card{
        padding:18px;
    }
}


/* Mobile */
@media (max-width: 576px) {

    body{
        overflow-x:hidden;
    }

    .sidebar{
        padding:5px 15px;
    }

    .logo h3{
        font-size:22px;
    }

    .logo-icon{
        width:40px;
        height:40px;
        font-size:18px;
    }

    .sidebar-menu{
        flex-direction:column;
    }

    .sidebar-menu a{
        width:100%;
        font-size:14px;
    }

    .content-area{
        padding:15px;
    }

    .page-title{
        font-size:22px;
        line-height:1.3;
    }

    .page-subtitle{
        font-size:13px;
    }

    .dashboard-card{
        padding:18px;
        border-radius:20px;
    }

    .editor-box{
        min-height:300px;
        padding:15px;
        border-radius:18px;
    }

    .editor-box pre{
        font-size:12px;
        line-height:1.5;
    }

    .custom-select{
        padding:12px;
        font-size:14px;
    }

    .option-card h6,
    .route-card h6,
    .feature-item h6{
        font-size:15px;
    }

    .option-card p,
    .route-card p,
    .feature-item p{
        font-size:12px;
    }

    .route-card i{
        font-size:24px;
    }

    .summary-item{
        font-size:13px;
    }

    .generate-btn,
    .import-btn,
    .upgrade-btn{
        padding:12px 16px;
        font-size:14px;
    }

    .feature-item{
        margin-bottom:20px;
    }
}


/* Extra Small Devices */
@media (max-width: 400px) {

    .page-title{
        font-size:20px;
    }

    .dashboard-card{
        padding:15px;
    }

    .editor-box{
        min-height:250px;
    }

    .editor-box pre{
        font-size:11px;
    }

    .logo{
        gap:10px;
    }

    .logo h3{
        font-size:20px;
    }

    .topbar-right{
        gap:10px;
    }

    .summary-item{
        flex-direction:column;
        gap:5px;
    }
}