*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-family: 'Roboto', sans-serif;
}

h1{
    background-image: linear-gradient(to right, #b91c1c, 80% , #ef4444);
    background-clip: text;
    color: transparent; 
    font-size: 1.5rem; 
}

header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 2px solid #ddd;
    background: white;
}

header button{
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.hamburger { 
    display: none; 
    font-size: 1.5rem; 
}

nav{
    width: 250px;
    min-width: 250px;
    height: 100vh;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    background: white;
}

.listItem {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: #4b5563;
    padding: 0.9rem 1.5rem;
    margin: 4px 12px;
    width: auto;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}
a{
    text-decoration: none;
}

.listItem:hover {
    background-color: #fef2f2;
    color: #dc2626;
    transform: none;
}

.listItem.active {
    background-color: #dc2626;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.3);
}

main{
    display: flex;
    height: calc(100vh - 71px); /* Substract header height approx */
    overflow: hidden;
}

iframe{
    flex: 1; /* Takes remaining width */
    height: 100%;
    border: none;
    width: 100%;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .hamburger { display: block; }
    
    header { padding: 1rem; }
    
    nav {
        position: absolute;
        left: -100%;
        top: 70px;
        width: 100%;
        z-index: 1000;
        transition: 0.3s ease;
        height: calc(100vh - 70px);
    }
    nav.nav-active { left: 0; }
}