/* ===========================================================
   AllkitPy Documentation
   =========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    background:#f5f7fb;

    color:#222;

}

/* ===========================================================
   Header
   =========================================================== */

.topbar{

    position:sticky;

    top:0;

    z-index:1000;

    height:70px;

    background:#ffffff;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 40px;

    border-bottom:1px solid #dddddd;

    box-shadow:0 3px 15px rgba(0,0,0,.08);

}

.logo{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:28px;

    font-weight:bold;

}

.logo span{

    color:#1f4fff;

}

.logo small{

    color:#666;

    font-size:15px;

    font-weight:500;

}

.search input{

    width:320px;

    padding:11px 18px;

    border-radius:30px;

    border:1px solid #cccccc;

    background:#f3f4f8;

    color:#555;

}

/* ===========================================================
   Layout
   =========================================================== */

.container{

    display:flex;

    min-height:calc(100vh - 70px);

}

/* ===========================================================
   Sidebar
   =========================================================== */

.sidebar{

    width:260px;

    background:white;

    border-right:1px solid #e2e2e2;

    padding:25px;

    position:sticky;

    top:70px;

    height:calc(100vh - 70px);

    overflow:auto;

}

.sidebar h2{

    margin-bottom:20px;

    color:#1f4fff;

}

.sidebar nav{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.sidebar a{

    text-decoration:none;

    color:#444;

    padding:12px 16px;

    border-radius:10px;

    transition:.25s;

}

.sidebar a:hover{

    background:#1f4fff;

    color:white;

    transform:translateX(5px);

}

.sidebar .active{

    background:#1f4fff;

    color:white;

}

/* ===========================================================
   Content
   =========================================================== */

.content{

    flex:1;

    padding:45px;

}

.content h1{

    font-size:40px;

    margin-bottom:20px;

    color:#1f4fff;

}

.content h2{

    margin-top:40px;

    margin-bottom:20px;

}

.content p{

    line-height:1.8;

    color:#444;

    margin-bottom:15px;

}

.content hr{

    margin:35px 0;

    border:none;

    border-top:1px solid #dddddd;

}

/* ===========================================================
   Cards
   =========================================================== */

.module-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

}

.card{

    background:white;

    padding:25px;

    border-radius:15px;

    text-decoration:none;

    color:#222;

    border:1px solid #e5e5e5;

    transition:.3s;

}

.card:hover{

    transform:translateY(-8px);

    box-shadow:0 10px 30px rgba(0,0,0,.15);

    border-color:#1f4fff;

}

.card h3{

    margin-bottom:12px;

    color:#1f4fff;

}

.card p{

    color:#666;

}

/* ===========================================================
   Footer
   =========================================================== */

footer{

    background:white;

    border-top:1px solid #dddddd;

    padding:20px 40px;

    display:flex;

    justify-content:space-between;

    color:#666;

}

/* ===========================================================
   Responsive
   =========================================================== */

@media(max-width:900px){

    .container{

        flex-direction:column;

    }

    .sidebar{

        position:relative;

        width:100%;

        height:auto;

        top:0;

    }

    .search input{

        width:180px;

    }

    .content{

        padding:25px;

    }

    .content h1{

        font-size:32px;

    }

}

@media(max-width:600px){

    .topbar{

        padding:15px;

        flex-direction:column;

        height:auto;

        gap:15px;

    }

    .logo{

        font-size:22px;

    }

    .search input{

        width:100%;

    }

    footer{

        flex-direction:column;

        gap:10px;

        text-align:center;

    }

}