html {
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    background-color: #171d3d;
    color: whitesmoke;
    font-family: "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.sidebar {
    display: flex;
    flex-direction: column;
    width: 20%;
    min-width: 240px;
    height: 100vh;
    padding: 1rem;
    background-color: #202a63;
    position: fixed;
    top: 0;
    left: 0;
    border-right: 1px solid rgba(100, 149, 237, 0.25);
    overflow-y: auto;
}

.nav-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(100, 149, 237, 0.6);
    margin-bottom: 0.25rem;
    cursor: default;
}

.nav-link {
    display: block;
    padding: 0.35rem 0.25rem;
    font-size: 0.9rem;
    color: cornflowerblue;
    text-decoration: none;
    border-left: 2px solid transparent;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(100, 149, 237, 0.08);
}

.nav-link:focus, .nav-link.active {
    border-left-color: cornflowerblue;
    background: rgba(100, 149, 237, 0.15);
}

.content {
    margin-left: max(21%, 240px);
    padding: 2rem;

}

.content section {
    margin-bottom: 3rem;
}

.content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.content p {
    font-size: 1rem;
    color: #dcdcdc;
}

/* -----------------------------
   Optional: Scrollbar Styling for Sidebar
----------------------------- */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #202a63;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(100, 149, 237, 0.5);
    border-radius: 4px;
}

/* -----------------------------
   Links in content
----------------------------- */
.content a {
    color: cornflowerblue;
    text-decoration: underline;
}

.content a:hover {
    text-decoration: none;
}

img.styled {
    border: 3px solid #00f; /* Blue outline, adjust thickness and color */
    border-radius: 15px;     /* Rounds the corners */
}

.email-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.95rem;
}

.gmail-icon {
    width: 20px;
    height: 20px;
}
