/* SME User Navigation & Sidebar Styles */
/* Color Palette: #E62727 (Primary Red), #7f8c8d (Secondary Gray), #FFFFFF (White) */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    line-height: 1.6;
}

/* Navigation Styles */
.navbar {
    background: #FFFFFF;
    box-shadow: 0 2px 20px rgba(230, 39, 39, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
}

.nav-container {
    max-width: 100%;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 45px;
    width: auto;
    border-radius: 8px;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E62727;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7f8c8d;
    font-weight: 500;
}

.user-info i {
    font-size: 1.5rem;
    color: #E62727;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #E62727;
    color: #FFFFFF;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #7f8c8d;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: #FFFFFF;
    border-right: 1px solid rgba(127, 140, 141, 0.1);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(127, 140, 141, 0.1);
}

.sidebar-header h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header i {
    color: #E62727;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: #7f8c8d;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-weight: 500;
}

.nav-item.active {
    background: rgba(230, 39, 39, 0.1);
    color: #E62727;
    border-left-color: #E62727;
    font-weight: 600;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 30px;
    flex: 1;
    width: calc(100% - 280px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-title {
        font-size: 1.2rem;
    }
    
    .user-name {
        display: none;
    }
    
    .main-content {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 15px 10px;
    }
}