/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 170px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    width: calc(100% - 200px);
}

.sidebar.collapsed ~ .main-content {
    margin-left: 50px;
    width: calc(100% - 50px);
}

/* Top Navigation Bar */
.top-navbar {
    background: white;
    height: 70px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667eea;
    position: relative;
}

    .navbar-icon:hover {
        background: #f0f3ff;
    }

/* Notification Badge */
.notification-badge {
    position: relative;
    cursor: pointer;
}

    .notification-badge .badge-count {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #ff4757;
        color: white;
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 10px;
        font-weight: 600;
        min-width: 18px;
        text-align: center;
    }

/* User Menu Button */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .user-menu-btn:hover {
        background: #f0f3ff;
    }

.user-menu-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-menu-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Notification Dropdown */
.notification-dropdown {
    position: fixed;
    right: 20px;
    top: 80px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 380px;
    max-height: 500px;
    overflow: hidden;
    display: none;
    z-index: 2000;
    color: #333;
}

    .notification-dropdown.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-header {
    padding: 20px;
    border-bottom: 1px solid #e8ecff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .notification-header h3 {
        color: #667eea;
        font-size: 16px;
    }

.mark-all-read {
    color: #667eea;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
}

    .mark-all-read:hover {
        text-decoration: underline;
    }

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    gap: 12px;
}

    .notification-item:hover {
        background: #f8f9ff;
    }

    .notification-item.unread {
        background: #e8f0fe;
    }

        .notification-item.unread:hover {
            background: #d6e4ff;
        }

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .notification-icon.info {
        background: #e3f2fd;
        color: #2196f3;
    }

    .notification-icon.success {
        background: #e8f5e9;
        color: #4caf50;
    }

    .notification-icon.warning {
        background: #fff3e0;
        color: #ff9800;
    }

    .notification-icon.error {
        background: #ffebee;
        color: #f44336;
    }

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}

.notification-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.notification-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.notification-footer {
    padding: 15px 20px;
    border-top: 1px solid #e8ecff;
    text-align: center;
}

.view-all-link {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

    .view-all-link:hover {
        text-decoration: underline;
    }

/* User Dropdown Menu */
.user-dropdown {
    position: fixed;
    right: 20px;
    top: 80px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 250px;
    display: none;
    z-index: 2000;
    overflow: hidden;
}

    .user-dropdown.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

.user-dropdown-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
}

.user-dropdown-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    margin: 0 auto 10px;
}

.user-dropdown-name {
    font-weight: 600;
    font-size: 16px;
}

.user-dropdown-email {
    font-size: 12px;
    opacity: 0.9;
}

.user-dropdown-menu {
    padding: 10px 0;
}

.user-dropdown-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    text-decoration: none;
}

    .user-dropdown-item:hover {
        background: #f0f3ff;
        color: #667eea;
    }

    .user-dropdown-item i {
        width: 20px;
        text-align: center;
    }

.user-dropdown-divider {
    height: 1px;
    background: #e8ecff;
    margin: 10px 0;
}

.user-dropdown-item.logout {
    color: #f44336;
}

    .user-dropdown-item.logout:hover {
        background: #ffebee;
    }

/* Content Area */
.content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.content-header {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

    .content-header h1 {
        color: #667eea;
        margin-bottom: 10px;
        font-size: 2rem;
    }

.breadcrumb {
    color: #6c757d;
    font-size: 14px;
}

.content-body {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    min-height: 500px;
}

/* Scrollbar Styles */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

    .notification-list::-webkit-scrollbar-thumb:hover {
        background: #999;
    }

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .navbar-left h2 {
        font-size: 1.2rem;
    }

    .user-menu-name {
        display: none;
    }

    .notification-dropdown,
    .user-dropdown {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}
