body {
    margin: 0;
    font-family: Arial;
    background: #0f172a;
    color: white;
}


.navbar {
    display: flex;
    justify-content: space-between;
    padding: 10px 30px;
    background: #111827;
}


.navbar a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

.hero {
    text-align: center;
    padding: 10px 30px 30px;
}


.container {

    width:80%;
    margin:auto;
    position:relative;
    z-index:1;

}


input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    margin: 20px 0;
}


/* Category Cards */

.card {
    background: #1e293b;
    padding: 20px;
    height:100%;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.card:hover {

    transform: translateY(-8px);

    box-shadow:
    0 15px 35px rgba(56,189,248,0.35);

}

/* 3 Cards Per Row */
.command-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.command-grid .command {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.command-grid .command code {
    display: block;
    max-width: 100%;
    box-sizing: border-box;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-all;
}

/* Commands */

.command {

    display:flex;

    flex-direction:column;

    align-items:flex-start;

    gap: 20px;

    padding: 10px 15px;

    margin: 8px 0;

    background: #0f172a;

    border-radius: 10px;

    border: 1px solid #334155;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

    box-shadow:
    0 8px 20px rgba(0,0,0,0.3);

}


.command:hover {

    transform: translateY(-3px);

    box-shadow:
    0 8px 20px rgba(56,189,248,0.20);

}


.command strong {

    color:#38bdf8;
    font-size:18px;
    letter-spacing:1px;

}

.command > div {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.command strong {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}


.command button {

    background:#38bdf8;

    border:none;

    padding:5px 10px;

    border-radius:6px;

    cursor:pointer;

    position:relative;

    z-index:10;

    margin-top:auto;

    width:100%;


}


/* Toast */

#toast {

    position: fixed;

    top: 20px;
    left: 50%;
    transform: translateX(-50%);

    background: #22c55e;

    color: white;

    padding: 12px 20px;

    border-radius: 8px;

    display: none;

    font-weight: bold;

    z-index: 9999;

}

/* Footer */

footer {

    margin-top:40px;

    padding-bottom:20px;

}


/* Theme Button */

#themeBtn {

    background:#38bdf8;

    border:none;

    padding:8px 12px;

    border-radius:8px;

    cursor:pointer;

    font-size:18px;

}


/* Improved Light Mode */

.light-mode {

    background:#f8fafc;
    color:#111827;

}


.light-mode .card {

    background:#ffffff;

    color:#111827;

    box-shadow:
    0 10px 30px rgba(0,0,0,0.12);

}


.light-mode .card:hover {

    box-shadow:
    0 20px 40px rgba(14,165,233,0.25);

}


.light-mode .command {

    background:#ffffff;

    color:#111827;

    border:1px solid #e2e8f0;

    box-shadow:
    0 8px 25px rgba(0,0,0,0.10);

}


.light-mode .command:hover {

    transform:translateY(-3px);

    box-shadow:
    0 15px 35px rgba(14,165,233,0.30);

}

.light-mode .navbar {

    background:white;

}


.light-mode .navbar a {

    color:#111827;

}


.light-mode .stat-card {

    background:white;

    color:#111827;

    border:1px solid #cbd5e1;

    box-shadow:
    0 10px 25px rgba(0,0,0,0.15);

}


.light-mode .stat-card h2 {

    color:#0284c7;

}


.light-mode .stat-card p {

    color:#475569;

}


/* Hero */

.hero h2 {

    font-size:32px;

    margin:20px 0;

}


/* Stats Cards */

.stats {

    display:flex;

    justify-content:center;

    gap:20px;

    margin-top:30px;

    flex-wrap:wrap;

}



.stat-card {

    background:#1e293b;

    padding:20px 35px;

    border-radius:15px;

    border:1px solid #334155;


    box-shadow:

    0 10px 25px rgba(0,0,0,0.3);


    transition:0.3s;

}



.stat-card:hover {

    transform:translateY(-8px);


    box-shadow:

    0 15px 35px rgba(56,189,248,0.3);

}



.stat-card h2 {

    color:#38bdf8;

    font-size:30px;

    margin:0;

}



.stat-card p {

    margin-top:10px;

}



/* Mobile Responsive */

@media (max-width:600px) {


    .container {

        width:90%;

    }


    .navbar {

        flex-direction:column;

        align-items:center;

        gap:15px;

    }


    .hero h1 {

        font-size:28px;

    }


    .hero-text {

        font-size:14px;

    }


    .command {

        flex-direction:column;

        align-items:flex-start;

        gap:10px;

    }

    .command {
        min-width: 0;

        overflow-wrap: anywhere;

        word-break: break-word;

    }


    .command button {

        width:100%;

    }


    input {

        width:100%;

        box-sizing:border-box;

    }

}

/* Search Box Premium Glow */

#searchInput {

    border: 1px solid #38bdf8;

    outline: none;

    box-shadow:
    0 0 15px rgba(56,189,248,0.35);

    transition: 0.3s ease;

}

#searchInput {

    position: relative;
    z-index: 100;

}


#searchInput:hover {

    box-shadow:
    0 0 25px rgba(56,189,248,0.55);

}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* Git Commands */

.git-title{
    color:#38bdf8;
    font-weight:bold;
}

.command p{
    margin:12px 0;
    line-height:1.5;
}

.command code {
    background: #1e293b;
    color: #38bdf8;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;

    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
}



.main-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;

    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 20px;
    box-sizing: border-box;

    max-height: 80vh;
    overflow-y: auto;
}

/* Sidebar Category Boxes */

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar li a {
    display: block;
    padding: 10px 14px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: 0.2s ease;
}

.sidebar-home {
    display: block;
    padding: 10px 14px;
    margin-top: 15px;
    margin-bottom: 10px;

    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;

    color: #ffffff;
    text-decoration: none;
    transition: 0.2s ease;
}

.sidebar-home:hover {
    background: #263449;
    border-color: #38bdf8;
    transform: translateX(3px);
}

.sidebar li a:hover {
    background: #263449;
    border-color: #38bdf8;
    transform: translateX(3px);
}

.light-mode .sidebar {
    background: #ffffff;
    border-color: #d1d5db;
}

.light-mode .sidebar li a {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #1e293b;
}

.light-mode .sidebar li a:hover {
    background: #e2e8f0;
}

.sidebar li a {
    display: block;
    padding: 10px 14px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: 0.2s ease;
}

.sidebar-home {
    display: block;
    padding: 10px 14px;
    margin-top: 15px;
    margin-bottom: 10px;

    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;

    color: #ffffff;
    text-decoration: none;
    transition: 0.2s ease;
}

.sidebar-home:hover {
    background: #263449;
    border-color: #38bdf8;
    transform: translateX(3px);
}

.sidebar li a:hover {
    background: #263449;
    border-color: #38bdf8;
    transform: translateX(3px);
}

.light-mode .sidebar {
    background: #ffffff;
    border-color: #d1d5db;
}

.light-mode .sidebar li a {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #1e293b;
}

.light-mode .sidebar li a:hover {
    background: #e2e8f0;
}

.light-mode .sidebar-home {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #1e293b;
}

.light-mode .sidebar-home:hover {
    background: #e2e8f0;
    border-color: #38bdf8;
}


#commands {
    flex: 1;
    min-width: 0;
}

/* Home button - Light Mode Fix */
body.light-mode .sidebar .sidebar-home {
    background: #f8fafc;
    border: 1px solid #d1d5db;
    color: #1e293b;
}

body.light-mode .sidebar .sidebar-home:hover {
    background: #e2e8f0;
    border-color: #38bdf8;
}