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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
}

.dashboard {
    display: grid;
    grid-template-areas:
        "header header"
        "sidebar main";
    grid-template-columns: 250px 1fr;
    grid-template-rows: 60px 1fr;
    height: 100vh;
    transition: all 0.3s ease;
}

/* Header Styles */
.header {
    grid-area: header;
    background-color: #fff;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header h1 {
    font-size: 1.2rem;
    color: #333;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

/* Sidebar Styles */
.sidebar {
    grid-area: sidebar;
    background-color: #2c3e50;
    color: #fff;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.menu {
    list-style: none;
}

.menu-item {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background-color: #34495e;
}

.menu-item.active {
    background-color: #3498db;
}

.menu-item i {
    width: 20px;
    text-align: center;
}

/* Main Content Styles */
.main-content {
    grid-area: main;
    padding: 20px;
    overflow: hidden;
    background-color: #fff;
}

/* iframe Styles */
iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background-color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 0 1fr;
    }

    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        height: calc(100vh - 60px);
        top: 60px;
        z-index: 99;
    }
}

/* Sidebar Collapse State */
.dashboard.sidebar-collapsed {
    grid-template-columns: 0 1fr;
}

.dashboard.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
}
