/* Default header/footer styles, colors come from theme */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}



.content-wrapper.with-sidebar > * {
    margin-left: 190px;  /* matches sidebar width */
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed + .content-wrapper > * {
    margin-left: 80px; /* collapsed sidebar */
}


/* ############################################################################################# */

/* Background colors based on theme */

/* Main page */
body.rarevariants-theme header,
body.rarevariants-theme footer {
    background-color: #1e3a8a;
}

/* HomolVar */
body.homolvar-theme header,
body.homolvar-theme footer {
    background-color: rgb(96, 165, 250);
}

/* TruncPred */
body.truncpred-theme header,
body.truncpred-theme footer {
    background-color: rgb(103, 194, 141);
}


/* CNTNAP2 */
body.cntnap2-theme header,
body.cntnap2-theme footer {
    background-color: #b67fc6;
}

/* GLDC */
body.gldc-theme header,
body.gldc-theme footer {
    background-color: #333;
}

/* GLUDB */
body.gludb-theme header,
body.gludb-theme footer {
    background-color: #2563eb;
}


/* You can add other project themes here */

/* body.grindb-theme header,
body.grindb-theme footer {
    background-color: #3a7bd5;
} */

/* ############################################################################################# */





/* ########################################################################### */
header, main, footer {
  margin-left: 190px; /* same as sidebar width */
  padding: 1rem; /* optional, for spacing inside */
}

/* Header styles */

header {
    color: #fff; /* Text color */
    padding: 20px; /* Padding around content */
    text-align: center; /* Center-align text */
}

header a {
    color: #fff; /* Link color */
    text-decoration: none; /* Remove underlines */
    margin: 0 10px; /* Spacing between links */
}

header a:hover {
    text-decoration: underline; /* Underline on hover */
}


/* Footer styles */ 
/* Set HTML and body to take full height */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Flex container to push footer to the bottom */
.content {
    flex: 1;
}

/* CSS for the footer */
footer {
    background-color: rgb(103, 194, 141); 
    color: #fff; 
    padding: 20px; 
    text-align: center;
    margin-top: auto; /* Ensures footer stays at bottom */
}

/* Style for the footer links */
footer a {
    color: #fff; 
    text-decoration: none; 
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline; /* Underline on hover */
}






/* SIDEBAR */
/* Sidebar modern style */
/* Sidebar base */
.sidebar {
    position: fixed;      /* Fix it on screen */
    width: 190px;
    height: 100vh;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    z-index: 10;
    transition: width 0.3s ease;
}


.sidebar.collapsed {
    width: 80px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Toggle button */
.sidebar-toggle {
    position: relative;
    top: 1rem;
    right: -1.5rem;
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 99;
    transition: background 0.3s;
}

.sidebar-toggle:hover {
    background: #1e3a8a;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin-top: 3rem;
}

.sidebar nav ul li {
    margin: 1rem 0;
}

.sidebar nav ul li a {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.sidebar nav ul li a:hover {
    background: #d0d0ff;
    color: #000;
}

.sidebar nav ul li a.active {
    background: #1e3a8a;
    color: #fff;
    font-weight: 600;
}

/* Hide text when collapsed */
.sidebar.collapsed .label {
    display: none;
}

.sidebar nav ul li a .label {
    margin-left: 0.5rem;
    white-space: nowrap;
}
