@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
    --primary: #6366f1;
    --secondary: #8216e6;
    --dark: #1e293b;
    --light: #f8fafc;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    display: grid;
    grid-template-areas: 
        "header header"
        "sidebar content"
        "footer footer";
    grid-template-columns: 200px 1fr;
    grid-template-rows: 80px 1fr 60px;
    
}

header { grid-area: header;
    background: var(--dark); color: white;
    display: flex; align-items: center;
    padding: 0 20px; 
}

nav { grid-area: sidebar;
    background: #f1f5f9; padding: 20px;
    border-right: 1px solid #ddd;
}

main { grid-area: content; 
    padding: 40px;
    background: var(--light);
}

footer { grid-area: footer; 
    background: var(--dark); 
    color: white; display: flex;
    align-items: center; 
    justify-content: center;
}

nav ul { 
    list-style: none;
}

nav li {
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
}

nav li::before {
    content: "◈";
    margin-right: 10px;
    color: var(--primary);
}

nav li:hover {
    background: var(--primary);
    color: white;
    transform: translateX(10px); 
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    width: fit-content;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1::after {
    content: "";
    display: block;
    width: 50px;
    height: 5px;
    background: var(--secondary);
    margin-top: 10px;
}

@media (max-width: 600px) {
    body {
        grid-template-areas: 
            "header"
            "sidebar"
            "content"
            "footer";
        grid-template-columns: 1fr;
    }
    nav { border-right: none;
         border-bottom: 1px solid #ddd;
}
}