:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --dark: #1e1e2c;
    --light: #f8f9fa;
    --sidebar: #16164d;
    --card-bg: #ffffff;
    --text: #333333;
    --text-light: #6c757d;
    --border: #e0e0e0;
    --hover: #f5f7ff;
}

.dark-mode {
    --card-bg: #252836;
    --text: #e0e0e0;
    --text-light: #a0a0a0;
    --border: #343a40;
    --hover: #2d3250;
    --light: #1a1d28;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    color: var(--text);
    transition: background-color 0.3s, color 0.3s;
}

.dark-mode body {
    background-color: #121212;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    transition: margin-left 0.3s;
}

/* Top Navigation */
.top-nav {
    background: white;
    padding: 0 25px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dark-mode .top-nav {
    background: var(--card-bg);
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--light);
    color: var(--text);
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.nav-icon:hover {
    background: var(--hover);
    color: var(--primary);
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4757;
    color: white;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    display: flex;
    align-items: center;
    margin-left: 20px;
    cursor: pointer;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.dark-toggle {
    background: var(--light);
    border-radius: 20px;
    padding: 3px;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 15px;
}

.dark-toggle span {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.dark-toggle .light {
    background: var(--primary);
    color: white;
}

/* Content Area */
.content-area {
    padding: 25px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 600;
}

.welcome-text {
    color: var(--text-light);
    font-size: 1rem;
}

/* Responsive */
@@media (max-width: 768px) {
    .main-content {
        margin-left: 70px;
    }
    .user-name {
        display: none;
    }
}

@@media (max-width: 576px) {
    .top-nav {
        padding: 0 15px;
    }
    .search-bar {
        max-width: 150px;
    }
    .nav-icon {
        margin-left: 8px;
    }
    .content-area {
        padding: 15px;
    }
}