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

/* Layout Container */
.layout {
    display: flex;
    height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #005b99;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    transition: width 0.3s ease;
}

.sidebar ul {
    list-style: none;
    width: 100%;
}

.sidebar li {
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 8px;
    text-align: left;
    transition: background-color 0.3s, transform 0.2s;
}

.sidebar li:hover {
    background-color: #007acc;
    transform: scale(1.05);
}

.sidebar li.active {
    background-color: #00487c;
}

.sidebar-toggle {
    display: none;
    background-color: #00487c;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Content Area */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.content header h1 {
    font-size: 2rem;
    color: #005b99;
}

.content header p {
    font-size: 1.2rem;
    color: #555;
}

/* Grid Widgets */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.widget {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.3s;
}

.widget h3 {
    font-size: 1.4rem;
    color: #005b99;
    margin-bottom: 10px;
}

.widget p {
    font-size: 1rem;
    color: #666;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
        padding: 10px;
    }

    .sidebar li {
        text-align: center;
        margin-bottom: 0;
        padding: 10px 5px;
        font-size: 0.9rem;
    }

    .content {
        padding: 15px;
    }

    .sidebar-toggle {
        display: block;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sidebar li {
        padding: 8px 3px;
        font-size: 0.8rem;
    }

    .content header h1 {
        font-size: 1.5rem;
    }

    .content header p {
        font-size: 0.9rem;
    }

    .content {
        padding: 10px;
    }
}
