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

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9fafb;
    color: #2d2d2d; 
    line-height: 1.6;
}

/* Common property for all <a> tags */
a {
    text-decoration: none;
    color: white;
  
}


.container {
    display: grid;
    grid-template-areas: 
        "header header"
        "sidebar main"
        "footer footer";
    grid-template-columns: 250px auto;
    grid-template-rows: 70px auto 50px;
    gap: 10px; 
}

.header {
    grid-area: header;
    background-color: #333333; 
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 15px; 
}

.navbar .logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    transform: color 0.3s ease;
}



.navbar ul {
    list-style-type: none;
    display: flex;
    gap: 20px; 
}

.navbar ul a {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    border-radius: 5px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.navbar ul a:hover {
    background-color: #4caf50;
    
}

.navbar .profile-icon {
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    margin-right: 15px;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.navbar .profile-icon:hover {
    color: #4caf50;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #4caf50;
    transform: scale(1.1);
}

.sidebar{
    grid-area: sidebar;
    background-color: #333333;
    color: white;
}

.sidebar ul{
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 0px 0 20px;
}

.sidebar ul li{
    margin-bottom: 10px;
    
}

.sidebar ul a{
    border-radius: 10px;
    transition: background-color 0.3s ease;
    padding: 10px 20px;
}

.sidebar ul a:hover{
    background-color: #777;
}

.main{
    grid-area: main;
    padding: 20px;
    height: 100vh;
     
    background-color: #eef2f3;
    border-radius: 8px;
}


.dashboard-summary {
    text-align: center;
    margin-bottom: 20px;
}

.dashboard-summary .welcome-msg{
    margin-bottom: 20px;
    text-transform: uppercase;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-card {
    background: #333;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-card i {
    font-size: 30px;
    margin-bottom: 10px;
}

.charts, .recent-activities {
    
    padding: 15px;
    border-radius: 8px;
}

.chart-container img {
    width: 100%;
    height: auto;
}

.footer{
    grid-area: footer;
    background-color: #333333;
    color: white;
}

.footer-content{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 15px;
    font-size: 1rem;
}

.navbar ul a:focus, .sidebar ul a:focus {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}
