html {
    font-size: 16px;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    color: #212529;
}

/* Sidebar */
.sidebar {
    width: 240px;
    padding: 1.5rem 1rem;
    border-right: 2px solid #444;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: -240px; /* Sidebar starts hidden */
    background-color: #343a40;
    color: white;
    z-index: 1000;
    transition: left 0.3s ease; /* Smooth transition */
}

.sidebar h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.sidebar a {
    display: block;
    color: #f8f9fa;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.sidebar a:hover {
    background-color: #495057;
    border-radius: 5px;
    padding-left: 10px;
    transition: 0.3s;
}

/* Content */
.content {
    margin-left: 240px;
    padding: 2rem;
    transition: margin-left 0.3s ease; /* Smooth content shift */
}

.menu-btn {
    background-color: transparent;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333;
    padding: 10px;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1050;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.02);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 1.15rem;
    font-weight: 500;
}

.card-body h4 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Footer */
footer {
    padding-top: 2rem;
    border-top: 1px solid #ccc;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        width: 200px;
        top: 0;
        left: -200px; /* Sidebar hidden on small screens */
    }

    .content {
        margin-left: 0;
    }

    .menu-btn {
        display: block;
    }

    .sidebar.open {
        left: 0; /* Show sidebar when it has the "open" class */
    }

    .content.shifted {
        margin-left: 200px; /* Shift content to the right when sidebar is open */
    }
}
