* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

:root {
    --primary: #1992d4;
    --secondary: #e2e8f0;
    --accent: #f0b429;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
}

body {
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: 
        "sidebar header"
        "sidebar main";
    height: 100vh;
    background-color: var(--secondary);
}

/* Header Styles */
header {
    grid-area: header;
    background-color: var(--white);
    padding: 15px 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: grid;
    grid-template-rows: auto auto;
    gap: 15px;
    z-index: 10;
}

.header-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar input {
    flex: 1;
    max-width: 600px;
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    background-color: var(--secondary);
    font-size: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.user-info .notifications {
    cursor: pointer;
}

.user-profile-small {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-bottom {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

.user-profile-large {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.greeting-text h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 3px;
}

.greeting-text h2 {
    font-size: 20px;
    font-weight: 700;
}

.header-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.header-buttons button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.header-buttons button:hover {
    background-color: #1479b3;
}

/* Sidebar Styles */
aside {
    grid-area: sidebar;
    background-color: var(--primary);
    color: var(--white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
}

.logo i {
    font-size: 28px;
}

.nav-section {
    margin-bottom: 30px;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 12px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 5px;
    border-radius: 5px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-links i {
    width: 20px;
    text-align: center;
}

/* Main Content Styles */
main {
    grid-area: main;
    padding: 30px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: 
        "projects announcements"
        "projects trending";
    gap: 25px;
}

.projects-container {
    grid-area: projects;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 8px solid var(--accent);
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.project-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.project-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-actions {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: auto;
}

.project-actions i {
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.project-actions i:hover {
    color: var(--primary);
}

.announcements-container {
    grid-area: announcements;
}

.announcements {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.announcement-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--secondary);
}

.announcement-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.announcement-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-dark);
}

.announcement-item p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

.trending-container {
    grid-area: trending;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
}

.trending-item:not(:last-child) {
    border-bottom: 1px solid var(--secondary);
}

.trending-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.trending-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-1 { background-color: #e74c3c; }
.avatar-2 { background-color: #3498db; }
.avatar-3 { background-color: #2ecc71; }
.avatar-4 { background-color: #9b59b6; }

.trending-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-dark);
}

.trending-info p {
    font-size: 12px;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    body {
        grid-template-columns: 200px 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        grid-template-areas: 
            "header"
            "sidebar"
            "main";
    }
    
    main {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "projects"
            "announcements"
            "trending";
    }
    
    .header-top, .header-bottom {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .header-buttons {
        justify-content: center;
    }
}